diff --git a/src/index.ts b/src/index.ts index 38e6519b..cfe0d3d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -224,25 +224,6 @@ export class Writer extends Core.APIClient { static fileFromPath = Uploads.fileFromPath; } -export { - WriterError, - APIError, - APIConnectionError, - APIConnectionTimeoutError, - APIUserAbortError, - NotFoundError, - ConflictError, - RateLimitError, - BadRequestError, - AuthenticationError, - InternalServerError, - PermissionDeniedError, - UnprocessableEntityError, -} from './error'; - -export import toFile = Uploads.toFile; -export import fileFromPath = Uploads.fileFromPath; - Writer.Applications = Applications; Writer.ChatResource = ChatResource; Writer.Completions = Completions; @@ -252,7 +233,6 @@ Writer.GraphsCursorPage = GraphsCursorPage; Writer.Files = Files; Writer.FilesCursorPage = FilesCursorPage; Writer.Tools = Tools; - export declare namespace Writer { export type RequestOptions = Core.RequestOptions; @@ -326,4 +306,21 @@ export declare namespace Writer { }; } +export { toFile, fileFromPath } from 'writer-sdk/uploads'; +export { + WriterError, + APIError, + APIConnectionError, + APIConnectionTimeoutError, + APIUserAbortError, + NotFoundError, + ConflictError, + RateLimitError, + BadRequestError, + AuthenticationError, + InternalServerError, + PermissionDeniedError, + UnprocessableEntityError, +} from 'writer-sdk/error'; + export default Writer;