@sethub/sdk
Version:
<div align="center"> <h1> SetHub SDK </h1>
31 lines (30 loc) • 939 B
TypeScript
import type { SetHubProtocols } from '../../../common/types/common';
import type { HttpClientProtocols } from '../../../http/protocols/client.protocols';
import type { Member, MemberRole } from './member';
type ListProjectEditorsFailure = {
code: 'internal';
message: string;
};
export declare namespace ListProjectEditors {
type Input = {
projectSlug: string;
};
type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>;
type APIResponse = {
id: string;
role: MemberRole;
inactivated_at: string | null;
created_at: string;
user: {
id: string;
name: string;
email: string;
};
}[];
type Success = Member[];
type ErrorCodes = 'internal';
type Failure = ListProjectEditorsFailure;
type Output = APIResponse | Failure;
type Response = SetHubProtocols.Response<Success, Failure>;
}
export {};