class OpenCloudClient
extends BaseClient
import { OpenCloudClient } from "https://deno.land/x/dynablox_opencloud@v0.2.2/src/clients/OpenCloudClient.ts";
Open cloud client for open cloud.
Constructors
new
OpenCloudClient(options: OpenCloudClientOptions)Properties
Whether the ratelimiter should yield instead of throwing an error.
private
_scopes: Scope[]The scopes allowed.
readonly
ratelimiter: RatelimitHelperThe Ratelimit helper class.
Methods
canAccessResource<ScopeType extends Scope["scopeType"]>(): void
scopeType: ScopeType,
parts: Extract<Scope, { scopeType: ScopeType; }>["targetParts"],
operation: Extract<Scope, { scopeType: ScopeType; }>["operations"][number],
partsOptional: boolean[],
Errors if the API key can not access the resource.
getBaseUniverse(universeId: number): BaseUniverse
Gets a base Universe by id.