Skip to content

Commit 4d54fc6

Browse files
authored
Merge pull request #65 from lumalabs/release-please--branches--main--changes--next
release: 1.2.0
2 parents d215f3b + 5f74c11 commit 4d54fc6

File tree

18 files changed

+1079
-30
lines changed

18 files changed

+1079
-30
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-
".": "1.1.2"
2+
".": "1.2.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/luma-ai-karanganesan%2Fluma_ai-c575f97c4075b33767ab2bc78afcc28d851c7e60c909471aa8157ee301631a53.yml
1+
configured_endpoints: 8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/luma-ai-karanganesan%2Fluma_ai-50c12769a17f0d41c6eb0bda802f752d0fe0fcb4ff1a7d09abe65d0764fa72cb.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+
## 1.2.0 (2024-12-02)
4+
5+
Full Changelog: [v1.1.2...v1.2.0](https://github.com/lumalabs/lumaai-python/compare/v1.1.2...v1.2.0)
6+
7+
### Features
8+
9+
* **api:** api update ([#60](https://github.com/lumalabs/lumaai-python/issues/60)) ([fab600d](https://github.com/lumalabs/lumaai-python/commit/fab600d43fbacd8d1bdeef6b1a657fcbb5ffed82))
10+
311
## 1.1.2 (2024-12-01)
412

513
Full Changelog: [v1.1.1...v1.1.2](https://github.com/lumalabs/lumaai-python/compare/v1.1.1...v1.1.2)

api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ Methods:
2525

2626
- <code title="get /generations/camera_motion/list">client.generations.camera_motion.<a href="./src/lumaai/resources/generations/camera_motion.py">list</a>() -> <a href="./src/lumaai/types/generations/camera_motion_list_response.py">CameraMotionListResponse</a></code>
2727

28+
## Image
29+
30+
Methods:
31+
32+
- <code title="post /generations/image">client.generations.image.<a href="./src/lumaai/resources/generations/image.py">create</a>(\*\*<a href="src/lumaai/types/generations/image_create_params.py">params</a>) -> <a href="./src/lumaai/types/generation.py">Generation</a></code>
33+
34+
## Video
35+
36+
Methods:
37+
38+
- <code title="post /generations">client.generations.video.<a href="./src/lumaai/resources/generations/video.py">create</a>(\*\*<a href="src/lumaai/types/generations/video_create_params.py">params</a>) -> <a href="./src/lumaai/types/generation.py">Generation</a></code>
39+
2840
# Ping
2941

3042
Types:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lumaai"
3-
version = "1.1.2"
3+
version = "1.2.0"
44
description = "The official Python library for the lumaai API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/lumaai/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "lumaai"
4-
__version__ = "1.1.2" # x-release-please-version
4+
__version__ = "1.2.0" # x-release-please-version

src/lumaai/resources/generations/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from .image import (
4+
ImageResource,
5+
AsyncImageResource,
6+
ImageResourceWithRawResponse,
7+
AsyncImageResourceWithRawResponse,
8+
ImageResourceWithStreamingResponse,
9+
AsyncImageResourceWithStreamingResponse,
10+
)
11+
from .video import (
12+
VideoResource,
13+
AsyncVideoResource,
14+
VideoResourceWithRawResponse,
15+
AsyncVideoResourceWithRawResponse,
16+
VideoResourceWithStreamingResponse,
17+
AsyncVideoResourceWithStreamingResponse,
18+
)
319
from .generations import (
420
GenerationsResource,
521
AsyncGenerationsResource,
@@ -24,6 +40,18 @@
2440
"AsyncCameraMotionResourceWithRawResponse",
2541
"CameraMotionResourceWithStreamingResponse",
2642
"AsyncCameraMotionResourceWithStreamingResponse",
43+
"ImageResource",
44+
"AsyncImageResource",
45+
"ImageResourceWithRawResponse",
46+
"AsyncImageResourceWithRawResponse",
47+
"ImageResourceWithStreamingResponse",
48+
"AsyncImageResourceWithStreamingResponse",
49+
"VideoResource",
50+
"AsyncVideoResource",
51+
"VideoResourceWithRawResponse",
52+
"AsyncVideoResourceWithRawResponse",
53+
"VideoResourceWithStreamingResponse",
54+
"AsyncVideoResourceWithStreamingResponse",
2755
"GenerationsResource",
2856
"AsyncGenerationsResource",
2957
"GenerationsResourceWithRawResponse",

src/lumaai/resources/generations/generations.py

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@
66

77
import httpx
88

9+
from .image import (
10+
ImageResource,
11+
AsyncImageResource,
12+
ImageResourceWithRawResponse,
13+
AsyncImageResourceWithRawResponse,
14+
ImageResourceWithStreamingResponse,
15+
AsyncImageResourceWithStreamingResponse,
16+
)
17+
from .video import (
18+
VideoResource,
19+
AsyncVideoResource,
20+
VideoResourceWithRawResponse,
21+
AsyncVideoResourceWithRawResponse,
22+
VideoResourceWithStreamingResponse,
23+
AsyncVideoResourceWithStreamingResponse,
24+
)
925
from ...types import generation_list_params, generation_create_params
1026
from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
1127
from ..._utils import (
@@ -40,6 +56,14 @@ class GenerationsResource(SyncAPIResource):
4056
def camera_motion(self) -> CameraMotionResource:
4157
return CameraMotionResource(self._client)
4258

59+
@cached_property
60+
def image(self) -> ImageResource:
61+
return ImageResource(self._client)
62+
63+
@cached_property
64+
def video(self) -> VideoResource:
65+
return VideoResource(self._client)
66+
4367
@cached_property
4468
def with_raw_response(self) -> GenerationsResourceWithRawResponse:
4569
"""
@@ -64,6 +88,7 @@ def create(
6488
*,
6589
aspect_ratio: Literal["1:1", "16:9", "9:16", "4:3", "3:4", "21:9", "9:21"] | NotGiven = NOT_GIVEN,
6690
callback_url: str | NotGiven = NOT_GIVEN,
91+
generation_type: Literal["video"] | NotGiven = NOT_GIVEN,
6792
keyframes: generation_create_params.Keyframes | NotGiven = NOT_GIVEN,
6893
loop: bool | NotGiven = NOT_GIVEN,
6994
prompt: str | NotGiven = NOT_GIVEN,
@@ -104,6 +129,7 @@ def create(
104129
{
105130
"aspect_ratio": aspect_ratio,
106131
"callback_url": callback_url,
132+
"generation_type": generation_type,
107133
"keyframes": keyframes,
108134
"loop": loop,
109135
"prompt": prompt,
@@ -231,6 +257,14 @@ class AsyncGenerationsResource(AsyncAPIResource):
231257
def camera_motion(self) -> AsyncCameraMotionResource:
232258
return AsyncCameraMotionResource(self._client)
233259

260+
@cached_property
261+
def image(self) -> AsyncImageResource:
262+
return AsyncImageResource(self._client)
263+
264+
@cached_property
265+
def video(self) -> AsyncVideoResource:
266+
return AsyncVideoResource(self._client)
267+
234268
@cached_property
235269
def with_raw_response(self) -> AsyncGenerationsResourceWithRawResponse:
236270
"""
@@ -255,6 +289,7 @@ async def create(
255289
*,
256290
aspect_ratio: Literal["1:1", "16:9", "9:16", "4:3", "3:4", "21:9", "9:21"] | NotGiven = NOT_GIVEN,
257291
callback_url: str | NotGiven = NOT_GIVEN,
292+
generation_type: Literal["video"] | NotGiven = NOT_GIVEN,
258293
keyframes: generation_create_params.Keyframes | NotGiven = NOT_GIVEN,
259294
loop: bool | NotGiven = NOT_GIVEN,
260295
prompt: str | NotGiven = NOT_GIVEN,
@@ -295,6 +330,7 @@ async def create(
295330
{
296331
"aspect_ratio": aspect_ratio,
297332
"callback_url": callback_url,
333+
"generation_type": generation_type,
298334
"keyframes": keyframes,
299335
"loop": loop,
300336
"prompt": prompt,
@@ -438,6 +474,14 @@ def __init__(self, generations: GenerationsResource) -> None:
438474
def camera_motion(self) -> CameraMotionResourceWithRawResponse:
439475
return CameraMotionResourceWithRawResponse(self._generations.camera_motion)
440476

477+
@cached_property
478+
def image(self) -> ImageResourceWithRawResponse:
479+
return ImageResourceWithRawResponse(self._generations.image)
480+
481+
@cached_property
482+
def video(self) -> VideoResourceWithRawResponse:
483+
return VideoResourceWithRawResponse(self._generations.video)
484+
441485

442486
class AsyncGenerationsResourceWithRawResponse:
443487
def __init__(self, generations: AsyncGenerationsResource) -> None:
@@ -460,6 +504,14 @@ def __init__(self, generations: AsyncGenerationsResource) -> None:
460504
def camera_motion(self) -> AsyncCameraMotionResourceWithRawResponse:
461505
return AsyncCameraMotionResourceWithRawResponse(self._generations.camera_motion)
462506

507+
@cached_property
508+
def image(self) -> AsyncImageResourceWithRawResponse:
509+
return AsyncImageResourceWithRawResponse(self._generations.image)
510+
511+
@cached_property
512+
def video(self) -> AsyncVideoResourceWithRawResponse:
513+
return AsyncVideoResourceWithRawResponse(self._generations.video)
514+
463515

464516
class GenerationsResourceWithStreamingResponse:
465517
def __init__(self, generations: GenerationsResource) -> None:
@@ -482,6 +534,14 @@ def __init__(self, generations: GenerationsResource) -> None:
482534
def camera_motion(self) -> CameraMotionResourceWithStreamingResponse:
483535
return CameraMotionResourceWithStreamingResponse(self._generations.camera_motion)
484536

537+
@cached_property
538+
def image(self) -> ImageResourceWithStreamingResponse:
539+
return ImageResourceWithStreamingResponse(self._generations.image)
540+
541+
@cached_property
542+
def video(self) -> VideoResourceWithStreamingResponse:
543+
return VideoResourceWithStreamingResponse(self._generations.video)
544+
485545

486546
class AsyncGenerationsResourceWithStreamingResponse:
487547
def __init__(self, generations: AsyncGenerationsResource) -> None:
@@ -503,3 +563,11 @@ def __init__(self, generations: AsyncGenerationsResource) -> None:
503563
@cached_property
504564
def camera_motion(self) -> AsyncCameraMotionResourceWithStreamingResponse:
505565
return AsyncCameraMotionResourceWithStreamingResponse(self._generations.camera_motion)
566+
567+
@cached_property
568+
def image(self) -> AsyncImageResourceWithStreamingResponse:
569+
return AsyncImageResourceWithStreamingResponse(self._generations.image)
570+
571+
@cached_property
572+
def video(self) -> AsyncVideoResourceWithStreamingResponse:
573+
return AsyncVideoResourceWithStreamingResponse(self._generations.video)

0 commit comments

Comments
 (0)