The KOS model instance
The API path constant
The HTTP method (defaults to 'get')
The cached response data, or undefined if not found/expired
decorated methods. TypeScript will infer types from your OpenAPI schema when using typed path constants.
For cross-package scenarios where OpenAPI specs differ, you can optionally provide an explicit type parameter.
const status = getServiceResponse(this, PATH_DEVICE_STATUS, 'get');
// TypeScript infers the type from PATH_DEVICE_STATUS
// Studio models using different OpenAPI than main SDK
const vms = getServiceResponse<StudioVMResponse>(this, PATH_VMS, 'get');
Get cached service response by path and method
Returns the response data cached by