@sethub/sdk
Version:
<div align="center"> <h1> SetHub SDK </h1>
31 lines (30 loc) • 926 B
TypeScript
import type { SetHubProtocols } from '../../../common/types/common';
import type { HttpClientProtocols } from '../../../http/protocols/client.protocols';
import type { ProjectDetails } from './project';
type GetProjectDetailsFailure = {
code: 'internal';
message: string;
};
export declare namespace GetProjectDetails {
type Input = {
slug: string;
};
type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>;
type APIResponse = {
slug: string;
name: string;
description: string | null;
created_at: string;
owner: {
id: string;
name: string;
email: string;
};
};
type Success = ProjectDetails;
type ErrorCodes = 'internal';
type Failure = GetProjectDetailsFailure;
type Output = APIResponse | Failure;
type Response = SetHubProtocols.Response<Success, Failure>;
}
export {};