← Public packages
@cameronpak/box
Full Box Public API v1 client: lifecycle, prompts, files, commands, snapshots, environments, webhooks, desktop, hosting, and account.
src/list-named-snapshots.ts
9 lines · 395 B · TypeScriptimport { boxRequest, type Result } from './client.ts'
import type { NamedSnapshot } from './types.ts'
export type ListNamedSnapshotsOutput = { snapshots: Array<NamedSnapshot> }
/** List named snapshots, newest first. */
export default async function listNamedSnapshots(): Promise<Result<ListNamedSnapshotsOutput>> {
return boxRequest<ListNamedSnapshotsOutput>({ path: '/named-snapshots' })
}