import * as TestClient from './testclient/'; import { ErrorCode, NatsTypescriptTemplateError } from './NatsTypescriptTemplateError'; import * as Nats from 'nats'; import * as v0RustServersServerIdEventsStartedChannel from "./channels/V0RustServersServerIdEventsStarted"; import * as v0RustServersServerIdEventsStoppedChannel from "./channels/V0RustServersServerIdEventsStopped"; import * as v0RustServersServerIdEventsPlayerSteamIdChattedChannel from "./channels/V0RustServersServerIdEventsPlayerSteamIdChatted"; import * as v0RustServersServerIdEventsWipedChannel from "./channels/V0RustServersServerIdEventsWiped"; import * as v0RustServersServerIdPlayersSteamIdEventsConnectedChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsConnected"; import * as v0RustServersServerIdPlayersSteamIdEventsDisconnectedChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsDisconnected"; import * as v0RustServersServerIdPlayersSteamIdEventsGatheredResourcesChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsGatheredResources"; import * as v0RustServersServerIdPlayersSteamIdEventsRespawnedChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsRespawned"; import * as v0RustServersServerIdPlayersSteamIdEventsCombatHitChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsCombatHit"; import * as v0RustServersServerIdPlayersSteamIdEventsItemsItemIdPickupChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsItemsItemIdPickup"; import * as v0RustServersServerIdPlayersSteamIdEventsItemsItemIdLootChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsItemsItemIdLoot"; import * as v0RustServersServerIdPlayersSteamIdEventsItemsItemIdCraftedChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsItemsItemIdCrafted"; import * as v0RustServersServerIdEventsCommandChannel from "./channels/V0RustServersServerIdEventsCommand"; import * as v0RustServersServerIdPlayersSteamIdEventsReportedChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsReported"; import * as v0RustServersServerIdPlayersSteamIdEventsUnbannedChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsUnbanned"; import * as v0RustServersServerIdPlayersSteamIdEventsBannedChannel from "./channels/V0RustServersServerIdPlayersSteamIdEventsBanned"; import ServerStarted from "./models/ServerStarted"; import ServerStopped from "./models/ServerStopped"; import ChatMessage from "./models/ChatMessage"; import ServerPlayerConnected from "./models/ServerPlayerConnected"; import ServerPlayerDisconnected from "./models/ServerPlayerDisconnected"; import ServerPlayerResourceGathered from "./models/ServerPlayerResourceGathered"; import ServerPlayerRespawned from "./models/ServerPlayerRespawned"; import ServerPlayerCombatPlayerhit from "./models/ServerPlayerCombatPlayerhit"; import ServerPlayerItemPickup from "./models/ServerPlayerItemPickup"; import ServerPlayerItemLoot from "./models/ServerPlayerItemLoot"; import ServerPlayerItemCrafted from "./models/ServerPlayerItemCrafted"; import ServerCommand from "./models/ServerCommand"; import ServerPlayerReported from "./models/ServerPlayerReported"; import ServerPlayerUnbanned from "./models/ServerPlayerUnbanned"; import ServerPlayerBanned from "./models/ServerPlayerBanned"; export { v0RustServersServerIdEventsStartedChannel }; export { v0RustServersServerIdEventsStoppedChannel }; export { v0RustServersServerIdEventsPlayerSteamIdChattedChannel }; export { v0RustServersServerIdEventsWipedChannel }; export { v0RustServersServerIdPlayersSteamIdEventsConnectedChannel }; export { v0RustServersServerIdPlayersSteamIdEventsDisconnectedChannel }; export { v0RustServersServerIdPlayersSteamIdEventsGatheredResourcesChannel }; export { v0RustServersServerIdPlayersSteamIdEventsRespawnedChannel }; export { v0RustServersServerIdPlayersSteamIdEventsCombatHitChannel }; export { v0RustServersServerIdPlayersSteamIdEventsItemsItemIdPickupChannel }; export { v0RustServersServerIdPlayersSteamIdEventsItemsItemIdLootChannel }; export { v0RustServersServerIdPlayersSteamIdEventsItemsItemIdCraftedChannel }; export { v0RustServersServerIdEventsCommandChannel }; export { v0RustServersServerIdPlayersSteamIdEventsReportedChannel }; export { v0RustServersServerIdPlayersSteamIdEventsUnbannedChannel }; export { v0RustServersServerIdPlayersSteamIdEventsBannedChannel }; export { ServerStarted }; export { ServerStopped }; export { ChatMessage }; export { ServerPlayerConnected }; export { ServerPlayerDisconnected }; export { ServerPlayerResourceGathered }; export { ServerPlayerRespawned }; export { ServerPlayerCombatPlayerhit }; export { ServerPlayerItemPickup }; export { ServerPlayerItemLoot }; export { ServerPlayerItemCrafted }; export { ServerCommand }; export { ServerPlayerReported }; export { ServerPlayerUnbanned }; export { ServerPlayerBanned }; export { ErrorCode, NatsTypescriptTemplateError }; export { TestClient }; /** * @class NatsAsyncApiClient * * The generated client based on your AsyncAPI document. */ export declare class NatsAsyncApiClient { private nc?; private js?; private codec?; private options?; /** * Try to connect to the NATS server with the different payloads. * @param options to use, payload is omitted if sat in the AsyncAPI document. */ connect(options: Nats.ConnectionOptions, codec?: Nats.Codec): Promise; /** * Disconnect all clients from the server */ disconnect(): Promise; /** * Returns whether or not any of the clients are closed */ isClosed(): boolean; /** * Try to connect to the NATS server with user credentials * * @param userCreds to use * @param options to connect with */ connectWithUserCreds(userCreds: string, options?: Nats.ConnectionOptions, codec?: Nats.Codec): Promise; /** * Try to connect to the NATS server with user and password * * @param user username to use * @param pass password to use * @param options to connect with */ connectWithUserPass(user: string, pass: string, options?: Nats.ConnectionOptions, codec?: Nats.Codec): Promise; /** * Try to connect to the NATS server which has no authentication * @param host to connect to * @param options to connect with */ connectToHost(host: string, options?: Nats.ConnectionOptions, codec?: Nats.Codec): Promise; /** * Connects the client to the AsyncAPI server called production. * GamingAPI NATS production broker */ connectToProduction(codec?: Nats.Codec): Promise; /** * Subscribe to the `v0/rust/servers/{server_id}/events/started` * * Channel for the API to process for when a server has started * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdEventsStarted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStarted, server_id?: string) => void, server_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/events/started` * * Channel for the API to process for when a server has started * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdEventsStarted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStarted, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/events/started` * * Channel for the API to process for when a server has started * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdEventsStarted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStarted, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/events/started` * * Channel for the API to process for when a server has started * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdEventsStarted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStarted, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/events/started` * * Channel for the API to process for when a server has started * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdEventsStarted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStarted, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/events/stopped` * * Channel for the API to process for when a server has stopped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdEventsStopped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStopped, server_id?: string) => void, server_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/events/stopped` * * Channel for the API to process for when a server has stopped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdEventsStopped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStopped, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/events/stopped` * * Channel for the API to process for when a server has stopped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdEventsStopped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStopped, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/events/stopped` * * Channel for the API to process for when a server has stopped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdEventsStopped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStopped, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/events/stopped` * * Channel for the API to process for when a server has stopped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdEventsStopped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerStopped, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/events/player/{steam_id}/chatted` * * Event for when a player used the chat * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdEventsPlayerSteamIdChatted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ChatMessage, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/events/player/{steam_id}/chatted` * * Event for when a player used the chat * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdEventsPlayerSteamIdChatted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ChatMessage, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/events/player/{steam_id}/chatted` * * Event for when a player used the chat * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdEventsPlayerSteamIdChatted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ChatMessage, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/events/player/{steam_id}/chatted` * * Event for when a player used the chat * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdEventsPlayerSteamIdChatted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ChatMessage, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/events/player/{steam_id}/chatted` * * Event for when a player used the chat * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdEventsPlayerSteamIdChatted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ChatMessage, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/events/wiped` * * Channel for the API to process when a server has just wiped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdEventsWiped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: null, server_id?: string) => void, server_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/events/wiped` * * Channel for the API to process when a server has just wiped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdEventsWiped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: null, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/events/wiped` * * Channel for the API to process when a server has just wiped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdEventsWiped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: null, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/events/wiped` * * Channel for the API to process when a server has just wiped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdEventsWiped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: null, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/events/wiped` * * Channel for the API to process when a server has just wiped * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdEventsWiped(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: null, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/connected` * * Channel for the API to process for when a player connects to a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsConnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerConnected, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/connected` * * Channel for the API to process for when a player connects to a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsConnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerConnected, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/connected` * * Channel for the API to process for when a player connects to a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsConnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerConnected, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/connected` * * Channel for the API to process for when a player connects to a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsConnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerConnected, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/connected` * * Channel for the API to process for when a player connects to a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsConnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerConnected, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/disconnected` * * Channel for the API to process for when a player disconnects from a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsDisconnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerDisconnected, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/disconnected` * * Channel for the API to process for when a player disconnects from a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsDisconnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerDisconnected, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/disconnected` * * Channel for the API to process for when a player disconnects from a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsDisconnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerDisconnected, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/disconnected` * * Channel for the API to process for when a player disconnects from a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsDisconnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerDisconnected, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/disconnected` * * Channel for the API to process for when a player disconnects from a server * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsDisconnected(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerDisconnected, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/gatheredResources` * * Channel for the API to process for when a player gathers some resources * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsGatheredResources(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerResourceGathered, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/gatheredResources` * * Channel for the API to process for when a player gathers some resources * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsGatheredResources(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerResourceGathered, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/gatheredResources` * * Channel for the API to process for when a player gathers some resources * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsGatheredResources(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerResourceGathered, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/gatheredResources` * * Channel for the API to process for when a player gathers some resources * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsGatheredResources(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerResourceGathered, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/gatheredResources` * * Channel for the API to process for when a player gathers some resources * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsGatheredResources(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerResourceGathered, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/respawned` * * Channel for the API to process for when a player respawn * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsRespawned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerRespawned, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/respawned` * * Channel for the API to process for when a player respawn * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsRespawned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerRespawned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/respawned` * * Channel for the API to process for when a player respawn * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsRespawned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerRespawned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/respawned` * * Channel for the API to process for when a player respawn * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsRespawned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerRespawned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/respawned` * * Channel for the API to process for when a player respawn * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsRespawned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerRespawned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/combat/hit` * * Channel for the API to process for when a player hits another player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsCombatHit(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerCombatPlayerhit, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/combat/hit` * * Channel for the API to process for when a player hits another player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsCombatHit(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerCombatPlayerhit, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/combat/hit` * * Channel for the API to process for when a player hits another player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsCombatHit(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerCombatPlayerhit, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/combat/hit` * * Channel for the API to process for when a player hits another player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsCombatHit(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerCombatPlayerhit, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/combat/hit` * * Channel for the API to process for when a player hits another player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsCombatHit(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerCombatPlayerhit, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/pickup` * * Channel for the API to process for when a player pickup items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdPickup(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemPickup, server_id?: string, steam_id?: string, item_id?: string) => void, server_id: string, steam_id: string, item_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/pickup` * * Channel for the API to process for when a player pickup items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsItemsItemIdPickup(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemPickup, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/pickup` * * Channel for the API to process for when a player pickup items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdPickup(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemPickup, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/pickup` * * Channel for the API to process for when a player pickup items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdPickup(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemPickup, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/pickup` * * Channel for the API to process for when a player pickup items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsItemsItemIdPickup(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemPickup, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/loot` * * Channel for the API to process for when a player loots an item ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdLoot(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemLoot, server_id?: string, steam_id?: string, item_id?: string) => void, server_id: string, steam_id: string, item_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/loot` * * Channel for the API to process for when a player loots an item ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsItemsItemIdLoot(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemLoot, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/loot` * * Channel for the API to process for when a player loots an item ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdLoot(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemLoot, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/loot` * * Channel for the API to process for when a player loots an item ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdLoot(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemLoot, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/loot` * * Channel for the API to process for when a player loots an item ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsItemsItemIdLoot(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemLoot, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/crafted` * * Channel for the API to process for when a player crafts items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdCrafted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemCrafted, server_id?: string, steam_id?: string, item_id?: string) => void, server_id: string, steam_id: string, item_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/crafted` * * Channel for the API to process for when a player crafts items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsItemsItemIdCrafted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemCrafted, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/crafted` * * Channel for the API to process for when a player crafts items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdCrafted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemCrafted, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/crafted` * * Channel for the API to process for when a player crafts items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsItemsItemIdCrafted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemCrafted, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/items/{item_id}/crafted` * * Channel for the API to process for when a player crafts items ingame * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param item_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsItemsItemIdCrafted(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerItemCrafted, server_id?: string, steam_id?: string, item_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, item_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/events/command` * * Channel for the API to process for when a server command is run * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdEventsCommand(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerCommand, server_id?: string) => void, server_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/events/command` * * Channel for the API to process for when a server command is run * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdEventsCommand(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerCommand, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/events/command` * * Channel for the API to process for when a server command is run * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdEventsCommand(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerCommand, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/events/command` * * Channel for the API to process for when a server command is run * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdEventsCommand(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerCommand, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/events/command` * * Channel for the API to process for when a server command is run * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdEventsCommand(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerCommand, server_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/reported` * * Channel for the API to process for when a player is reported * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsReported(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerReported, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/reported` * * Channel for the API to process for when a player is reported * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsReported(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerReported, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/reported` * * Channel for the API to process for when a player is reported * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsReported(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerReported, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/reported` * * Channel for the API to process for when a player is reported * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsReported(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerReported, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/reported` * * Channel for the API to process for when a player is reported * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsReported(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerReported, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/unbanned` * * Channel for notifying a server unbanned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsUnbanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerUnbanned, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/unbanned` * * Channel for notifying a server unbanned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsUnbanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerUnbanned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/unbanned` * * Channel for notifying a server unbanned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsUnbanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerUnbanned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/unbanned` * * Channel for notifying a server unbanned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsUnbanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerUnbanned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/unbanned` * * Channel for notifying a server unbanned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsUnbanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerUnbanned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; /** * Subscribe to the `v0/rust/servers/{server_id}/players/{steam_id}/events/banned` * * Channel for notifying a server banned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ subscribeToV0RustServersServerIdPlayersSteamIdEventsBanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerBanned, server_id?: string, steam_id?: string) => void, server_id: string, steam_id: string, flush?: boolean, options?: Nats.SubscriptionOptions): Promise; /** * JetStream pull function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/banned` * * Channel for notifying a server banned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullV0RustServersServerIdPlayersSteamIdEventsBanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerBanned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string): void; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/banned` * * Channel for notifying a server banned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPushSubscribeToV0RustServersServerIdPlayersSteamIdEventsBanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerBanned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * Push subscription to the `v0/rust/servers/{server_id}/players/{steam_id}/events/banned` * * Channel for notifying a server banned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param flush ensure client is force flushed after subscribing * @param options to subscribe with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamPullSubscribeToV0RustServersServerIdPlayersSteamIdEventsBanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerBanned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, options: Nats.ConsumerOptsBuilder | Partial): Promise; /** * JetStream fetch function. * * Pull message from `v0/rust/servers/{server_id}/players/{steam_id}/events/banned` * * Channel for notifying a server banned a player * * @param onDataCallback to call when messages are received * @param server_id parameter to use in topic * @param steam_id parameter to use in topic * @param options to pull message with, bindings from the AsyncAPI document overwrite these if specified */ jetStreamFetchV0RustServersServerIdPlayersSteamIdEventsBanned(onDataCallback: (err?: NatsTypescriptTemplateError, msg?: ServerPlayerBanned, server_id?: string, steam_id?: string, jetstreamMsg?: Nats.JsMsg) => void, server_id: string, steam_id: string, durable: string, options?: Partial): void; }