Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Sep 13, 2024
1 parent d38bb2f commit 3362773
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ This library provides convenient access to the Lumaai REST API from server-side

The REST API documentation can be found on [lumalabs.ai](https://lumalabs.ai). The full API of this library can be found in [api.md](api.md).

It is generated with [Stainless](https://www.stainlessapi.com/).

## Installation

```sh
Expand Down
20 changes: 10 additions & 10 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
# Ping

Types:

- <code><a href="./src/resources/ping.ts">PingCheckResponse</a></code>

Methods:

- <code title="get /ping">client.ping.<a href="./src/resources/ping.ts">check</a>() -> PingCheckResponse</code>

# Generations

Types:
Expand All @@ -32,3 +22,13 @@ Types:
Methods:

- <code title="get /generations/camera_motion/list">client.generations.cameraMotion.<a href="./src/resources/generations/camera-motion.ts">list</a>() -> CameraMotionListResponse</code>

# Ping

Types:

- <code><a href="./src/resources/ping.ts">PingCheckResponse</a></code>

Methods:

- <code title="get /ping">client.ping.<a href="./src/resources/ping.ts">check</a>() -> PingCheckResponse</code>
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export class Lumaai extends Core.APIClient {
this.authToken = authToken;
}

ping: API.Ping = new API.Ping(this);
generations: API.Generations = new API.Generations(this);
ping: API.Ping = new API.Ping(this);

protected override defaultQuery(): Core.DefaultQuery | undefined {
return this._options.defaultQuery;
Expand Down Expand Up @@ -173,15 +173,15 @@ export import fileFromPath = Uploads.fileFromPath;
export namespace Lumaai {
export import RequestOptions = Core.RequestOptions;

export import Ping = API.Ping;
export import PingCheckResponse = API.PingCheckResponse;

export import Generations = API.Generations;
export import CameraMotion = API.CameraMotion;
export import Generation = API.Generation;
export import GenerationListResponse = API.GenerationListResponse;
export import GenerationCreateParams = API.GenerationCreateParams;
export import GenerationListParams = API.GenerationListParams;

export import Ping = API.Ping;
export import PingCheckResponse = API.PingCheckResponse;
}

export default Lumaai;

0 comments on commit 3362773

Please sign in to comment.