getBotRunsWithHttpInfo method

Future<Response> getBotRunsWithHttpInfo()

List returns the caller org's live bot runs, read from the bot runtime and projected into the console contract with each run's live session URL derived here.

List returns the caller org's live bot runs, read from the bot runtime and projected into the console contract with each run's live session URL derived here. The org is ALWAYS the validated principal's org, NEVER a request field, and it is what scopes the runtime's answer — so one tenant can never enumerate another's runs. A runtime that cannot answer is an error, not an empty list: [] would tell the caller "your org has no runs", which is a different claim from "we could not ask", and the difference is the whole reason this endpoint exists.

Note: This method returns the HTTP Response.

Implementation

Future<Response> getBotRunsWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/bot/runs';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}