UNPKG

rapier

Version:

A JavaScript Dota 2 (Source 2) replay parsing library.

1,667 lines (1,666 loc) 1.62 MB
{ "package": null, "options": { "optimize_for": "SPEED", "cc_generic_services": false }, "messages": [ { "name": "CMsgProtoBufHeader", "options": { "(msgpool_soft_limit)": 256, "(msgpool_hard_limit)": 1024 }, "fields": [ { "rule": "optional", "type": "fixed64", "name": "client_steam_id", "id": 1 }, { "rule": "optional", "type": "int32", "name": "client_session_id", "id": 2 }, { "rule": "optional", "type": "uint32", "name": "source_app_id", "id": 3 }, { "rule": "optional", "type": "fixed64", "name": "job_id_source", "id": 10, "options": { "default": 18446744073709552000 } }, { "rule": "optional", "type": "fixed64", "name": "job_id_target", "id": 11, "options": { "default": 18446744073709552000 } }, { "rule": "optional", "type": "string", "name": "target_job_name", "id": 12 }, { "rule": "optional", "type": "int32", "name": "eresult", "id": 13, "options": { "default": 2 } }, { "rule": "optional", "type": "string", "name": "error_message", "id": 14 }, { "rule": "optional", "type": "GCProtoBufMsgSrc", "name": "gc_msg_src", "id": 200, "options": { "default": "GCProtoBufMsgSrc_Unspecified" } }, { "rule": "optional", "type": "uint32", "name": "gc_dir_index_source", "id": 201 } ] }, { "name": "CMsgWebAPIKey", "fields": [ { "rule": "optional", "type": "uint32", "name": "status", "id": 1, "options": { "default": 255 } }, { "rule": "optional", "type": "uint32", "name": "account_id", "id": 2, "options": { "default": 0 } }, { "rule": "optional", "type": "uint32", "name": "publisher_group_id", "id": 3, "options": { "default": 0 } }, { "rule": "optional", "type": "uint32", "name": "key_id", "id": 4 }, { "rule": "optional", "type": "string", "name": "domain", "id": 5 } ] }, { "name": "CMsgHttpRequest", "fields": [ { "rule": "optional", "type": "uint32", "name": "request_method", "id": 1 }, { "rule": "optional", "type": "string", "name": "hostname", "id": 2 }, { "rule": "optional", "type": "string", "name": "url", "id": 3 }, { "rule": "repeated", "type": "RequestHeader", "name": "headers", "id": 4 }, { "rule": "repeated", "type": "QueryParam", "name": "get_params", "id": 5 }, { "rule": "repeated", "type": "QueryParam", "name": "post_params", "id": 6 }, { "rule": "optional", "type": "bytes", "name": "body", "id": 7 }, { "rule": "optional", "type": "uint32", "name": "absolute_timeout", "id": 8 } ], "messages": [ { "name": "RequestHeader", "fields": [ { "rule": "optional", "type": "string", "name": "name", "id": 1 }, { "rule": "optional", "type": "string", "name": "value", "id": 2 } ] }, { "name": "QueryParam", "fields": [ { "rule": "optional", "type": "string", "name": "name", "id": 1 }, { "rule": "optional", "type": "bytes", "name": "value", "id": 2 } ] } ] }, { "name": "CMsgWebAPIRequest", "fields": [ { "rule": "optional", "type": "string", "name": "UNUSED_job_name", "id": 1 }, { "rule": "optional", "type": "string", "name": "interface_name", "id": 2 }, { "rule": "optional", "type": "string", "name": "method_name", "id": 3 }, { "rule": "optional", "type": "uint32", "name": "version", "id": 4 }, { "rule": "optional", "type": "CMsgWebAPIKey", "name": "api_key", "id": 5 }, { "rule": "optional", "type": "CMsgHttpRequest", "name": "request", "id": 6 }, { "rule": "optional", "type": "uint32", "name": "routing_app_id", "id": 7 } ] }, { "name": "CMsgHttpResponse", "fields": [ { "rule": "optional", "type": "uint32", "name": "status_code", "id": 1 }, { "rule": "repeated", "type": "ResponseHeader", "name": "headers", "id": 2 }, { "rule": "optional", "type": "bytes", "name": "body", "id": 3 } ], "messages": [ { "name": "ResponseHeader", "fields": [ { "rule": "optional", "type": "string", "name": "name", "id": 1 }, { "rule": "optional", "type": "string", "name": "value", "id": 2 } ] } ] }, { "name": "CMsgAMFindAccounts", "fields": [ { "rule": "optional", "type": "uint32", "name": "search_type", "id": 1 }, { "rule": "optional", "type": "string", "name": "search_string", "id": 2 } ] }, { "name": "CMsgAMFindAccountsResponse", "fields": [ { "rule": "repeated", "type": "fixed64", "name": "steam_id", "id": 1 } ] }, { "name": "CMsgNotifyWatchdog", "fields": [ { "rule": "optional", "type": "uint32", "name": "source", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "alert_type", "id": 2 }, { "rule": "optional", "type": "uint32", "name": "alert_destination", "id": 3 }, { "rule": "optional", "type": "bool", "name": "critical", "id": 4 }, { "rule": "optional", "type": "uint32", "name": "time", "id": 5 }, { "rule": "optional", "type": "uint32", "name": "appid", "id": 6 }, { "rule": "optional", "type": "string", "name": "text", "id": 7 } ] }, { "name": "CMsgAMGetLicenses", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid", "id": 1 } ] }, { "name": "CMsgPackageLicense", "fields": [ { "rule": "optional", "type": "uint32", "name": "package_id", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "time_created", "id": 2 }, { "rule": "optional", "type": "uint32", "name": "owner_id", "id": 3 } ] }, { "name": "CMsgAMGetLicensesResponse", "fields": [ { "rule": "repeated", "type": "CMsgPackageLicense", "name": "license", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "result", "id": 2 } ] }, { "name": "CMsgAMGetUserGameStats", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steam_id", "id": 1 }, { "rule": "optional", "type": "fixed64", "name": "game_id", "id": 2 }, { "rule": "repeated", "type": "uint32", "name": "stats", "id": 3 } ] }, { "name": "CMsgAMGetUserGameStatsResponse", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steam_id", "id": 1 }, { "rule": "optional", "type": "fixed64", "name": "game_id", "id": 2 }, { "rule": "optional", "type": "int32", "name": "eresult", "id": 3, "options": { "default": 2 } }, { "rule": "repeated", "type": "Stats", "name": "stats", "id": 4 }, { "rule": "repeated", "type": "Achievement_Blocks", "name": "achievement_blocks", "id": 5 } ], "messages": [ { "name": "Stats", "fields": [ { "rule": "optional", "type": "uint32", "name": "stat_id", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "stat_value", "id": 2 } ] }, { "name": "Achievement_Blocks", "fields": [ { "rule": "optional", "type": "uint32", "name": "achievement_id", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "achievement_bit_id", "id": 2 }, { "rule": "optional", "type": "fixed32", "name": "unlock_time", "id": 3 } ] } ] }, { "name": "CMsgGCGetCommandList", "fields": [ { "rule": "optional", "type": "uint32", "name": "app_id", "id": 1 }, { "rule": "optional", "type": "string", "name": "command_prefix", "id": 2 } ] }, { "name": "CMsgGCGetCommandListResponse", "fields": [ { "rule": "repeated", "type": "string", "name": "command_name", "id": 1 } ] }, { "name": "CGCMsgMemCachedGet", "fields": [ { "rule": "repeated", "type": "string", "name": "keys", "id": 1 } ] }, { "name": "CGCMsgMemCachedGetResponse", "fields": [ { "rule": "repeated", "type": "ValueTag", "name": "values", "id": 1 } ], "messages": [ { "name": "ValueTag", "fields": [ { "rule": "optional", "type": "bool", "name": "found", "id": 1 }, { "rule": "optional", "type": "bytes", "name": "value", "id": 2 } ] } ] }, { "name": "CGCMsgMemCachedSet", "fields": [ { "rule": "repeated", "type": "KeyPair", "name": "keys", "id": 1 } ], "messages": [ { "name": "KeyPair", "fields": [ { "rule": "optional", "type": "string", "name": "name", "id": 1 }, { "rule": "optional", "type": "bytes", "name": "value", "id": 2 } ] } ] }, { "name": "CGCMsgMemCachedDelete", "fields": [ { "rule": "repeated", "type": "string", "name": "keys", "id": 1 } ] }, { "name": "CGCMsgMemCachedStats", "fields": [] }, { "name": "CGCMsgMemCachedStatsResponse", "fields": [ { "rule": "optional", "type": "uint64", "name": "curr_connections", "id": 1 }, { "rule": "optional", "type": "uint64", "name": "cmd_get", "id": 2 }, { "rule": "optional", "type": "uint64", "name": "cmd_set", "id": 3 }, { "rule": "optional", "type": "uint64", "name": "cmd_flush", "id": 4 }, { "rule": "optional", "type": "uint64", "name": "get_hits", "id": 5 }, { "rule": "optional", "type": "uint64", "name": "get_misses", "id": 6 }, { "rule": "optional", "type": "uint64", "name": "delete_hits", "id": 7 }, { "rule": "optional", "type": "uint64", "name": "delete_misses", "id": 8 }, { "rule": "optional", "type": "uint64", "name": "bytes_read", "id": 9 }, { "rule": "optional", "type": "uint64", "name": "bytes_written", "id": 10 }, { "rule": "optional", "type": "uint64", "name": "limit_maxbytes", "id": 11 }, { "rule": "optional", "type": "uint64", "name": "curr_items", "id": 12 }, { "rule": "optional", "type": "uint64", "name": "evictions", "id": 13 }, { "rule": "optional", "type": "uint64", "name": "bytes", "id": 14 } ] }, { "name": "CGCMsgSQLStats", "fields": [ { "rule": "optional", "type": "uint32", "name": "schema_catalog", "id": 1 } ] }, { "name": "CGCMsgSQLStatsResponse", "fields": [ { "rule": "optional", "type": "uint32", "name": "threads", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "threads_connected", "id": 2 }, { "rule": "optional", "type": "uint32", "name": "threads_active", "id": 3 }, { "rule": "optional", "type": "uint32", "name": "operations_submitted", "id": 4 }, { "rule": "optional", "type": "uint32", "name": "prepared_statements_executed", "id": 5 }, { "rule": "optional", "type": "uint32", "name": "non_prepared_statements_executed", "id": 6 }, { "rule": "optional", "type": "uint32", "name": "deadlock_retries", "id": 7 }, { "rule": "optional", "type": "uint32", "name": "operations_timed_out_in_queue", "id": 8 }, { "rule": "optional", "type": "uint32", "name": "errors", "id": 9 } ] }, { "name": "CMsgAMAddFreeLicense", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "ip_public", "id": 2 }, { "rule": "optional", "type": "uint32", "name": "packageid", "id": 3 }, { "rule": "optional", "type": "string", "name": "store_country_code", "id": 4 } ] }, { "name": "CMsgAMAddFreeLicenseResponse", "fields": [ { "rule": "optional", "type": "int32", "name": "eresult", "id": 1, "options": { "default": 2 } }, { "rule": "optional", "type": "int32", "name": "purchase_result_detail", "id": 2 }, { "rule": "optional", "type": "fixed64", "name": "transid", "id": 3 } ] }, { "name": "CGCMsgGetIPLocation", "fields": [ { "rule": "repeated", "type": "fixed32", "name": "ips", "id": 1 } ] }, { "name": "CIPLocationInfo", "fields": [ { "rule": "optional", "type": "uint32", "name": "ip", "id": 1 }, { "rule": "optional", "type": "float", "name": "latitude", "id": 2 }, { "rule": "optional", "type": "float", "name": "longitude", "id": 3 }, { "rule": "optional", "type": "string", "name": "country", "id": 4 }, { "rule": "optional", "type": "string", "name": "state", "id": 5 }, { "rule": "optional", "type": "string", "name": "city", "id": 6 } ] }, { "name": "CGCMsgGetIPLocationResponse", "fields": [ { "rule": "repeated", "type": "CIPLocationInfo", "name": "infos", "id": 1 } ] }, { "name": "CGCMsgGetIPASN", "fields": [ { "rule": "repeated", "type": "fixed32", "name": "ips", "id": 1 } ] }, { "name": "CIPASNInfo", "fields": [ { "rule": "optional", "type": "fixed32", "name": "ip", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "asn", "id": 2 } ] }, { "name": "CGCMsgGetIPASNResponse", "fields": [ { "rule": "repeated", "type": "CIPASNInfo", "name": "infos", "id": 1 } ] }, { "name": "CGCMsgSystemStatsSchema", "fields": [ { "rule": "optional", "type": "uint32", "name": "gc_app_id", "id": 1 }, { "rule": "optional", "type": "bytes", "name": "schema_kv", "id": 2 } ] }, { "name": "CGCMsgGetSystemStats", "fields": [] }, { "name": "CGCMsgGetSystemStatsResponse", "fields": [ { "rule": "optional", "type": "uint32", "name": "gc_app_id", "id": 1 }, { "rule": "optional", "type": "bytes", "name": "stats_kv", "id": 2 }, { "rule": "optional", "type": "uint32", "name": "active_jobs", "id": 3 }, { "rule": "optional", "type": "uint32", "name": "yielding_jobs", "id": 4 }, { "rule": "optional", "type": "uint32", "name": "user_sessions", "id": 5 }, { "rule": "optional", "type": "uint32", "name": "game_server_sessions", "id": 6 }, { "rule": "optional", "type": "uint32", "name": "socaches", "id": 7 }, { "rule": "optional", "type": "uint32", "name": "socaches_to_unload", "id": 8 }, { "rule": "optional", "type": "uint32", "name": "socaches_loading", "id": 9 }, { "rule": "optional", "type": "uint32", "name": "writeback_queue", "id": 10 }, { "rule": "optional", "type": "uint32", "name": "steamid_locks", "id": 11 }, { "rule": "optional", "type": "uint32", "name": "logon_queue", "id": 12 }, { "rule": "optional", "type": "uint32", "name": "logon_jobs", "id": 13 } ] }, { "name": "CMsgAMSendEmail", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "email_msg_type", "id": 2 }, { "rule": "optional", "type": "uint32", "name": "email_format", "id": 3 }, { "rule": "repeated", "type": "PersonaNameReplacementToken", "name": "persona_name_tokens", "id": 5 }, { "rule": "optional", "type": "uint32", "name": "source_gc", "id": 6 }, { "rule": "repeated", "type": "ReplacementToken", "name": "tokens", "id": 7 } ], "messages": [ { "name": "ReplacementToken", "fields": [ { "rule": "optional", "type": "string", "name": "token_name", "id": 1 }, { "rule": "optional", "type": "string", "name": "token_value", "id": 2 } ] }, { "name": "PersonaNameReplacementToken", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid", "id": 1 }, { "rule": "optional", "type": "string", "name": "token_name", "id": 2 } ] } ] }, { "name": "CMsgAMSendEmailResponse", "fields": [ { "rule": "optional", "type": "uint32", "name": "eresult", "id": 1, "options": { "default": 2 } } ] }, { "name": "CMsgGCGetEmailTemplate", "fields": [ { "rule": "optional", "type": "uint32", "name": "app_id", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "email_msg_type", "id": 2 }, { "rule": "optional", "type": "int32", "name": "email_lang", "id": 3 }, { "rule": "optional", "type": "int32", "name": "email_format", "id": 4 } ] }, { "name": "CMsgGCGetEmailTemplateResponse", "fields": [ { "rule": "optional", "type": "uint32", "name": "eresult", "id": 1, "options": { "default": 2 } }, { "rule": "optional", "type": "bool", "name": "template_exists", "id": 2 }, { "rule": "optional", "type": "string", "name": "template", "id": 3 } ] }, { "name": "CMsgAMGrantGuestPasses2", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steam_id", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "package_id", "id": 2 }, { "rule": "optional", "type": "int32", "name": "passes_to_grant", "id": 3 }, { "rule": "optional", "type": "int32", "name": "days_to_expiration", "id": 4 }, { "rule": "optional", "type": "int32", "name": "action", "id": 5 } ] }, { "name": "CMsgAMGrantGuestPasses2Response", "fields": [ { "rule": "optional", "type": "int32", "name": "eresult", "id": 1, "options": { "default": 2 } }, { "rule": "optional", "type": "int32", "name": "passes_granted", "id": 2, "options": { "default": 0 } } ] }, { "name": "CGCSystemMsg_GetAccountDetails", "options": { "(msgpool_soft_limit)": 128, "(msgpool_hard_limit)": 512 }, "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid", "id": 1 }, { "rule": "optional", "type": "uint32", "name": "appid", "id": 2 } ] }, { "name": "CGCSystemMsg_GetAccountDetails_Response", "options": { "(msgpool_soft_limit)": 128, "(msgpool_hard_limit)": 512 }, "fields": [ { "rule": "optional", "type": "uint32", "name": "eresult_deprecated", "id": 1, "options": { "default": 2 } }, { "rule": "optional", "type": "string", "name": "account_name", "id": 2 }, { "rule": "optional", "type": "string", "name": "persona_name", "id": 3 }, { "rule": "optional", "type": "bool", "name": "is_profile_created", "id": 26 }, { "rule": "optional", "type": "bool", "name": "is_profile_public", "id": 4 }, { "rule": "optional", "type": "bool", "name": "is_inventory_public", "id": 5 }, { "rule": "optional", "type": "bool", "name": "is_vac_banned", "id": 7 }, { "rule": "optional", "type": "bool", "name": "is_cyber_cafe", "id": 8 }, { "rule": "optional", "type": "bool", "name": "is_school_account", "id": 9 }, { "rule": "optional", "type": "bool", "name": "is_limited", "id": 10 }, { "rule": "optional", "type": "bool", "name": "is_subscribed", "id": 11 }, { "rule": "optional", "type": "uint32", "name": "package", "id": 12 }, { "rule": "optional", "type": "bool", "name": "is_free_trial_account", "id": 13 }, { "rule": "optional", "type": "uint32", "name": "free_trial_expiration", "id": 14 }, { "rule": "optional", "type": "bool", "name": "is_low_violence", "id": 15 }, { "rule": "optional", "type": "bool", "name": "is_account_locked_down", "id": 16 }, { "rule": "optional", "type": "bool", "name": "is_community_banned", "id": 17 }, { "rule": "optional", "type": "bool", "name": "is_trade_banned", "id": 18 }, { "rule": "optional", "type": "uint32", "name": "trade_ban_expiration", "id": 19 }, { "rule": "optional", "type": "uint32", "name": "accountid", "id": 20 }, { "rule": "optional", "type": "uint32", "name": "suspension_end_time", "id": 21 }, { "rule": "optional", "type": "string", "name": "currency", "id": 22 }, { "rule": "optional", "type": "uint32", "name": "steam_level", "id": 23 }, { "rule": "optional", "type": "uint32", "name": "friend_count", "id": 24 }, { "rule": "optional", "type": "uint32", "name": "account_creation_time", "id": 25 } ] }, { "name": "CMsgGCGetPersonaNames", "fields": [ { "rule": "repeated", "type": "fixed64", "name": "steamids", "id": 1 } ] }, { "name": "CMsgGCGetPersonaNames_Response", "fields": [ { "rule": "repeated", "type": "PersonaName", "name": "succeeded_lookups", "id": 1 }, { "rule": "repeated", "type": "fixed64", "name": "failed_lookup_steamids", "id": 2 } ], "messages": [ { "name": "PersonaName", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid", "id": 1 }, { "rule": "optional", "type": "string", "name": "persona_name", "id": 2 } ] } ] }, { "name": "CMsgGCCheckFriendship", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid_left", "id": 1 }, { "rule": "optional", "type": "fixed64", "name": "steamid_right", "id": 2 } ] }, { "name": "CMsgGCCheckFriendship_Response", "fields": [ { "rule": "optional", "type": "bool", "name": "success", "id": 1 }, { "rule": "optional", "type": "bool", "name": "found_friendship", "id": 2 } ] }, { "name": "CMsgGCGetAppFriendsList", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid", "id": 1 } ] }, { "name": "CMsgGCGetAppFriendsList_Response", "fields": [ { "rule": "optional", "type": "bool", "name": "success", "id": 1 }, { "rule": "repeated", "type": "fixed64", "name": "steamids", "id": 2 } ] }, { "name": "CMsgGCMsgMasterSetDirectory", "fields": [ { "rule": "optional", "type": "uint32", "name": "master_dir_index", "id": 1 }, { "rule": "repeated", "type": "SubGC", "name": "dir", "id": 2 } ], "messages": [ { "name": "SubGC", "fields": [ { "rule": "optional", "type": "uint32", "name": "dir_index", "id": 1 }, { "rule": "optional", "type": "string", "name": "name", "id": 2 }, { "rule": "optional", "type": "string", "name": "box", "id": 3 }, { "rule": "optional", "type": "string", "name": "command_line", "id": 4 }, { "rule": "optional", "type": "string", "name": "gc_binary", "id": 5 } ] } ] }, { "name": "CMsgGCMsgMasterSetDirectory_Response", "fields": [ { "rule": "optional", "type": "int32", "name": "eresult", "id": 1, "options": { "default": 2 } } ] }, { "name": "CMsgGCMsgWebAPIJobRequestForwardResponse", "fields": [ { "rule": "optional", "type": "uint32", "name": "dir_index", "id": 1 } ] }, { "name": "CGCSystemMsg_GetPurchaseTrust_Request", "fields": [ { "rule": "optional", "type": "fixed64", "name": "steamid", "id": 1 } ] }, { "name": "CGCSystemMsg_GetPurchaseTrust_Response", "fields": [ { "rule": "optional", "type": "bool", "name": "has_prior_purchase_history",