Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 120
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-8f05915b107d49f4a50f2d83abfa1d7233a685f1d85e02465a218fa5acb55ddd.yml
openapi_spec_hash: 905fa27970b4b7201184df9c63eba3b9
config_hash: ed1fdd7c9f0a25647e16b602bad4ff2e
configured_endpoints: 119
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-ecbce4f78f1dae890ffe0f5f40f6c98bc8724ce1c7619b07bfa5212d5e33f35d.yml
openapi_spec_hash: eab4f49aa5e325b1ef9facfd24c4c9a5
config_hash: 9f32651e6269089b5d6c33594b992232
3 changes: 0 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,12 @@ Methods:

Types:

- <code><a href="./src/resources/blueprints.ts">BlueprintBuildFromInspectionParameters</a></code>
- <code><a href="./src/resources/blueprints.ts">BlueprintBuildLog</a></code>
- <code><a href="./src/resources/blueprints.ts">BlueprintBuildLogsListView</a></code>
- <code><a href="./src/resources/blueprints.ts">BlueprintBuildParameters</a></code>
- <code><a href="./src/resources/blueprints.ts">BlueprintListView</a></code>
- <code><a href="./src/resources/blueprints.ts">BlueprintPreviewView</a></code>
- <code><a href="./src/resources/blueprints.ts">BlueprintView</a></code>
- <code><a href="./src/resources/blueprints.ts">InspectionSource</a></code>
- <code><a href="./src/resources/blueprints.ts">BlueprintDeleteResponse</a></code>

Methods:
Expand All @@ -162,7 +160,6 @@ Methods:
- <code title="get /v1/blueprints/{id}">client.blueprints.<a href="./src/resources/blueprints.ts">retrieve</a>(id) -> BlueprintView</code>
- <code title="get /v1/blueprints">client.blueprints.<a href="./src/resources/blueprints.ts">list</a>({ ...params }) -> BlueprintViewsBlueprintsCursorIDPage</code>
- <code title="post /v1/blueprints/{id}/delete">client.blueprints.<a href="./src/resources/blueprints.ts">delete</a>(id) -> unknown</code>
- <code title="post /v1/blueprints/create_from_inspection">client.blueprints.<a href="./src/resources/blueprints.ts">createFromInspection</a>({ ...params }) -> BlueprintView</code>
- <code title="get /v1/blueprints/list_public">client.blueprints.<a href="./src/resources/blueprints.ts">listPublic</a>({ ...params }) -> BlueprintViewsBlueprintsCursorIDPage</code>
- <code title="get /v1/blueprints/{id}/logs">client.blueprints.<a href="./src/resources/blueprints.ts">logs</a>(id) -> BlueprintBuildLogsListView</code>
- <code title="post /v1/blueprints/preview">client.blueprints.<a href="./src/resources/blueprints.ts">preview</a>({ ...params }) -> BlueprintPreviewView</code>
Expand Down
1 change: 0 additions & 1 deletion packages/mcp-server/src/code-tool-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ const fuse = new Fuse(
'client.agents.list',
'client.agents.retrieve',
'client.blueprints.create',
'client.blueprints.createFromInspection',
'client.blueprints.delete',
'client.blueprints.list',
'client.blueprints.listPublic',
Expand Down
6 changes: 0 additions & 6 deletions packages/mcp-server/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,6 @@ export const sdkMethods: SdkMethod[] = [
httpMethod: 'post',
httpPath: '/v1/blueprints/{id}/delete',
},
{
clientCallName: 'client.blueprints.createFromInspection',
fullyQualifiedName: 'blueprints.createFromInspection',
httpMethod: 'post',
httpPath: '/v1/blueprints/create_from_inspection',
},
{
clientCallName: 'client.blueprints.listPublic',
fullyQualifiedName: 'blueprints.listPublic',
Expand Down
6 changes: 0 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ import {
StartBenchmarkRunParameters,
} from './resources/benchmarks';
import {
BlueprintBuildFromInspectionParameters,
BlueprintBuildLog,
BlueprintBuildLogsListView,
BlueprintBuildParameters,
BlueprintCreateFromInspectionParams,
BlueprintCreateParams,
BlueprintDeleteResponse,
BlueprintListParams,
Expand All @@ -99,7 +97,6 @@ import {
BlueprintView,
BlueprintViewsBlueprintsCursorIDPage,
Blueprints,
InspectionSource,
} from './resources/blueprints';
import {
GatewayConfigCreateParameters,
Expand Down Expand Up @@ -668,19 +665,16 @@ export declare namespace Runloop {

export {
Blueprints as Blueprints,
type BlueprintBuildFromInspectionParameters as BlueprintBuildFromInspectionParameters,
type BlueprintBuildLog as BlueprintBuildLog,
type BlueprintBuildLogsListView as BlueprintBuildLogsListView,
type BlueprintBuildParameters as BlueprintBuildParameters,
type BlueprintListView as BlueprintListView,
type BlueprintPreviewView as BlueprintPreviewView,
type BlueprintView as BlueprintView,
type InspectionSource as InspectionSource,
type BlueprintDeleteResponse as BlueprintDeleteResponse,
BlueprintViewsBlueprintsCursorIDPage as BlueprintViewsBlueprintsCursorIDPage,
type BlueprintCreateParams as BlueprintCreateParams,
type BlueprintListParams as BlueprintListParams,
type BlueprintCreateFromInspectionParams as BlueprintCreateFromInspectionParams,
type BlueprintListPublicParams as BlueprintListPublicParams,
type BlueprintPreviewParams as BlueprintPreviewParams,
};
Expand Down
131 changes: 0 additions & 131 deletions src/resources/blueprints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,6 @@ export class Blueprints extends APIResource {
return this._client.post(`/v1/blueprints/${id}/delete`, options);
}

/**
* Starts build of custom defined container Blueprint using a RepositoryConnection
* Inspection as a source container specification.
*/
createFromInspection(
body: BlueprintCreateFromInspectionParams,
options?: Core.RequestOptions,
): Core.APIPromise<BlueprintView> {
const errors = validateFileMounts(body?.file_mounts);
if (errors.length > 0) {
throw new Error(errors.join('; '));
}
return this._client.post('/v1/blueprints/create_from_inspection', { body, ...options });
}

/**
* List all public Blueprints that are available to all users.
*/
Expand Down Expand Up @@ -230,55 +215,6 @@ export class Blueprints extends APIResource {

export class BlueprintViewsBlueprintsCursorIDPage extends BlueprintsCursorIDPage<BlueprintView> {}

export interface BlueprintBuildFromInspectionParameters {
/**
* (Optional) Use a RepositoryInspection a source of a Blueprint build. The
* Dockerfile will be automatically created based on the RepositoryInspection
* contents.
*/
inspection_source: InspectionSource;

/**
* Name of the Blueprint.
*/
name: string;

/**
* (Optional) Map of paths and file contents to write before setup.
*/
file_mounts?: { [key: string]: string } | null;

/**
* LaunchParameters enable you to customize the resources available to your Devbox
* as well as the environment set up that should be completed before the Devbox is
* marked as 'running'.
*/
launch_parameters?: Shared.LaunchParameters | null;

/**
* (Optional) User defined metadata for the Blueprint.
*/
metadata?: { [key: string]: string } | null;

/**
* (Optional) ID of the network policy to apply during blueprint build. This
* restricts network access during the build process.
*/
network_policy_id?: string | null;

/**
* (Optional) Map of mount IDs/environment variable names to secret names. Secrets
* can be used as environment variables in system_setup_commands. Example:
* {"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN.
*/
secrets?: { [key: string]: string } | null;

/**
* A list of commands to run to set up your system.
*/
system_setup_commands?: Array<string> | null;
}

export interface BlueprintBuildLog {
/**
* Log line severity level.
Expand Down Expand Up @@ -609,21 +545,6 @@ export namespace BlueprintView {
}
}

/**
* Use a RepositoryInspection a source of a Blueprint build.
*/
export interface InspectionSource {
/**
* The ID of a repository inspection.
*/
inspection_id: string;

/**
* GitHub authentication token for accessing private repositories.
*/
github_auth_token?: string | null;
}

export type BlueprintDeleteResponse = unknown;

/**
Expand Down Expand Up @@ -800,55 +721,6 @@ export interface BlueprintListParams extends BlueprintsCursorIDPageParams {
status?: string;
}

export interface BlueprintCreateFromInspectionParams {
/**
* (Optional) Use a RepositoryInspection a source of a Blueprint build. The
* Dockerfile will be automatically created based on the RepositoryInspection
* contents.
*/
inspection_source: InspectionSource;

/**
* Name of the Blueprint.
*/
name: string;

/**
* (Optional) Map of paths and file contents to write before setup.
*/
file_mounts?: { [key: string]: string } | null;

/**
* LaunchParameters enable you to customize the resources available to your Devbox
* as well as the environment set up that should be completed before the Devbox is
* marked as 'running'.
*/
launch_parameters?: Shared.LaunchParameters | null;

/**
* (Optional) User defined metadata for the Blueprint.
*/
metadata?: { [key: string]: string } | null;

/**
* (Optional) ID of the network policy to apply during blueprint build. This
* restricts network access during the build process.
*/
network_policy_id?: string | null;

/**
* (Optional) Map of mount IDs/environment variable names to secret names. Secrets
* can be used as environment variables in system_setup_commands. Example:
* {"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN.
*/
secrets?: { [key: string]: string } | null;

/**
* A list of commands to run to set up your system.
*/
system_setup_commands?: Array<string> | null;
}

export interface BlueprintListPublicParams extends BlueprintsCursorIDPageParams {
/**
* If true (default), includes total_count in the response. Set to false to skip
Expand Down Expand Up @@ -1022,19 +894,16 @@ Blueprints.BlueprintViewsBlueprintsCursorIDPage = BlueprintViewsBlueprintsCursor

export declare namespace Blueprints {
export {
type BlueprintBuildFromInspectionParameters as BlueprintBuildFromInspectionParameters,
type BlueprintBuildLog as BlueprintBuildLog,
type BlueprintBuildLogsListView as BlueprintBuildLogsListView,
type BlueprintBuildParameters as BlueprintBuildParameters,
type BlueprintListView as BlueprintListView,
type BlueprintPreviewView as BlueprintPreviewView,
type BlueprintView as BlueprintView,
type InspectionSource as InspectionSource,
type BlueprintDeleteResponse as BlueprintDeleteResponse,
BlueprintViewsBlueprintsCursorIDPage as BlueprintViewsBlueprintsCursorIDPage,
type BlueprintCreateParams as BlueprintCreateParams,
type BlueprintListParams as BlueprintListParams,
type BlueprintCreateFromInspectionParams as BlueprintCreateFromInspectionParams,
type BlueprintListPublicParams as BlueprintListPublicParams,
type BlueprintPreviewParams as BlueprintPreviewParams,
};
Expand Down
5 changes: 0 additions & 5 deletions src/resources/devboxes/devboxes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,11 +1173,6 @@ export interface DevboxCreateParams {
*/
name?: string | null;

/**
* Repository connection id the devbox should source its base image from.
*/
repo_connection_id?: string | null;

/**
* (Optional) Map of environment variable names to secret names. The secret values
* will be securely injected as environment variables in the Devbox. Example:
Expand Down
3 changes: 0 additions & 3 deletions src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,15 @@ export {
export {
BlueprintViewsBlueprintsCursorIDPage,
Blueprints,
type BlueprintBuildFromInspectionParameters,
type BlueprintBuildLog,
type BlueprintBuildLogsListView,
type BlueprintBuildParameters,
type BlueprintListView,
type BlueprintPreviewView,
type BlueprintView,
type InspectionSource,
type BlueprintDeleteResponse,
type BlueprintCreateParams,
type BlueprintListParams,
type BlueprintCreateFromInspectionParams,
type BlueprintListPublicParams,
type BlueprintPreviewParams,
} from './blueprints';
Expand Down
1 change: 0 additions & 1 deletion src/resources/restricted-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export interface ScopeEntryView {
| 'RESOURCE_TYPE_SNAPSHOTS'
| 'RESOURCE_TYPE_BENCHMARKS'
| 'RESOURCE_TYPE_SCENARIOS'
| 'RESOURCE_TYPE_REPO_CONNECTIONS'
| 'RESOURCE_TYPE_AGENTS'
| 'RESOURCE_TYPE_OBJECTS'
| 'RESOURCE_TYPE_ACCOUNT';
Expand Down
46 changes: 0 additions & 46 deletions tests/api-resources/blueprints.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,52 +170,6 @@ describe('resource blueprints', () => {
);
});

test('createFromInspection: only required params', async () => {
const responsePromise = client.blueprints.createFromInspection({
inspection_source: { inspection_id: 'inspection_id' },
name: 'name',
});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
expect(response).not.toBeInstanceOf(Response);
const dataAndResponse = await responsePromise.withResponse();
expect(dataAndResponse.data).toBe(response);
expect(dataAndResponse.response).toBe(rawResponse);
});

test('createFromInspection: required and optional params', async () => {
const response = await client.blueprints.createFromInspection({
inspection_source: { inspection_id: 'inspection_id', github_auth_token: 'github_auth_token' },
name: 'name',
file_mounts: { foo: 'string' },
launch_parameters: {
after_idle: { idle_time_seconds: 0, on_idle: 'shutdown' },
architecture: 'x86_64',
available_ports: [0],
custom_cpu_cores: 0,
custom_disk_size: 0,
custom_gb_memory: 0,
keep_alive_time_seconds: 0,
launch_commands: ['string'],
lifecycle: {
after_idle: { idle_time_seconds: 0, on_idle: 'shutdown' },
lifecycle_hooks: { suspend_commands: ['string'], suspend_deadline_ms: 0 },
resume_triggers: { axon_event: true, http: true },
},
network_policy_id: 'network_policy_id',
provisioning_tier: 'standard',
required_services: ['string'],
resource_size_request: 'X_SMALL',
user_parameters: { uid: 0, username: 'username' },
},
metadata: { foo: 'string' },
network_policy_id: 'network_policy_id',
secrets: { foo: 'string' },
system_setup_commands: ['string'],
});
});

test('listPublic', async () => {
const responsePromise = client.blueprints.listPublic();
const rawResponse = await responsePromise.asResponse();
Expand Down
1 change: 0 additions & 1 deletion tests/api-resources/devboxes/devboxes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ describe('resource devboxes', () => {
},
],
name: 'name',
repo_connection_id: 'repo_connection_id',
secrets: { foo: 'string' },
snapshot_id: 'snapshot_id',
tunnel: {
Expand Down