diff --git a/src/index.ts b/src/index.ts index 4266ff5..e9037eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -171,28 +171,8 @@ export class Steel extends Core.APIClient { static fileFromPath = Uploads.fileFromPath; } -export { - SteelError, - APIError, - APIConnectionError, - APIConnectionTimeoutError, - APIUserAbortError, - NotFoundError, - ConflictError, - RateLimitError, - BadRequestError, - AuthenticationError, - InternalServerError, - PermissionDeniedError, - UnprocessableEntityError, -} from './error'; - -export import toFile = Uploads.toFile; -export import fileFromPath = Uploads.fileFromPath; - Steel.Sessions = Sessions; Steel.SessionListResponsesSessionsCursor = SessionListResponsesSessionsCursor; - export declare namespace Steel { export type RequestOptions = Core.RequestOptions; @@ -216,4 +196,21 @@ export declare namespace Steel { }; } +export { toFile, fileFromPath } from 'steel-sdk/uploads'; +export { + SteelError, + APIError, + APIConnectionError, + APIConnectionTimeoutError, + APIUserAbortError, + NotFoundError, + ConflictError, + RateLimitError, + BadRequestError, + AuthenticationError, + InternalServerError, + PermissionDeniedError, + UnprocessableEntityError, +} from 'steel-sdk/error'; + export default Steel;