Skip to content

Schema5Other

Overview

Available Operations

getHealth

Health check

Example Usage

typescript
import { SDK } from "@meetkai/mka1";

const sdk = new SDK({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await sdk.schema5Other.getHealth();

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

typescript
import { SDKCore } from "@meetkai/mka1/core.js";
import { schema5OtherGetHealth } from "@meetkai/mka1/funcs/schema5OtherGetHealth.js";

// Use `SDKCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const sdk = new SDKCore({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const res = await schema5OtherGetHealth(sdk);
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("schema5OtherGetHealth failed:", res.error);
  }
}

run();

React hooks and utilities

This method can be used in React components through the following hooks and associated utilities.

Check out this guide for information about each of the utilities below and how to get started using React hooks.

tsx
import {
  // Query hooks for fetching data.
  useSchema5OtherGetHealth,
  useSchema5OtherGetHealthSuspense,

  // Utility for prefetching data during server-side rendering and in React
  // Server Components that will be immediately available to client components
  // using the hooks.
  prefetchSchema5OtherGetHealth,
  
  // Utility to invalidate the query cache for this query in response to
  // mutations and other user actions.
  invalidateAllSchema5OtherGetHealth,
} from "@meetkai/mka1/react-query/schema5OtherGetHealth.js";

Parameters

ParameterTypeRequiredDescription
optionsRequestOptionsUsed to set various options for making HTTP requests.
options.fetchOptionsRequestInitOptions that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retriesRetryConfigEnables retrying HTTP requests under certain failure conditions.

Response

Promise<operations.GetHealthResponseBody>

Errors

Error TypeStatus CodeContent Type
errors.APIError4XX, 5XX*/*

getApiV1OpenapiJson

Legacy OpenAPI document path

Example Usage

typescript
import { SDK } from "@meetkai/mka1";

const sdk = new SDK({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  await sdk.schema5Other.getApiV1OpenapiJson();


}

run();

Standalone function

The standalone function version of this method:

typescript
import { SDKCore } from "@meetkai/mka1/core.js";
import { schema5OtherGetApiV1OpenapiJson } from "@meetkai/mka1/funcs/schema5OtherGetApiV1OpenapiJson.js";

// Use `SDKCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const sdk = new SDKCore({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const res = await schema5OtherGetApiV1OpenapiJson(sdk);
  if (res.ok) {
    const { value: result } = res;
    
  } else {
    console.log("schema5OtherGetApiV1OpenapiJson failed:", res.error);
  }
}

run();

React hooks and utilities

This method can be used in React components through the following hooks and associated utilities.

Check out this guide for information about each of the utilities below and how to get started using React hooks.

tsx
import {
  // Query hooks for fetching data.
  useSchema5OtherGetApiV1OpenapiJson,
  useSchema5OtherGetApiV1OpenapiJsonSuspense,

  // Utility for prefetching data during server-side rendering and in React
  // Server Components that will be immediately available to client components
  // using the hooks.
  prefetchSchema5OtherGetApiV1OpenapiJson,
  
  // Utility to invalidate the query cache for this query in response to
  // mutations and other user actions.
  invalidateAllSchema5OtherGetApiV1OpenapiJson,
} from "@meetkai/mka1/react-query/schema5OtherGetApiV1OpenapiJson.js";

Parameters

ParameterTypeRequiredDescription
optionsRequestOptionsUsed to set various options for making HTTP requests.
options.fetchOptionsRequestInitOptions that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retriesRetryConfigEnables retrying HTTP requests under certain failure conditions.

Response

Promise<void>

Errors

Error TypeStatus CodeContent Type
errors.APIError4XX, 5XX*/*

getApiV1AgentsOpenapiJson

OpenAPI document

Example Usage

typescript
import { SDK } from "@meetkai/mka1";

const sdk = new SDK({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  await sdk.schema5Other.getApiV1AgentsOpenapiJson();


}

run();

Standalone function

The standalone function version of this method:

typescript
import { SDKCore } from "@meetkai/mka1/core.js";
import { schema5OtherGetApiV1AgentsOpenapiJson } from "@meetkai/mka1/funcs/schema5OtherGetApiV1AgentsOpenapiJson.js";

// Use `SDKCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const sdk = new SDKCore({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const res = await schema5OtherGetApiV1AgentsOpenapiJson(sdk);
  if (res.ok) {
    const { value: result } = res;
    
  } else {
    console.log("schema5OtherGetApiV1AgentsOpenapiJson failed:", res.error);
  }
}

run();

React hooks and utilities

This method can be used in React components through the following hooks and associated utilities.

Check out this guide for information about each of the utilities below and how to get started using React hooks.

tsx
import {
  // Query hooks for fetching data.
  useSchema5OtherGetApiV1AgentsOpenapiJson,
  useSchema5OtherGetApiV1AgentsOpenapiJsonSuspense,

  // Utility for prefetching data during server-side rendering and in React
  // Server Components that will be immediately available to client components
  // using the hooks.
  prefetchSchema5OtherGetApiV1AgentsOpenapiJson,
  
  // Utility to invalidate the query cache for this query in response to
  // mutations and other user actions.
  invalidateAllSchema5OtherGetApiV1AgentsOpenapiJson,
} from "@meetkai/mka1/react-query/schema5OtherGetApiV1AgentsOpenapiJson.js";

Parameters

ParameterTypeRequiredDescription
optionsRequestOptionsUsed to set various options for making HTTP requests.
options.fetchOptionsRequestInitOptions that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retriesRetryConfigEnables retrying HTTP requests under certain failure conditions.

Response

Promise<void>

Errors

Error TypeStatus CodeContent Type
errors.APIError4XX, 5XX*/*