Skip to content

Commit cd71047

Browse files
authored
Merge pull request #9 from stainless-api/release-please--branches--main--changes--next--components--stainless
release: 0.1.0-alpha.4
2 parents 51f462a + c5ccd7c commit cd71047

File tree

11 files changed

+111
-9
lines changed

11 files changed

+111
-9
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.3"
2+
".": "0.1.0-alpha.4"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 2
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-1be67c1da343db6e35f0f931a7426978a2b5ce29a6e73d948ff06c8514555351.yml
1+
configured_endpoints: 3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-a23b68c4a9d52ebdbe729a75bceb806c742cbb5aa2491df0d83acd4a9f00eb60.yml

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.0-alpha.4 (2025-01-13)
4+
5+
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/stainless-api/builds-node-api/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
6+
7+
### Features
8+
9+
* **api:** manual updates ([#8](https://github.com/stainless-api/builds-node-api/issues/8)) ([eebb210](https://github.com/stainless-api/builds-node-api/commit/eebb210feb1eabde09d0fa25daeb3861a5e759f0))
10+
311
## 0.1.0-alpha.3 (2025-01-13)
412

513
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/stainless-api/builds-node-api/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Types:
77

88
Methods:
99

10+
- <code title="post /api/spec">client.builds.<a href="./src/resources/builds/builds.ts">create</a>({ ...params }) -> void</code>
1011
- <code title="get /v1/builds">client.builds.<a href="./src/resources/builds/builds.ts">list</a>({ ...params }) -> BuildListResponse</code>
1112

1213
## Outputs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stainless",
3-
"version": "0.1.0-alpha.3",
3+
"version": "0.1.0-alpha.4",
44
"description": "The official TypeScript library for the Stainless API",
55
"author": "Stainless <support@stainless.com>",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ import * as Core from './core';
55
import * as Errors from './error';
66
import * as Uploads from './uploads';
77
import * as API from './resources/index';
8-
import { BuildListParams, BuildListResponse, BuildResponse, Builds } from './resources/builds/builds';
8+
import {
9+
BuildCreateParams,
10+
BuildListParams,
11+
BuildListResponse,
12+
BuildResponse,
13+
Builds,
14+
} from './resources/builds/builds';
915

1016
export interface ClientOptions {
1117
/**
@@ -166,6 +172,7 @@ export declare namespace Stainless {
166172
Builds as Builds,
167173
type BuildResponse as BuildResponse,
168174
type BuildListResponse as BuildListResponse,
175+
type BuildCreateParams as BuildCreateParams,
169176
type BuildListParams as BuildListParams,
170177
};
171178
}

src/resources/builds/builds.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ import {
1717
export class Builds extends APIResource {
1818
outputs: OutputsAPI.Outputs = new OutputsAPI.Outputs(this._client);
1919

20+
/**
21+
* Create a build by uploading a spec along with some other info
22+
*/
23+
create(body: BuildCreateParams, options?: Core.RequestOptions): Core.APIPromise<void> {
24+
return this._client.post(
25+
'/api/spec',
26+
Core.multipartFormRequestOptions({ body, ...options, headers: { Accept: '*/*', ...options?.headers } }),
27+
);
28+
}
29+
2030
/**
2131
* Retrieve a list of builds for a project
2232
*/
@@ -31,6 +41,43 @@ export interface BuildResponse {
3141

3242
export type BuildListResponse = Array<BuildResponse>;
3343

44+
export interface BuildCreateParams {
45+
/**
46+
* The OpenAPI spec to upload
47+
*/
48+
oasSpec: Core.Uploadable;
49+
50+
/**
51+
* The name of the project to create the build in
52+
*/
53+
project: string;
54+
55+
/**
56+
* The name of the Stainless branch to upload the spec to
57+
*/
58+
branch?: string;
59+
60+
/**
61+
* The commit message to use in any resultant commits to the SDK repo
62+
*/
63+
commitMessage?: string;
64+
65+
/**
66+
* Whether or not to use an LLM to automatically guess config changes
67+
*/
68+
guessConfig?: boolean;
69+
70+
/**
71+
* The ID of the parent build
72+
*/
73+
parentBuildId?: string;
74+
75+
/**
76+
* The Stainless Config to upload
77+
*/
78+
stainlessConfig?: Core.Uploadable;
79+
}
80+
3481
export interface BuildListParams {
3582
/**
3683
* Project name
@@ -59,6 +106,7 @@ export declare namespace Builds {
59106
export {
60107
type BuildResponse as BuildResponse,
61108
type BuildListResponse as BuildListResponse,
109+
type BuildCreateParams as BuildCreateParams,
62110
type BuildListParams as BuildListParams,
63111
};
64112

src/resources/builds/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
export { Builds, type BuildResponse, type BuildListResponse, type BuildListParams } from './builds';
3+
export {
4+
Builds,
5+
type BuildResponse,
6+
type BuildListResponse,
7+
type BuildCreateParams,
8+
type BuildListParams,
9+
} from './builds';
410
export {
511
Outputs,
612
type BuildStepOutputInProgress,

src/resources/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
export { Builds, type BuildResponse, type BuildListResponse, type BuildListParams } from './builds/builds';
3+
export {
4+
Builds,
5+
type BuildResponse,
6+
type BuildListResponse,
7+
type BuildCreateParams,
8+
type BuildListParams,
9+
} from './builds/builds';

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.1.0-alpha.3'; // x-release-please-version
1+
export const VERSION = '0.1.0-alpha.4'; // x-release-please-version

0 commit comments

Comments
 (0)