Initial commit

This commit is contained in:
rudder
2026-08-12 14:04:30 +03:00
commit 718eb09a78
34 changed files with 661 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Code generated by apigen. DO NOT EDIT.
package models
type AdjustPlayerWalletRequest struct {
Amount int64 `json:"amount,omitempty"`
CurrencyCode string `json:"currencyCode,omitempty"`
PlayerID string `json:"playerId,omitempty"`
Reason string `json:"reason,omitempty"`
}
+19
View File
@@ -0,0 +1,19 @@
// Code generated by apigen. DO NOT EDIT.
package models
import "encoding/json"
type AdminPlayer struct {
CreatedAt string `json:"createdAt,omitempty"`
Data json.RawMessage `json:"data,omitempty"`
ID string `json:"id,omitempty"`
Language string `json:"language,omitempty"`
LastSeen string `json:"lastSeen,omitempty"`
Nickname string `json:"nickname,omitempty"`
PayerFlag bool `json:"payerFlag,omitempty"`
ProjectID string `json:"projectId,omitempty"`
Region string `json:"region,omitempty"`
StableID string `json:"stableId,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}
+11
View File
@@ -0,0 +1,11 @@
// Code generated by apigen. DO NOT EDIT.
package models
type AdminPlayerDetails struct {
Inventory []InventoryItem `json:"inventory,omitempty"`
Player AdminPlayer `json:"player,omitempty"`
Storages []PlayerStorage `json:"storages,omitempty"`
WalletTransactions []WalletAudit `json:"walletTransactions,omitempty"`
Wallets []WalletDetails `json:"wallets,omitempty"`
}
+15
View File
@@ -0,0 +1,15 @@
// Code generated by apigen. DO NOT EDIT.
package models
const (
ErrorCodeEarlyCompletion = "early_completion"
ErrorCodeForbidden = "forbidden"
ErrorCodeLevelNotReached = "level_not_reached"
ErrorCodeNodeNotActive = "node_not_active"
ErrorCodeObjectivesIncomplete = "objectives_incomplete"
ErrorCodeRunExpired = "run_expired"
ErrorCodeRunNotActive = "run_not_active"
ErrorCodeScenarioNotActive = "scenario_not_active"
ErrorCodeUnknownRun = "unknown_run"
)
+7
View File
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type GetLeaderboardResultsResponse struct {
Entries []RankEntry `json:"entries,omitempty"`
}
+11
View File
@@ -0,0 +1,11 @@
// Code generated by apigen. DO NOT EDIT.
package models
type GetProjectMetricsResponse struct {
Dau int `json:"dau,omitempty"`
DauChange float64 `json:"dauChange,omitempty"`
Mau int `json:"mau,omitempty"`
MauChange float64 `json:"mauChange,omitempty"`
Retention []RetentionPoint `json:"retention,omitempty"`
}
+10
View File
@@ -0,0 +1,10 @@
// Code generated by apigen. DO NOT EDIT.
package models
type InventoryItem struct {
Amount int64 `json:"amount,omitempty"`
ID string `json:"id,omitempty"`
Slug string `json:"slug,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}
+10
View File
@@ -0,0 +1,10 @@
// Code generated by apigen. DO NOT EDIT.
package models
type ListPlayersResponse struct {
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
Players []AdminPlayer `json:"players,omitempty"`
Total int `json:"total,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type ListUgcResponse struct {
Items []UgcSubmission `json:"items,omitempty"`
NextCursor string `json:"nextCursor,omitempty"`
}
+12
View File
@@ -0,0 +1,12 @@
// Code generated by apigen. DO NOT EDIT.
package models
type PlayerStorage struct {
Data string `json:"data,omitempty"`
ExpiresAt string `json:"expiresAt,omitempty"`
ID string `json:"id,omitempty"`
PlayerID string `json:"playerId,omitempty"`
Type string `json:"type,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}
+10
View File
@@ -0,0 +1,10 @@
// Code generated by apigen. DO NOT EDIT.
package models
type RankEntry struct {
PlayerID string `json:"playerId,omitempty"`
PlayerName string `json:"playerName,omitempty"`
Rank int64 `json:"rank,omitempty"`
Score float64 `json:"score,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type RetentionPoint struct {
Day int `json:"day,omitempty"`
Value float64 `json:"value,omitempty"`
}
+9
View File
@@ -0,0 +1,9 @@
// Code generated by apigen. DO NOT EDIT.
package models
type ReviewUgcRequest struct {
ID string `json:"id,omitempty"`
ReviewedBy string `json:"reviewedBy,omitempty"`
Status string `json:"status,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type SubmittedBy struct {
UserID string `json:"userId,omitempty"`
Username string `json:"username,omitempty"`
}
+19
View File
@@ -0,0 +1,19 @@
// Code generated by apigen. DO NOT EDIT.
package models
import "encoding/json"
type UgcSubmission struct {
Description string `json:"description,omitempty"`
FileSize int64 `json:"fileSize,omitempty"`
FileURL string `json:"fileUrl,omitempty"`
ID string `json:"id,omitempty"`
Metadata json.RawMessage `json:"metadata,omitempty"`
Name string `json:"name,omitempty"`
ReviewedAt string `json:"reviewedAt,omitempty"`
ReviewedBy string `json:"reviewedBy,omitempty"`
Status string `json:"status,omitempty"`
SubmittedAt string `json:"submittedAt,omitempty"`
SubmittedBy SubmittedBy `json:"submittedBy,omitempty"`
}
+10
View File
@@ -0,0 +1,10 @@
// Code generated by apigen. DO NOT EDIT.
package models
import "encoding/json"
type UpdateUgcMetadataRequest struct {
ID string `json:"id,omitempty"`
Metadata json.RawMessage `json:"metadata,omitempty"`
}
+19
View File
@@ -0,0 +1,19 @@
// Code generated by apigen. DO NOT EDIT.
package models
import "encoding/json"
type WalletAudit struct {
Amount int64 `json:"amount,omitempty"`
BalanceAfter int64 `json:"balanceAfter,omitempty"`
BalanceBefore int64 `json:"balanceBefore,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
CurrencyCode string `json:"currencyCode,omitempty"`
ID string `json:"id,omitempty"`
Metadata json.RawMessage `json:"metadata,omitempty"`
PlayerID string `json:"playerId,omitempty"`
Reason string `json:"reason,omitempty"`
Source string `json:"source,omitempty"`
WalletID string `json:"walletId,omitempty"`
}
+11
View File
@@ -0,0 +1,11 @@
// Code generated by apigen. DO NOT EDIT.
package models
type WalletDetails struct {
Balance int64 `json:"balance,omitempty"`
CurrencyCode string `json:"currencyCode,omitempty"`
ID string `json:"id,omitempty"`
PlayerID string `json:"playerId,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}