/
endpoints.go
95 lines (82 loc) · 2.84 KB
/
endpoints.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package screepsapi
const (
// Endpoints
apiPath = "api"
versionPath = "version"
// Xsolla endpoints
xsollaUserPath = "xsolla/user"
// Auth endpoints
mePath = "auth/me"
signInPath = "auth/signin"
// Leaderboard endpoints
leaderboardFindPath = "leaderboard/find"
leaderboardListPath = "leaderboard/list"
leaderboardSeasonsPath = "leaderboard/seasons"
// Game endpoints
addObjectIntentPath = "game/add-object-intent"
checkUniqueObjectNamePath = "game/check-unique-object-name"
createConstructionPath = "game/create-construction"
createFlagPath = "game/create-flag"
genUniqueObjectNamePath = "game/gen-unique-object-name"
mapStatsPath = "game/map-stats"
placeSpawnPath = "game/place-spawn"
removeFlagPath = "game/remove-flag"
setNotifyWhenAttackedPath = "game/set-notify-when-attacked"
timePath = "game/time"
// Market endpoints
myOrdersPath = "game/market/my-orders"
ordersIndexPath = "game/market/orders-index"
ordersPath = "game/market/orders"
// Messages endpoints
messagesIndexPath = "user/messages/index"
messagesListPath = "user/messages/list"
messagesSendPath = "user/messages/send"
messagesUnreadCountPath = "user/messages/unread-count"
// Room endpoints
roomOverviewPath = "game/room-overview"
roomStatusPath = "game/room-status"
roomTerrainPath = "game/room-terrain"
// User endpoints
// TODO(hinshun): unimplemented
activatePTRPath = "user/activate-ptr"
branchesPath = "user/branches"
codePath = "user/code"
consolePath = "user/console"
memoryPath = "user/memory"
memorySegmentPath = "user/memory-segment"
// TODO(hinshun): unconfirmed struct types
moneyHistoryPath = "user/money-history"
respawnPath = "user/respawn"
respawnProhibitedRoomsPath = "user/respawn-prohibited-rooms"
setActiveBranchPath = "user/set-active-branch"
userFindPath = "user/find"
userOverviewPath = "user/overview"
// TODO(hinshun): unconfirmed struct types and query params
userRoomsPath = "user/rooms"
userStatsPath = "user/stats"
// World endpoints
worldStartRoomPath = "user/world-start-room"
worldStatusPath = "user/world-status"
// Socket endpoints
// TODO(hinshun): unimplemented, note: no auth required
socketInfo = "socket/info"
// Query params
branchKey = "branch"
encodedKey = "encoded"
idKey = "id"
intervalKey = "interval"
limitKey = "limit"
modeKey = "mode"
offsetKey = "offset"
pathKey = "path"
resourceTypeKey = "resourceType"
respondentKey = "respondent"
roomKey = "room"
seasonKey = "season"
segmentKey = "segment"
shardKey = "shard"
statNameKey = "statName"
usernameKey = "username"
// Query values
queryTrue = "true"
)