Skip to content

Commit 922d5cd

Browse files
feat(api): api update
1 parent 677c744 commit 922d5cd

File tree

8 files changed

+1392
-4
lines changed

8 files changed

+1392
-4
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 33
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs%2Fsteel-9f3355d65c6c21e01cce9a67e6573ec289b77c81d927cb4ed1ddd0ed6fd66136.yml
3-
openapi_spec_hash: 5a2317e835847fc4d97223289394ccfb
4-
config_hash: 0ac588be60ea913482f5488577c17b6e
1+
configured_endpoints: 35
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs%2Fsteel-a4d7cab569c60bb539773dadce1d82735e20460d6f2ca5157a048f3f6e7f4a44.yml
3+
openapi_spec_hash: 20afeba7a5d264daec29e36609b1ff92
4+
config_hash: 82777254c5d47bd0cf18d4e17a2e9964

api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,15 @@ Methods:
107107
- <code title="delete /v1/extensions">client.extensions.<a href="./src/resources/extensions.ts">deleteAll</a>() -> ExtensionDeleteAllResponse</code>
108108
- <code title="get /v1/extensions/{extensionId}">client.extensions.<a href="./src/resources/extensions.ts">download</a>(extensionId) -> string</code>
109109
- <code title="post /v1/extensions">client.extensions.<a href="./src/resources/extensions.ts">upload</a>({ ...params }) -> ExtensionUploadResponse</code>
110+
111+
# Profiles
112+
113+
Types:
114+
115+
- <code><a href="./src/resources/profiles.ts">ProfileCreateResponse</a></code>
116+
- <code><a href="./src/resources/profiles.ts">ProfileListResponse</a></code>
117+
118+
Methods:
119+
120+
- <code title="post /v1/profiles">client.profiles.<a href="./src/resources/profiles.ts">create</a>({ ...params }) -> ProfileCreateResponse</code>
121+
- <code title="get /v1/profiles">client.profiles.<a href="./src/resources/profiles.ts">list</a>() -> ProfileListResponse</code>

src/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ import {
3939
Extensions,
4040
} from './resources/extensions';
4141
import { File, FileUploadParams, Files, Fileslist } from './resources/files';
42+
import {
43+
ProfileCreateParams,
44+
ProfileCreateResponse,
45+
ProfileListResponse,
46+
Profiles,
47+
} from './resources/profiles';
4248
import {
4349
Session,
4450
SessionContext,
@@ -169,6 +175,7 @@ export class Steel extends Core.APIClient {
169175
files: API.Files = new API.Files(this);
170176
sessions: API.Sessions = new API.Sessions(this);
171177
extensions: API.Extensions = new API.Extensions(this);
178+
profiles: API.Profiles = new API.Profiles(this);
172179

173180
/**
174181
* Check whether the base URL is set to its default.
@@ -248,6 +255,7 @@ Steel.Files = Files;
248255
Steel.Sessions = Sessions;
249256
Steel.SessionslistSessionsSessionsCursor = SessionslistSessionsSessionsCursor;
250257
Steel.Extensions = Extensions;
258+
Steel.Profiles = Profiles;
251259

252260
export declare namespace Steel {
253261
export type RequestOptions = Core.RequestOptions;
@@ -313,6 +321,13 @@ export declare namespace Steel {
313321
type ExtensionUpdateParams as ExtensionUpdateParams,
314322
type ExtensionUploadParams as ExtensionUploadParams,
315323
};
324+
325+
export {
326+
Profiles as Profiles,
327+
type ProfileCreateResponse as ProfileCreateResponse,
328+
type ProfileListResponse as ProfileListResponse,
329+
type ProfileCreateParams as ProfileCreateParams,
330+
};
316331
}
317332

318333
export { toFile, fileFromPath } from './uploads';

src/resources/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ export {
2323
type ExtensionUploadParams,
2424
} from './extensions';
2525
export { Files, type File, type Fileslist, type FileUploadParams } from './files';
26+
export {
27+
Profiles,
28+
type ProfileCreateResponse,
29+
type ProfileListResponse,
30+
type ProfileCreateParams,
31+
} from './profiles';
2632
export {
2733
SessionslistSessionsSessionsCursor,
2834
Sessions,

0 commit comments

Comments
 (0)