/** * Wire-format string constants used by both transports. * * Centralises HTTP header names, content-type values, socket * command identifiers and multipart field names. The values are * the literal strings the GearN backend recognises on the wire, * so they cannot be renamed without a coordinated backend change. * * Categories: * - `USER_AGENT`, `CONTENT_TYPE`, `ACCEPT`, `CONTENT_LENGTH` — * generic HTTP headers consumed by * {@link NetworkingPeerAxiosRequest}. * - `APPLICATION_JSON`, `APPLICATION_MSGPACK` — MIME values for * the matching wire format. * - `RequestAuthTokenCmd`, `RequestSecretCmd`, `RequestGameIdCmd` — * GearN-specific HTTP headers (also used as the auth-frame name * on the socket transport). * - `RequestCmd_*`, `ResponseCmd_*`, `EventCmd_*` — socket.io * event names for outbound requests, inbound responses and * inbound server-pushed events. Two flavours each (MsgPack * binary vs JSON text). * - `Data`, `File` — multipart form-data field names for the * upload endpoint. * - `BaseUrl` — reverse-proxy header that forwards the original * base URL when relative-path mode is enabled. */ export declare class Commands { /** * HTTP header used to identify the SDK client variant and version. */ static readonly USER_AGENT: string; /** * HTTP header that declares the request body content type. */ static readonly CONTENT_TYPE: string; /** * HTTP header that declares which response content types the client accepts. */ static readonly ACCEPT: string; /** * HTTP header that carries the serialized request body size in bytes when required. */ static readonly CONTENT_LENGTH: string; /** * MIME type used for JSON request and response payloads. */ static readonly APPLICATION_JSON: string; /** * MIME type used for MessagePack request and response payloads. */ static readonly APPLICATION_MSGPACK: string; /** * Transport header used to send the current auth token with HTTP requests. */ static readonly RequestAuthTokenCmd: string; /** * Transport header used to send the selected route secret key with HTTP requests. */ static readonly RequestSecretCmd: string; /** * Transport header used to send the current game id when the backend requires it. */ static readonly RequestGameIdCmd: string; /** * Socket command name for MessagePack operation requests. */ static readonly RequestCmd_MsgPack: string; /** * Socket command name for MessagePack operation responses. */ static readonly ResponseCmd_MsgPack: string; /** * Socket command name for MessagePack pushed events. */ static readonly EventCmd_MsgPack: string; /** * Socket command name for JSON operation requests. */ static readonly RequestCmd_Json: string; /** * Socket command name for JSON operation responses. */ static readonly ResponseCmd_Json: string; /** * Socket command name for JSON pushed events. */ static readonly EventCmd_Json: string; /** * Multipart field name used for non-file payload data. */ static readonly Data: string; /** * Multipart field name used for uploaded file content. */ static readonly File: string; /** * Reverse-proxy helper header that carries the original base URL when needed. */ static readonly BaseUrl: string; }