/// import { deleteUserParameters, deleteUserResponse, getUserOAuthResponse, getUserOAuthsParameters, getUserParameters, getUserResponse, patchUserParameters, patchUserResponse } from './endpoints/user'; import { getProjectParameters, getProjectResponse, deleteProjectParameters, deleteProjectResponse, getProjectsParameters, getProjectsResponse, patchProjectParameters, patchProjectResponse, postProjectParameters, postProjectResponse } from './endpoints/project'; import { APIResponseError, isHTTPResponseError, isOpizeClientError, RequestTimeoutError, UnknownHTTPResponseError } from './error'; import { postProjectOAuthParameters, postProjectOAuthResponse } from './endpoints/project/oauth'; import { postOAuthParameters, postOAuthResponse, postOAuthVerifyParameters, postOAuthVerifyResponse } from './endpoints/oauth'; import { getDashboardNotionPagesParameters, getDashboardNotionPagesResponse, getDashboardNotionPageParameters, getDashboardNotionPageResponse, patchDashboardNotionPageParameters, patchDashboardNotionPageResponse, deleteDashboardNotionPageParameters, deleteDashboardNotionPageResponse } from './endpoints/dashboard/notion/page'; export { APIResponseError, isHTTPResponseError, isOpizeClientError, RequestTimeoutError, UnknownHTTPResponseError }; export interface ClientOptions { auth?: string; timeoutMs?: number; baseUrl?: string; apiVersion?: string; } declare type Method = 'get' | 'post' | 'patch' | 'delete'; declare type QueryParams = Record | URLSearchParams; declare type WithAuth = T & { auth?: string; }; export interface RequestParameters { path: string; method: Method; query?: QueryParams; body?: Record; auth?: string; } export declare class Client { private auth?; private prefixUrl; private userAgent; private timeoutMs; constructor(options?: ClientOptions); updateAuth(auth?: string): void; private authAsHeaders; request({ path, method, query, body, auth }: RequestParameters): Promise; readonly user: { /** * 유저 정보 조회 */ get: (args: WithAuth) => Promise; /** * 유저 정보 수정 */ patch: (args: WithAuth) => Promise; delete: (args: WithAuth) => Promise; oauth: { list: (args: WithAuth) => Promise; }; }; readonly project: { get: (args: WithAuth) => Promise; list: (args?: WithAuth) => Promise; post: (args: WithAuth) => Promise; patch: (args: WithAuth) => Promise; delete: (args: WithAuth) => Promise; oauth: { post: (args: WithAuth) => Promise; }; }; readonly oAuth: { post: (args: WithAuth) => Promise; verify: (args: WithAuth) => Promise; }; readonly dashboard: { notion: { page: { list: (args: WithAuth) => Promise; get: (args: WithAuth) => Promise; patch: (args: WithAuth) => Promise; delete: (args: WithAuth) => Promise; }; }; }; } //# sourceMappingURL=client.d.ts.map