|
1 | 1 | // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2 | 2 |
|
3 |
| -import * as Errors from './error'; |
4 |
| -import * as Uploads from './uploads'; |
5 | 3 | import { type Agent } from './_shims/index';
|
6 | 4 | import * as Core from './core';
|
| 5 | +import * as Errors from './error'; |
| 6 | +import * as Uploads from './uploads'; |
7 | 7 | import * as API from './resources/index';
|
| 8 | +import { Commits } from './resources/commits/commits'; |
| 9 | +import { |
| 10 | + InferencePipelineRetrieveResponse, |
| 11 | + InferencePipelineUpdateParams, |
| 12 | + InferencePipelineUpdateResponse, |
| 13 | + InferencePipelines, |
| 14 | +} from './resources/inference-pipelines/inference-pipelines'; |
| 15 | +import { |
| 16 | + ProjectCreateParams, |
| 17 | + ProjectCreateResponse, |
| 18 | + ProjectListParams, |
| 19 | + ProjectListResponse, |
| 20 | + Projects, |
| 21 | +} from './resources/projects/projects'; |
| 22 | +import { Storage } from './resources/storage/storage'; |
8 | 23 |
|
9 | 24 | export interface ClientOptions {
|
10 | 25 | /**
|
@@ -169,42 +184,49 @@ export class Openlayer extends Core.APIClient {
|
169 | 184 | static fileFromPath = Uploads.fileFromPath;
|
170 | 185 | }
|
171 | 186 |
|
172 |
| -export const { |
173 |
| - OpenlayerError, |
174 |
| - APIError, |
175 |
| - APIConnectionError, |
176 |
| - APIConnectionTimeoutError, |
177 |
| - APIUserAbortError, |
178 |
| - NotFoundError, |
179 |
| - ConflictError, |
180 |
| - RateLimitError, |
181 |
| - BadRequestError, |
182 |
| - AuthenticationError, |
183 |
| - InternalServerError, |
184 |
| - PermissionDeniedError, |
185 |
| - UnprocessableEntityError, |
186 |
| -} = Errors; |
| 187 | +export const OpenlayerError = Errors.OpenlayerError; |
| 188 | +export const APIError = Errors.APIError; |
| 189 | +export const APIConnectionError = Errors.APIConnectionError; |
| 190 | +export const APIConnectionTimeoutError = Errors.APIConnectionTimeoutError; |
| 191 | +export const APIUserAbortError = Errors.APIUserAbortError; |
| 192 | +export const NotFoundError = Errors.NotFoundError; |
| 193 | +export const ConflictError = Errors.ConflictError; |
| 194 | +export const RateLimitError = Errors.RateLimitError; |
| 195 | +export const BadRequestError = Errors.BadRequestError; |
| 196 | +export const AuthenticationError = Errors.AuthenticationError; |
| 197 | +export const InternalServerError = Errors.InternalServerError; |
| 198 | +export const PermissionDeniedError = Errors.PermissionDeniedError; |
| 199 | +export const UnprocessableEntityError = Errors.UnprocessableEntityError; |
187 | 200 |
|
188 | 201 | export import toFile = Uploads.toFile;
|
189 | 202 | export import fileFromPath = Uploads.fileFromPath;
|
190 | 203 |
|
191 |
| -export namespace Openlayer { |
192 |
| - export import RequestOptions = Core.RequestOptions; |
| 204 | +Openlayer.Projects = Projects; |
| 205 | +Openlayer.Commits = Commits; |
| 206 | +Openlayer.InferencePipelines = InferencePipelines; |
| 207 | +Openlayer.Storage = Storage; |
| 208 | + |
| 209 | +export declare namespace Openlayer { |
| 210 | + export type RequestOptions = Core.RequestOptions; |
193 | 211 |
|
194 |
| - export import Projects = API.Projects; |
195 |
| - export import ProjectCreateResponse = API.ProjectCreateResponse; |
196 |
| - export import ProjectListResponse = API.ProjectListResponse; |
197 |
| - export import ProjectCreateParams = API.ProjectCreateParams; |
198 |
| - export import ProjectListParams = API.ProjectListParams; |
| 212 | + export { |
| 213 | + Projects as Projects, |
| 214 | + type ProjectCreateResponse as ProjectCreateResponse, |
| 215 | + type ProjectListResponse as ProjectListResponse, |
| 216 | + type ProjectCreateParams as ProjectCreateParams, |
| 217 | + type ProjectListParams as ProjectListParams, |
| 218 | + }; |
199 | 219 |
|
200 |
| - export import Commits = API.Commits; |
| 220 | + export { Commits as Commits }; |
201 | 221 |
|
202 |
| - export import InferencePipelines = API.InferencePipelines; |
203 |
| - export import InferencePipelineRetrieveResponse = API.InferencePipelineRetrieveResponse; |
204 |
| - export import InferencePipelineUpdateResponse = API.InferencePipelineUpdateResponse; |
205 |
| - export import InferencePipelineUpdateParams = API.InferencePipelineUpdateParams; |
| 222 | + export { |
| 223 | + InferencePipelines as InferencePipelines, |
| 224 | + type InferencePipelineRetrieveResponse as InferencePipelineRetrieveResponse, |
| 225 | + type InferencePipelineUpdateResponse as InferencePipelineUpdateResponse, |
| 226 | + type InferencePipelineUpdateParams as InferencePipelineUpdateParams, |
| 227 | + }; |
206 | 228 |
|
207 |
| - export import Storage = API.Storage; |
| 229 | + export { Storage as Storage }; |
208 | 230 | }
|
209 | 231 |
|
210 | 232 | export default Openlayer;
|
0 commit comments