|
1 | 1 | import { Runloop, type ClientOptions } from './index'; |
2 | | -import { Devbox } from './objects/devbox'; |
3 | | -import { Blueprint } from './objects/blueprint'; |
4 | | -import { Snapshot } from './objects/snapshot'; |
5 | | -import { StorageObject } from './objects/storage-object'; |
| 2 | +import { Devbox } from './sdk/devbox'; |
| 3 | +import { Blueprint } from './sdk/blueprint'; |
| 4 | +import { Snapshot } from './sdk/snapshot'; |
| 5 | +import { StorageObject } from './sdk/storage-object'; |
| 6 | +import { Execution } from './sdk/execution'; |
| 7 | +import { ExecutionResult } from './sdk/execution-result'; |
| 8 | + |
| 9 | +// Re-export SDK classes for documentation |
| 10 | +export { Devbox, Blueprint, Snapshot, StorageObject, Execution, ExecutionResult }; |
| 11 | + |
| 12 | +// Re-export types from core |
6 | 13 | import type * as Core from './core'; |
| 14 | +export type { RequestOptions } from './core'; |
| 15 | + |
| 16 | +// Re-export types from lib |
| 17 | +import { PollingOptions } from './lib/polling'; |
| 18 | +export { PollingOptions }; |
| 19 | + |
| 20 | +// Re-export types from resources/devboxes |
7 | 21 | import type { |
8 | 22 | DevboxCreateParams, |
9 | 23 | DevboxListDiskSnapshotsParams, |
10 | 24 | DevboxListParams, |
11 | 25 | DevboxView, |
| 26 | + DevboxAsyncExecutionDetailView, |
| 27 | + DevboxExecutionDetailView, |
| 28 | + DevboxSnapshotDiskParams, |
| 29 | + DevboxCreateTunnelParams, |
| 30 | + DevboxRemoveTunnelParams, |
| 31 | + DevboxReadFileContentsParams, |
| 32 | + DevboxWriteFileContentsParams, |
| 33 | + DevboxDownloadFileParams, |
| 34 | + DevboxUploadFileParams, |
| 35 | + DevboxExecuteParams, |
| 36 | + DevboxExecuteAsyncParams, |
| 37 | + DevboxSnapshotView, |
| 38 | + DevboxCreateSSHKeyResponse, |
| 39 | + DevboxTunnelView, |
12 | 40 | } from './resources/devboxes/devboxes'; |
13 | | -import type { BlueprintCreateParams, BlueprintListParams } from './resources/blueprints'; |
14 | | -import type { ObjectCreateParams, ObjectListParams } from './resources/objects'; |
15 | | -import { PollingOptions } from './lib/polling'; |
| 41 | + |
| 42 | +export type { |
| 43 | + DevboxCreateParams, |
| 44 | + DevboxListDiskSnapshotsParams, |
| 45 | + DevboxListParams, |
| 46 | + DevboxView, |
| 47 | + DevboxAsyncExecutionDetailView, |
| 48 | + DevboxExecutionDetailView, |
| 49 | + DevboxSnapshotDiskParams, |
| 50 | + DevboxCreateTunnelParams, |
| 51 | + DevboxRemoveTunnelParams, |
| 52 | + DevboxReadFileContentsParams, |
| 53 | + DevboxWriteFileContentsParams, |
| 54 | + DevboxDownloadFileParams, |
| 55 | + DevboxUploadFileParams, |
| 56 | + DevboxExecuteParams, |
| 57 | + DevboxExecuteAsyncParams, |
| 58 | + DevboxSnapshotView, |
| 59 | + DevboxCreateSSHKeyResponse, |
| 60 | + DevboxTunnelView, |
| 61 | +}; |
| 62 | + |
| 63 | +// Re-export types from resources/devboxes/disk-snapshots |
| 64 | +import type { |
| 65 | + DevboxSnapshotAsyncStatusView, |
| 66 | + DiskSnapshotUpdateParams, |
| 67 | +} from './resources/devboxes/disk-snapshots'; |
| 68 | + |
| 69 | +export type { DevboxSnapshotAsyncStatusView, DiskSnapshotUpdateParams }; |
| 70 | + |
| 71 | +// Re-export types from resources/blueprints |
| 72 | +import type { |
| 73 | + BlueprintCreateParams, |
| 74 | + BlueprintListParams, |
| 75 | + BlueprintView, |
| 76 | + BlueprintBuildLogsListView, |
| 77 | +} from './resources/blueprints'; |
| 78 | + |
| 79 | +export type { BlueprintCreateParams, BlueprintListParams, BlueprintView, BlueprintBuildLogsListView }; |
| 80 | + |
| 81 | +// Re-export types from resources/objects |
| 82 | +import type { |
| 83 | + ObjectCreateParams, |
| 84 | + ObjectListParams, |
| 85 | + ObjectView, |
| 86 | + ObjectDownloadURLView, |
| 87 | +} from './resources/objects'; |
| 88 | + |
| 89 | +export type { ObjectCreateParams, ObjectListParams, ObjectView, ObjectDownloadURLView }; |
| 90 | + |
| 91 | +// Re-export ExecuteStreamingCallbacks from devbox |
| 92 | +export type { ExecuteStreamingCallbacks } from './sdk/devbox'; |
| 93 | + |
| 94 | +// Re-export Runloop and ClientOptions |
| 95 | +export { Runloop }; |
| 96 | +export type { ClientOptions }; |
16 | 97 |
|
17 | 98 | // Extract the content type from the API types |
18 | 99 | type ContentType = ObjectCreateParams['content_type']; |
|
0 commit comments