You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

144 lines
4.8 KiB

syntax = "proto2";
import "steammessages_unified_base.proto";
option py_generic_services = true;
message CInventory_GetInventory_Request {
optional uint32 appid = 1;
optional uint64 steamid = 2;
}
message CInventory_Response {
optional string etag = 1;
repeated uint64 removeditemids = 2;
optional string item_json = 3;
optional string itemdef_json = 4;
optional bytes ticket = 5;
}
message CInventory_ExchangeItem_Request {
optional uint32 appid = 1;
optional uint64 steamid = 2;
repeated uint64 materialsitemid = 3;
repeated uint32 materialsquantity = 4;
optional uint64 outputitemdefid = 5;
}
message CInventory_GetEligiblePromoItemDefIDs_Request {
optional uint32 appid = 1;
optional uint64 steamid = 2;
}
message CInventory_GetEligiblePromoItemDefIDs_Response {
repeated uint64 itemdefids = 1;
}
message CInventory_AddItem_Request {
optional uint32 appid = 1;
repeated uint64 itemdefid = 2;
repeated string itempropsjson = 3;
optional uint64 steamid = 4;
optional bool notify = 5 [(description) = "Should notify the user that the item was added to their Steam Inventory."];
}
message CInventory_SafeModifyItem_Request {
optional uint32 appid = 1;
optional uint64 acctid = 2;
optional uint64 itemid = 3;
optional string itempropsjson = 4;
}
message CInventory_ConsumePlaytime_Request {
optional uint32 appid = 1;
optional uint64 itemdefid = 2;
}
message CInventory_GetItemDefs_Request {
optional uint32 appid = 1;
optional string modifiedsince = 2;
repeated uint64 itemdefids = 4;
repeated uint64 workshopids = 5;
optional uint32 cache_max_age_seconds = 7 [default = 0, (description) = "Allow stale data to be returned for the specified number of seconds."];
}
message CInventory_ConsumeItem_Request {
optional uint32 appid = 1;
optional uint64 itemid = 2;
optional uint32 quantity = 3;
optional string timestamp = 4;
optional uint64 steamid = 5;
}
message CInventory_DevSetNextDrop_Request {
optional uint32 appid = 1;
optional uint64 itemdefid = 2;
optional string droptime = 3;
}
message CInventory_SplitItemStack_Request {
optional uint32 appid = 1;
optional uint64 itemid = 2;
optional uint32 quantity = 3;
optional string timestamp = 4;
}
message CInventory_CombineItemStacks_Request {
optional uint32 appid = 1;
optional uint64 fromitemid = 2;
optional uint64 destitemid = 3;
optional uint32 quantity = 4;
optional string fromtimestamp = 5;
optional string desttimestamp = 6;
}
message CInventory_GetItemDefMeta_Request {
optional uint32 appid = 1;
}
message CInventory_GetItemDefMeta_Response {
optional uint32 modified = 1;
optional string digest = 2;
}
service Inventory {
option (service_description) = "A service that provides access to inventory";
rpc GetInventory (.CInventory_GetInventory_Request) returns (.CInventory_Response) {
option (method_description) = "Retrieves a users inventory as a big JSON blob";
}
rpc ExchangeItem (.CInventory_ExchangeItem_Request) returns (.CInventory_Response) {
option (method_description) = "Craft an item in a user's inventory";
}
rpc GetEligiblePromoItemDefIDs (.CInventory_GetEligiblePromoItemDefIDs_Request) returns (.CInventory_GetEligiblePromoItemDefIDs_Response) {
option (method_description) = "Returns a list of promo item defs the user is eligible for";
}
rpc AddPromoItem (.CInventory_AddItem_Request) returns (.CInventory_Response) {
option (method_description) = "Adds a promo item to a user's inventory";
}
rpc SafeModifyItem (.CInventory_SafeModifyItem_Request) returns (.CInventory_Response) {
option (method_description) = "Modify an item in a user's inventory (safe properties only)";
}
rpc ConsumePlaytime (.CInventory_ConsumePlaytime_Request) returns (.CInventory_Response) {
option (method_description) = "Consumes playtime and possibly returns a granted item";
}
rpc GetItemDefs (.CInventory_GetItemDefs_Request) returns (.CInventory_Response) {
option (method_description) = "Get item definitions";
}
rpc ConsumeItem (.CInventory_ConsumeItem_Request) returns (.CInventory_Response) {
option (method_description) = "Consume an item";
}
rpc DevGenerateItem (.CInventory_AddItem_Request) returns (.CInventory_Response) {
option (method_description) = "Grant an item when in developer mode";
}
rpc DevSetNextDrop (.CInventory_DevSetNextDrop_Request) returns (.CInventory_Response) {
option (method_description) = "Consume an item";
}
rpc SplitItemStack (.CInventory_SplitItemStack_Request) returns (.CInventory_Response) {
option (method_description) = "Split an item stack into two stacks";
}
rpc CombineItemStacks (.CInventory_CombineItemStacks_Request) returns (.CInventory_Response) {
option (method_description) = "Combine two stacks of items";
}
rpc GetItemDefMeta (.CInventory_GetItemDefMeta_Request) returns (.CInventory_GetItemDefMeta_Response) {
option (method_description) = "Get metadata about the current item definition for this game.";
}
}