/** * Hathora Cloud API * Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { ProcessStatus, ProcessV2, Region } from '../models'; export interface CreateProcessRequest { appId: string; region: Region; } export interface GetLatestProcessesRequest { appId: string; status?: Array; region?: Array; } export interface GetProcessInfoRequest { appId: string; processId: string; } export interface StopProcessRequest { appId: string; processId: string; } /** * ProcessesV2Api - interface * * @export * @interface ProcessesV2ApiInterface */ export interface ProcessesV2ApiInterface { /** * Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. * @param {string} appId * @param {Region} region * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessesV2ApiInterface */ createProcessRaw(requestParameters: CreateProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. */ createProcess(appId: string, region: Region, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. * @param {string} appId * @param {Array} [status] * @param {Array} [region] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessesV2ApiInterface */ getLatestProcessesRaw(requestParameters: GetLatestProcessesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. */ getLatestProcesses(appId: string, status?: Array, region?: Array, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). * @param {string} appId * @param {string} processId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessesV2ApiInterface */ getProcessInfoRaw(requestParameters: GetProcessInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). */ getProcessInfo(appId: string, processId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. * @param {string} appId * @param {string} processId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProcessesV2ApiInterface */ stopProcessRaw(requestParameters: StopProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. */ stopProcess(appId: string, processId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class ProcessesV2Api extends runtime.BaseAPI implements ProcessesV2ApiInterface { /** * Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. */ createProcessRaw(requestParameters: CreateProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. */ createProcess(appId: string, region: Region, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. */ getLatestProcessesRaw(requestParameters: GetLatestProcessesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. */ getLatestProcesses(appId: string, status?: Array, region?: Array, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). */ getProcessInfoRaw(requestParameters: GetProcessInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). */ getProcessInfo(appId: string, processId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. */ stopProcessRaw(requestParameters: StopProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. */ stopProcess(appId: string, processId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }