UNPKG

@bitzonegaming/roleplay-engine-sdk

Version:
18 lines (17 loc) 1.14 kB
import { ApiOptions, EngineClient } from '../core/engine-client'; import { ServerTemplate } from './models/server-template'; export declare class TemplateApi { private readonly client; constructor(client: EngineClient); /** * It returns a list of templates. If noCache is true, it will not use the cache.<br/>This endpoint performs server-level operations. The token does not need to be associated with any account or character.<br/><b>Account Policies</b>: account_policy:read:configuration<br/><br/> This endpoint requires authorization, and supports following token types:<br/>🔓 [API Key] <b>Required Scopes</b>: read:configuration<br/>🔓 [SSO Token]<br/>🔓 [Access Token]<br/>🔓 [Session Token] * @summary Get templates * @param {Object} [query] Query parameters. * @param {boolean} [query.noCache] If `true`, the request will not use the cache. * @param {*} [options] Override http request option. * @throws {EngineError} */ getTemplates(query: { noCache?: boolean; }, options?: ApiOptions): Promise<ReadonlyArray<ServerTemplate>>; }