v0.5.0: batch-first API, player/leaderboard handles, unified naming, Storage is global project storage, catalog list methods
CI / build (push) Successful in 49s

This commit is contained in:
edmand46
2026-08-26 18:30:28 +03:00
parent db1223c195
commit ef5bbe2df2
60 changed files with 1066 additions and 258 deletions
@@ -1,10 +0,0 @@
// Code generated by apigen. DO NOT EDIT.
package models
type AdjustPlayerInventoryItemRequest struct {
Amount int64 `json:"amount,omitempty"`
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Reason string `json:"reason,omitempty"`
Slug string `json:"slug,omitempty"`
}
-11
View File
@@ -1,11 +0,0 @@
// Code generated by apigen. DO NOT EDIT.
package models
type AdjustPlayerWalletRequest struct {
Amount int64 `json:"amount,omitempty"`
CurrencyCode string `json:"currencyCode,omitempty"`
IdempotencyKey string `json:"idempotencyKey,omitempty"`
PlayerID string `json:"playerId,omitempty"`
Reason string `json:"reason,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type AdminListQuestsResponse struct {
Items []QuestDefinition `json:"items,omitempty"`
NextCursor string `json:"nextCursor,omitempty"`
}
-7
View File
@@ -1,7 +0,0 @@
// Code generated by apigen. DO NOT EDIT.
package models
type AdminPlayerQuestRequest struct {
QuestID string `json:"questId,omitempty"`
}
-9
View File
@@ -1,9 +0,0 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BanPlayerRequest struct {
BannedUntil string `json:"bannedUntil,omitempty"`
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Reason string `json:"reason,omitempty"`
}
@@ -0,0 +1,10 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchAdjustPlayerInventoryItemsItem struct {
Amount int64 `json:"amount,omitempty"`
PlayerID string `json:"playerId,omitempty"`
Reason string `json:"reason,omitempty"`
Slug string `json:"slug,omitempty"`
}
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchAdjustPlayerInventoryItemsRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchAdjustPlayerInventoryItemsItem `json:"items,omitempty"`
}
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchAdjustPlayerInventoryItemsResponse struct {
Items []InventoryItem `json:"items,omitempty"`
}
+10
View File
@@ -0,0 +1,10 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchAdjustPlayerWalletsItem struct {
Amount int64 `json:"amount,omitempty"`
CurrencyCode string `json:"currencyCode,omitempty"`
PlayerID string `json:"playerId,omitempty"`
Reason string `json:"reason,omitempty"`
}
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchAdjustPlayerWalletsRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchAdjustPlayerWalletsItem `json:"items,omitempty"`
}
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchAdjustPlayerWalletsResponse struct {
Wallets []WalletDetails `json:"wallets,omitempty"`
}
+9
View File
@@ -0,0 +1,9 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchBanPlayersItem struct {
BannedUntil string `json:"bannedUntil,omitempty"`
PlayerID string `json:"playerId,omitempty"`
Reason string `json:"reason,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchBanPlayersRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchBanPlayersItem `json:"items,omitempty"`
}
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchDeleteLeaderboardEntriesRequest struct {
PlayerIds []string `json:"playerIds,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchDeletePlayersRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchPlayerItem `json:"items,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchDeletePlayerStoragesItem struct {
PlayerID string `json:"playerId,omitempty"`
Type string `json:"type,omitempty"`
}
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchDeletePlayerStoragesRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchDeletePlayerStoragesItem `json:"items,omitempty"`
}
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchDeleteProjectStorageRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Types []string `json:"types,omitempty"`
}
@@ -2,7 +2,7 @@
package models
type SubmitLeaderboardEntryRequest struct {
type BatchLeaderboardEntry struct {
PlayerID string `json:"playerId,omitempty"`
Score float64 `json:"score,omitempty"`
}
+7
View File
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchPlayerItem struct {
PlayerID string `json:"playerId,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchPlayerQuestsItem struct {
PlayerID string `json:"playerId,omitempty"`
QuestID string `json:"questId,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchPlayerQuestsRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchPlayerQuestsItem `json:"items,omitempty"`
}
+7
View File
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchPlayersResponse struct {
Players []AdminPlayer `json:"players,omitempty"`
}
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchSubmitLeaderboardEntriesRequest struct {
Items []BatchLeaderboardEntry `json:"items,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchUnbanPlayersRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchPlayerItem `json:"items,omitempty"`
}
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchUpdateLeaderboardEntriesRequest struct {
Items []BatchLeaderboardEntry `json:"items,omitempty"`
}
@@ -4,7 +4,8 @@ package models
import "encoding/json"
type UpdatePlayerRequest struct {
type BatchUpdatePlayersItem struct {
Data json.RawMessage `json:"data,omitempty"`
Nickname string `json:"nickname,omitempty"`
PlayerID string `json:"playerId,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchUpdatePlayersRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchUpdatePlayersItem `json:"items,omitempty"`
}
@@ -2,7 +2,9 @@
package models
type UpsertPlayerStorageRequest struct {
type BatchUpsertPlayerStoragesItem struct {
Data string `json:"data,omitempty"`
ExpiresAt string `json:"expiresAt,omitempty"`
PlayerID string `json:"playerId,omitempty"`
Type string `json:"type,omitempty"`
}
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchUpsertPlayerStoragesRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []BatchUpsertPlayerStoragesItem `json:"items,omitempty"`
}
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchUpsertPlayerStoragesResponse struct {
Storages []PlayerStorage `json:"storages,omitempty"`
}
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type BatchUpsertProjectStorageRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
Items []AdminProjectStorageItem `json:"items,omitempty"`
}
-7
View File
@@ -1,7 +0,0 @@
// Code generated by apigen. DO NOT EDIT.
package models
type DeletePlayerRequest struct {
IdempotencyKey string `json:"idempotencyKey,omitempty"`
}
+11
View File
@@ -0,0 +1,11 @@
// Code generated by apigen. DO NOT EDIT.
package models
type ErrorResponse struct {
Code string `json:"code,omitempty"`
Error string `json:"error,omitempty"`
Index int `json:"index,omitempty"`
PlayerID string `json:"playerId,omitempty"`
RequestID string `json:"requestId,omitempty"`
}
@@ -0,0 +1,7 @@
// Code generated by apigen. DO NOT EDIT.
package models
type GetLeaderboardEntryAroundResponse struct {
Entries []RankEntry `json:"entries,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type GetPlayerInventoryResponse struct {
Items []InventoryItem `json:"items,omitempty"`
NextCursor string `json:"nextCursor,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type GetWalletHistoryResponse struct {
Entries []WalletAudit `json:"entries,omitempty"`
NextCursor string `json:"nextCursor,omitempty"`
}
+12
View File
@@ -0,0 +1,12 @@
// Code generated by apigen. DO NOT EDIT.
package models
type LeaderboardDefinition struct {
MaxEntries int64 `json:"maxEntries,omitempty"`
Metric string `json:"metric,omitempty"`
Name string `json:"name,omitempty"`
ResetPeriod string `json:"resetPeriod,omitempty"`
Slug string `json:"slug,omitempty"`
SortingOrder string `json:"sortingOrder,omitempty"`
}
+2 -1
View File
@@ -3,5 +3,6 @@
package models
type ListLeaderboardEntriesResponse struct {
Entries []RankEntry `json:"entries,omitempty"`
Entries []RankEntry `json:"entries,omitempty"`
NextCursor string `json:"nextCursor,omitempty"`
}
+8
View File
@@ -0,0 +1,8 @@
// Code generated by apigen. DO NOT EDIT.
package models
type ListLeaderboardsResponse struct {
Items []LeaderboardDefinition `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 QuestDefinition struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
NextQuestID string `json:"nextQuestId,omitempty"`
Objectives []QuestObjective `json:"objectives,omitempty"`
Rewards []QuestRewardDefinition `json:"rewards,omitempty"`
Status string `json:"status,omitempty"`
}
+9
View File
@@ -0,0 +1,9 @@
// Code generated by apigen. DO NOT EDIT.
package models
type QuestObjective struct {
ID string `json:"id,omitempty"`
Metric string `json:"metric,omitempty"`
Target int64 `json:"target,omitempty"`
}
+9
View File
@@ -0,0 +1,9 @@
// Code generated by apigen. DO NOT EDIT.
package models
type QuestRewardDefinition struct {
Amount int64 `json:"amount,omitempty"`
Currency string `json:"currency,omitempty"`
ItemID string `json:"itemId,omitempty"`
}
-7
View File
@@ -1,7 +0,0 @@
// Code generated by apigen. DO NOT EDIT.
package models
type UpdateLeaderboardEntryRequest struct {
Score float64 `json:"score,omitempty"`
}
-7
View File
@@ -1,7 +0,0 @@
// Code generated by apigen. DO NOT EDIT.
package models
type UpsertProjectStorageRequest struct {
Items []AdminProjectStorageItem `json:"items,omitempty"`
}