Skip to content

Commit d02410b

Browse files
fix(blueprints): remove create_from_inspection endpoint
1 parent 5ee1cf9 commit d02410b

9 files changed

Lines changed: 4 additions & 200 deletions

File tree

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 120
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-8f05915b107d49f4a50f2d83abfa1d7233a685f1d85e02465a218fa5acb55ddd.yml
3-
openapi_spec_hash: 905fa27970b4b7201184df9c63eba3b9
4-
config_hash: ed1fdd7c9f0a25647e16b602bad4ff2e
1+
configured_endpoints: 119
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-ecbce4f78f1dae890ffe0f5f40f6c98bc8724ce1c7619b07bfa5212d5e33f35d.yml
3+
openapi_spec_hash: eab4f49aa5e325b1ef9facfd24c4c9a5
4+
config_hash: 9f32651e6269089b5d6c33594b992232

api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,12 @@ Methods:
146146

147147
Types:
148148

149-
- <code><a href="./src/resources/blueprints.ts">BlueprintBuildFromInspectionParameters</a></code>
150149
- <code><a href="./src/resources/blueprints.ts">BlueprintBuildLog</a></code>
151150
- <code><a href="./src/resources/blueprints.ts">BlueprintBuildLogsListView</a></code>
152151
- <code><a href="./src/resources/blueprints.ts">BlueprintBuildParameters</a></code>
153152
- <code><a href="./src/resources/blueprints.ts">BlueprintListView</a></code>
154153
- <code><a href="./src/resources/blueprints.ts">BlueprintPreviewView</a></code>
155154
- <code><a href="./src/resources/blueprints.ts">BlueprintView</a></code>
156-
- <code><a href="./src/resources/blueprints.ts">InspectionSource</a></code>
157155
- <code><a href="./src/resources/blueprints.ts">BlueprintDeleteResponse</a></code>
158156

159157
Methods:
@@ -162,7 +160,6 @@ Methods:
162160
- <code title="get /v1/blueprints/{id}">client.blueprints.<a href="./src/resources/blueprints.ts">retrieve</a>(id) -> BlueprintView</code>
163161
- <code title="get /v1/blueprints">client.blueprints.<a href="./src/resources/blueprints.ts">list</a>({ ...params }) -> BlueprintViewsBlueprintsCursorIDPage</code>
164162
- <code title="post /v1/blueprints/{id}/delete">client.blueprints.<a href="./src/resources/blueprints.ts">delete</a>(id) -> unknown</code>
165-
- <code title="post /v1/blueprints/create_from_inspection">client.blueprints.<a href="./src/resources/blueprints.ts">createFromInspection</a>({ ...params }) -> BlueprintView</code>
166163
- <code title="get /v1/blueprints/list_public">client.blueprints.<a href="./src/resources/blueprints.ts">listPublic</a>({ ...params }) -> BlueprintViewsBlueprintsCursorIDPage</code>
167164
- <code title="get /v1/blueprints/{id}/logs">client.blueprints.<a href="./src/resources/blueprints.ts">logs</a>(id) -> BlueprintBuildLogsListView</code>
168165
- <code title="post /v1/blueprints/preview">client.blueprints.<a href="./src/resources/blueprints.ts">preview</a>({ ...params }) -> BlueprintPreviewView</code>

src/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,9 @@ import {
8484
StartBenchmarkRunParameters,
8585
} from './resources/benchmarks';
8686
import {
87-
BlueprintBuildFromInspectionParameters,
8887
BlueprintBuildLog,
8988
BlueprintBuildLogsListView,
9089
BlueprintBuildParameters,
91-
BlueprintCreateFromInspectionParams,
9290
BlueprintCreateParams,
9391
BlueprintDeleteResponse,
9492
BlueprintListParams,
@@ -99,7 +97,6 @@ import {
9997
BlueprintView,
10098
BlueprintViewsBlueprintsCursorIDPage,
10199
Blueprints,
102-
InspectionSource,
103100
} from './resources/blueprints';
104101
import {
105102
GatewayConfigCreateParameters,
@@ -668,19 +665,16 @@ export declare namespace Runloop {
668665

669666
export {
670667
Blueprints as Blueprints,
671-
type BlueprintBuildFromInspectionParameters as BlueprintBuildFromInspectionParameters,
672668
type BlueprintBuildLog as BlueprintBuildLog,
673669
type BlueprintBuildLogsListView as BlueprintBuildLogsListView,
674670
type BlueprintBuildParameters as BlueprintBuildParameters,
675671
type BlueprintListView as BlueprintListView,
676672
type BlueprintPreviewView as BlueprintPreviewView,
677673
type BlueprintView as BlueprintView,
678-
type InspectionSource as InspectionSource,
679674
type BlueprintDeleteResponse as BlueprintDeleteResponse,
680675
BlueprintViewsBlueprintsCursorIDPage as BlueprintViewsBlueprintsCursorIDPage,
681676
type BlueprintCreateParams as BlueprintCreateParams,
682677
type BlueprintListParams as BlueprintListParams,
683-
type BlueprintCreateFromInspectionParams as BlueprintCreateFromInspectionParams,
684678
type BlueprintListPublicParams as BlueprintListPublicParams,
685679
type BlueprintPreviewParams as BlueprintPreviewParams,
686680
};

src/resources/blueprints.ts

Lines changed: 0 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,6 @@ export class Blueprints extends APIResource {
169169
return this._client.post(`/v1/blueprints/${id}/delete`, options);
170170
}
171171

172-
/**
173-
* Starts build of custom defined container Blueprint using a RepositoryConnection
174-
* Inspection as a source container specification.
175-
*/
176-
createFromInspection(
177-
body: BlueprintCreateFromInspectionParams,
178-
options?: Core.RequestOptions,
179-
): Core.APIPromise<BlueprintView> {
180-
const errors = validateFileMounts(body?.file_mounts);
181-
if (errors.length > 0) {
182-
throw new Error(errors.join('; '));
183-
}
184-
return this._client.post('/v1/blueprints/create_from_inspection', { body, ...options });
185-
}
186-
187172
/**
188173
* List all public Blueprints that are available to all users.
189174
*/
@@ -230,55 +215,6 @@ export class Blueprints extends APIResource {
230215

231216
export class BlueprintViewsBlueprintsCursorIDPage extends BlueprintsCursorIDPage<BlueprintView> {}
232217

233-
export interface BlueprintBuildFromInspectionParameters {
234-
/**
235-
* (Optional) Use a RepositoryInspection a source of a Blueprint build. The
236-
* Dockerfile will be automatically created based on the RepositoryInspection
237-
* contents.
238-
*/
239-
inspection_source: InspectionSource;
240-
241-
/**
242-
* Name of the Blueprint.
243-
*/
244-
name: string;
245-
246-
/**
247-
* (Optional) Map of paths and file contents to write before setup.
248-
*/
249-
file_mounts?: { [key: string]: string } | null;
250-
251-
/**
252-
* LaunchParameters enable you to customize the resources available to your Devbox
253-
* as well as the environment set up that should be completed before the Devbox is
254-
* marked as 'running'.
255-
*/
256-
launch_parameters?: Shared.LaunchParameters | null;
257-
258-
/**
259-
* (Optional) User defined metadata for the Blueprint.
260-
*/
261-
metadata?: { [key: string]: string } | null;
262-
263-
/**
264-
* (Optional) ID of the network policy to apply during blueprint build. This
265-
* restricts network access during the build process.
266-
*/
267-
network_policy_id?: string | null;
268-
269-
/**
270-
* (Optional) Map of mount IDs/environment variable names to secret names. Secrets
271-
* can be used as environment variables in system_setup_commands. Example:
272-
* {"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN.
273-
*/
274-
secrets?: { [key: string]: string } | null;
275-
276-
/**
277-
* A list of commands to run to set up your system.
278-
*/
279-
system_setup_commands?: Array<string> | null;
280-
}
281-
282218
export interface BlueprintBuildLog {
283219
/**
284220
* Log line severity level.
@@ -609,21 +545,6 @@ export namespace BlueprintView {
609545
}
610546
}
611547

612-
/**
613-
* Use a RepositoryInspection a source of a Blueprint build.
614-
*/
615-
export interface InspectionSource {
616-
/**
617-
* The ID of a repository inspection.
618-
*/
619-
inspection_id: string;
620-
621-
/**
622-
* GitHub authentication token for accessing private repositories.
623-
*/
624-
github_auth_token?: string | null;
625-
}
626-
627548
export type BlueprintDeleteResponse = unknown;
628549

629550
/**
@@ -800,55 +721,6 @@ export interface BlueprintListParams extends BlueprintsCursorIDPageParams {
800721
status?: string;
801722
}
802723

803-
export interface BlueprintCreateFromInspectionParams {
804-
/**
805-
* (Optional) Use a RepositoryInspection a source of a Blueprint build. The
806-
* Dockerfile will be automatically created based on the RepositoryInspection
807-
* contents.
808-
*/
809-
inspection_source: InspectionSource;
810-
811-
/**
812-
* Name of the Blueprint.
813-
*/
814-
name: string;
815-
816-
/**
817-
* (Optional) Map of paths and file contents to write before setup.
818-
*/
819-
file_mounts?: { [key: string]: string } | null;
820-
821-
/**
822-
* LaunchParameters enable you to customize the resources available to your Devbox
823-
* as well as the environment set up that should be completed before the Devbox is
824-
* marked as 'running'.
825-
*/
826-
launch_parameters?: Shared.LaunchParameters | null;
827-
828-
/**
829-
* (Optional) User defined metadata for the Blueprint.
830-
*/
831-
metadata?: { [key: string]: string } | null;
832-
833-
/**
834-
* (Optional) ID of the network policy to apply during blueprint build. This
835-
* restricts network access during the build process.
836-
*/
837-
network_policy_id?: string | null;
838-
839-
/**
840-
* (Optional) Map of mount IDs/environment variable names to secret names. Secrets
841-
* can be used as environment variables in system_setup_commands. Example:
842-
* {"GITHUB_TOKEN": "gh_secret"} makes 'gh_secret' available as GITHUB_TOKEN.
843-
*/
844-
secrets?: { [key: string]: string } | null;
845-
846-
/**
847-
* A list of commands to run to set up your system.
848-
*/
849-
system_setup_commands?: Array<string> | null;
850-
}
851-
852724
export interface BlueprintListPublicParams extends BlueprintsCursorIDPageParams {
853725
/**
854726
* If true (default), includes total_count in the response. Set to false to skip
@@ -1022,19 +894,16 @@ Blueprints.BlueprintViewsBlueprintsCursorIDPage = BlueprintViewsBlueprintsCursor
1022894

1023895
export declare namespace Blueprints {
1024896
export {
1025-
type BlueprintBuildFromInspectionParameters as BlueprintBuildFromInspectionParameters,
1026897
type BlueprintBuildLog as BlueprintBuildLog,
1027898
type BlueprintBuildLogsListView as BlueprintBuildLogsListView,
1028899
type BlueprintBuildParameters as BlueprintBuildParameters,
1029900
type BlueprintListView as BlueprintListView,
1030901
type BlueprintPreviewView as BlueprintPreviewView,
1031902
type BlueprintView as BlueprintView,
1032-
type InspectionSource as InspectionSource,
1033903
type BlueprintDeleteResponse as BlueprintDeleteResponse,
1034904
BlueprintViewsBlueprintsCursorIDPage as BlueprintViewsBlueprintsCursorIDPage,
1035905
type BlueprintCreateParams as BlueprintCreateParams,
1036906
type BlueprintListParams as BlueprintListParams,
1037-
type BlueprintCreateFromInspectionParams as BlueprintCreateFromInspectionParams,
1038907
type BlueprintListPublicParams as BlueprintListPublicParams,
1039908
type BlueprintPreviewParams as BlueprintPreviewParams,
1040909
};

src/resources/devboxes/devboxes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,11 +1173,6 @@ export interface DevboxCreateParams {
11731173
*/
11741174
name?: string | null;
11751175

1176-
/**
1177-
* Repository connection id the devbox should source its base image from.
1178-
*/
1179-
repo_connection_id?: string | null;
1180-
11811176
/**
11821177
* (Optional) Map of environment variable names to secret names. The secret values
11831178
* will be securely injected as environment variables in the Devbox. Example:

src/resources/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,15 @@ export {
6969
export {
7070
BlueprintViewsBlueprintsCursorIDPage,
7171
Blueprints,
72-
type BlueprintBuildFromInspectionParameters,
7372
type BlueprintBuildLog,
7473
type BlueprintBuildLogsListView,
7574
type BlueprintBuildParameters,
7675
type BlueprintListView,
7776
type BlueprintPreviewView,
7877
type BlueprintView,
79-
type InspectionSource,
8078
type BlueprintDeleteResponse,
8179
type BlueprintCreateParams,
8280
type BlueprintListParams,
83-
type BlueprintCreateFromInspectionParams,
8481
type BlueprintListPublicParams,
8582
type BlueprintPreviewParams,
8683
} from './blueprints';

src/resources/restricted-keys.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export interface ScopeEntryView {
5454
| 'RESOURCE_TYPE_SNAPSHOTS'
5555
| 'RESOURCE_TYPE_BENCHMARKS'
5656
| 'RESOURCE_TYPE_SCENARIOS'
57-
| 'RESOURCE_TYPE_REPO_CONNECTIONS'
5857
| 'RESOURCE_TYPE_AGENTS'
5958
| 'RESOURCE_TYPE_OBJECTS'
6059
| 'RESOURCE_TYPE_ACCOUNT';

tests/api-resources/blueprints.test.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -170,52 +170,6 @@ describe('resource blueprints', () => {
170170
);
171171
});
172172

173-
test('createFromInspection: only required params', async () => {
174-
const responsePromise = client.blueprints.createFromInspection({
175-
inspection_source: { inspection_id: 'inspection_id' },
176-
name: 'name',
177-
});
178-
const rawResponse = await responsePromise.asResponse();
179-
expect(rawResponse).toBeInstanceOf(Response);
180-
const response = await responsePromise;
181-
expect(response).not.toBeInstanceOf(Response);
182-
const dataAndResponse = await responsePromise.withResponse();
183-
expect(dataAndResponse.data).toBe(response);
184-
expect(dataAndResponse.response).toBe(rawResponse);
185-
});
186-
187-
test('createFromInspection: required and optional params', async () => {
188-
const response = await client.blueprints.createFromInspection({
189-
inspection_source: { inspection_id: 'inspection_id', github_auth_token: 'github_auth_token' },
190-
name: 'name',
191-
file_mounts: { foo: 'string' },
192-
launch_parameters: {
193-
after_idle: { idle_time_seconds: 0, on_idle: 'shutdown' },
194-
architecture: 'x86_64',
195-
available_ports: [0],
196-
custom_cpu_cores: 0,
197-
custom_disk_size: 0,
198-
custom_gb_memory: 0,
199-
keep_alive_time_seconds: 0,
200-
launch_commands: ['string'],
201-
lifecycle: {
202-
after_idle: { idle_time_seconds: 0, on_idle: 'shutdown' },
203-
lifecycle_hooks: { suspend_commands: ['string'], suspend_deadline_ms: 0 },
204-
resume_triggers: { axon_event: true, http: true },
205-
},
206-
network_policy_id: 'network_policy_id',
207-
provisioning_tier: 'standard',
208-
required_services: ['string'],
209-
resource_size_request: 'X_SMALL',
210-
user_parameters: { uid: 0, username: 'username' },
211-
},
212-
metadata: { foo: 'string' },
213-
network_policy_id: 'network_policy_id',
214-
secrets: { foo: 'string' },
215-
system_setup_commands: ['string'],
216-
});
217-
});
218-
219173
test('listPublic', async () => {
220174
const responsePromise = client.blueprints.listPublic();
221175
const rawResponse = await responsePromise.asResponse();

tests/api-resources/devboxes/devboxes.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ describe('resource devboxes', () => {
7878
},
7979
],
8080
name: 'name',
81-
repo_connection_id: 'repo_connection_id',
8281
secrets: { foo: 'string' },
8382
snapshot_id: 'snapshot_id',
8483
tunnel: {

0 commit comments

Comments
 (0)