Skip to content

Commit

Permalink
chore: rebuild project due to codegen change (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 12, 2024
1 parent 9de16eb commit d4c4b6b
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const environments = {
sandbox: 'https://sandbox-api.clearstreet.io/studio/v2',
};
type Environment = keyof typeof environments;

export interface ClientOptions {
/**
* Defaults to process.env['STUDIO_SDK_BEARER_TOKEN'].
Expand Down Expand Up @@ -192,29 +191,9 @@ export class StudioSDK extends Core.APIClient {
static fileFromPath = Uploads.fileFromPath;
}

export {
StudioSDKError,
APIError,
APIConnectionError,
APIConnectionTimeoutError,
APIUserAbortError,
NotFoundError,
ConflictError,
RateLimitError,
BadRequestError,
AuthenticationError,
InternalServerError,
PermissionDeniedError,
UnprocessableEntityError,
} from './error';

export import toFile = Uploads.toFile;
export import fileFromPath = Uploads.fileFromPath;

StudioSDK.Entities = Entities;
StudioSDK.Accounts = Accounts;
StudioSDK.Instruments = Instruments;

export declare namespace StudioSDK {
export type RequestOptions = Core.RequestOptions;

Expand Down Expand Up @@ -244,4 +223,21 @@ export declare namespace StudioSDK {
export type Trade = API.Trade;
}

export { toFile, fileFromPath } from '@clear-street/studio-sdk/uploads';
export {
StudioSDKError,
APIError,
APIConnectionError,
APIConnectionTimeoutError,
APIUserAbortError,
NotFoundError,
ConflictError,
RateLimitError,
BadRequestError,
AuthenticationError,
InternalServerError,
PermissionDeniedError,
UnprocessableEntityError,
} from '@clear-street/studio-sdk/error';

export default StudioSDK;

0 comments on commit d4c4b6b

Please sign in to comment.