/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 1d041af7467f */ import { debugSessionsCreate } from "../funcs/debugSessionsCreate.js"; import { debugSessionsGet } from "../funcs/debugSessionsGet.js"; import { debugSessionsList } from "../funcs/debugSessionsList.js"; import { debugSessionsUpdate } from "../funcs/debugSessionsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class DebugSessions extends ClientSDK { /** * Retrieve debug sessions for dashboard audit. Filters: project, deployment, state, mode. */ async list( request?: operations.ListDebugSessionsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(debugSessionsList( this, request, options, )); } /** * Create a debug-session audit row. Called by the manager when a pull or push debug tunnel is opened. Workspace + project derived from deployment. */ async create( request?: models.CreateDebugSessionRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(debugSessionsCreate( this, request, options, )); } /** * Update debug-session state. Called by manager on tunnel attach, close, or deadline expiry. */ async update( request: operations.UpdateDebugSessionRequest, options?: RequestOptions, ): Promise { return unwrapAsync(debugSessionsUpdate( this, request, options, )); } /** * Retrieve a debug session by ID. */ async get( request: operations.GetDebugSessionRequest, options?: RequestOptions, ): Promise { return unwrapAsync(debugSessionsGet( this, request, options, )); } }