-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.ts
More file actions
60 lines (50 loc) · 1.26 KB
/
auth.ts
File metadata and controls
60 lines (50 loc) · 1.26 KB
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
50
51
52
53
54
55
56
57
58
59
60
// 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 Auth extends APIResource {
/**
* @deprecated
*/
create(body: AuthCreateParams, options?: RequestOptions): APIPromise<AuthCreateResponse> {
return this._client.post('/auth', { body, ...options });
}
/**
* @deprecated
*/
retrieve(options?: RequestOptions): APIPromise<AuthRetrieveResponse> {
return this._client.get('/auth', options);
}
}
export interface AuthCreateResponse {
/**
* Message of the authentication
*/
message: string;
/**
* Name of the authenticated project
*/
project: string;
/**
* Status of the authentication
*/
status: string;
}
export interface AuthRetrieveResponse {
/**
* Message of the authentication
*/
message: string;
/**
* Status of the authentication
*/
status: string;
}
export interface AuthCreateParams {}
export declare namespace Auth {
export {
type AuthCreateResponse as AuthCreateResponse,
type AuthRetrieveResponse as AuthRetrieveResponse,
type AuthCreateParams as AuthCreateParams,
};
}