@@ -2,7 +2,7 @@ export * from './sdk/index';
22import type * as Core from './core' ;
33import { Runloop , type ClientOptions } from './index' ;
44import { Devbox } from './sdk/devbox' ;
5- import { Blueprint } from './sdk/blueprint' ;
5+ import { Blueprint , type CreateParams as BlueprintCreateParams } from './sdk/blueprint' ;
66import { Snapshot } from './sdk/snapshot' ;
77import { StorageObject } from './sdk/storage-object' ;
88
@@ -13,7 +13,7 @@ import type {
1313 DevboxView ,
1414 DevboxListDiskSnapshotsParams ,
1515} from './resources/devboxes/devboxes' ;
16- import type { BlueprintCreateParams , BlueprintListParams } from './resources/blueprints' ;
16+ import type { BlueprintListParams } from './resources/blueprints' ;
1717import type { ObjectCreateParams , ObjectListParams } from './resources/objects' ;
1818import { PollingOptions } from './lib/polling' ;
1919
@@ -283,6 +283,26 @@ export class DevboxOps {
283283 * });
284284 * const devbox = await sdk.devbox.createFromBlueprintId(blueprint.id, { name: 'my-devbox' });
285285 * ```
286+ *
287+ * To use a local directory as a build context, use an object.
288+ *
289+ * @example
290+ * ```typescript
291+ * const sdk = new RunloopSDK();
292+ * const obj = await sdk.storageObject.uploadFromDir(
293+ * './',
294+ * {
295+ * name: 'build-context',
296+ * ttl_ms: 3600000, // 1 hour
297+ * }
298+ * );
299+ * const blueprint = await sdk.blueprint.create({
300+ * name: 'my-blueprint-with-context',
301+ * dockerfile: `FROM ubuntu:22.04
302+ * COPY . .`,
303+ * build_context: obj,
304+ * });
305+ * ```
286306 */
287307export class BlueprintOps {
288308 /**
0 commit comments