UNPKG

bunactyl

Version:

TypeScript SDK for Pterodactyl

32 lines 1.13 kB
import type { BunactylClientOptions } from './client'; import { UsersResource } from './resources/users'; import { NodesResource } from './resources/nodes'; import { LocationsResource } from './resources/locations'; import { AllocationsResource } from './resources/allocations'; import { ServersResource } from './resources/servers'; export * from './interfaces/common'; export * from './interfaces/users'; export * from './interfaces/nodes'; export * from './interfaces/locations'; export * from './interfaces/allocations'; export * from './interfaces/servers'; export declare class Bunactyl { private client; users: UsersResource; nodes: NodesResource; locations: LocationsResource; servers: ServersResource; /** * Create a new Pterodactyl SDK instance * * @param options Configuration options */ constructor(options: BunactylClientOptions); /** * Get an allocations resource for a specific node * * @param nodeId The node ID to get allocations for */ allocations(_nodeId: number | string): AllocationsResource; } //# sourceMappingURL=index.d.ts.map