UNPKG

orb-billing

Version:

The official TypeScript library for the Orb API

28 lines (23 loc) 970 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; import { APIPromise } from '../core/api-promise'; import { RequestOptions } from '../internal/request-options'; export class TopLevel extends APIResource { /** * This endpoint allows you to test your connection to the Orb API and check the * validity of your API key, passed in the Authorization header. This is * particularly useful for checking that your environment is set up properly, and * is a great choice for connectors and integrations. * * This API does not have any side-effects or return any Orb resources. */ ping(options?: RequestOptions): APIPromise<TopLevelPingResponse> { return this._client.get('/ping', options); } } export interface TopLevelPingResponse { response: string; } export declare namespace TopLevel { export { type TopLevelPingResponse as TopLevelPingResponse }; }