-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathinspect.ts
49 lines (36 loc) · 1.04 KB
/
inspect.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
export class Inspect extends APIResource {
health(options?: Core.RequestOptions): Core.APIPromise<HealthInfo> {
return this._client.get('/v1/health', options);
}
version(options?: Core.RequestOptions): Core.APIPromise<VersionInfo> {
return this._client.get('/v1/version', options);
}
}
export interface HealthInfo {
status: string;
}
export interface ProviderInfo {
api: string;
config: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
provider_id: string;
provider_type: string;
}
export interface RouteInfo {
method: string;
provider_types: Array<string>;
route: string;
}
export interface VersionInfo {
version: string;
}
export declare namespace Inspect {
export {
type HealthInfo as HealthInfo,
type ProviderInfo as ProviderInfo,
type RouteInfo as RouteInfo,
type VersionInfo as VersionInfo,
};
}