anchorbrowser
Version:
The official TypeScript library for the Anchorbrowser API
57 lines • 1.67 kB
TypeScript
import { APIResource } from "../../core/resource.js";
import * as Shared from "../shared.js";
import { APIPromise } from "../../core/api-promise.js";
import { RequestOptions } from "../../internal/request-options.js";
export declare class All extends APIResource {
/**
* Terminates all active browser sessions associated with the provided API key.
*
* @example
* ```ts
* const successResponse = await client.sessions.all.delete();
* ```
*/
delete(options?: RequestOptions): APIPromise<Shared.SuccessResponse>;
/**
* Retrieves status information for all browser sessions associated with the API
* key.
*
* @example
* ```ts
* const response = await client.sessions.all.status();
* ```
*/
status(options?: RequestOptions): APIPromise<AllStatusResponse>;
}
export interface AllStatusResponse {
data?: AllStatusResponse.Data;
}
export declare namespace AllStatusResponse {
interface Data {
/**
* Total number of browser sessions
*/
count?: number;
items?: Array<Data.Item>;
}
namespace Data {
interface Item {
/**
* Timestamp when the browser session was created
*/
created_at: string;
/**
* Unique identifier for the browser session
*/
session_id: string;
/**
* Current status of the browser session
*/
status: string;
}
}
}
export declare namespace All {
export { type AllStatusResponse as AllStatusResponse };
}
//# sourceMappingURL=all.d.ts.map