|
36 | 36 | ) |
37 | 37 |
|
38 | 38 | if TYPE_CHECKING: |
39 | | - from .resources import projects, templates, workspaces |
| 39 | + from .resources import me, projects, templates, workspaces, editor_sessions |
| 40 | + from .resources.me.me import MeResource, AsyncMeResource |
40 | 41 | from .resources.projects import ProjectsResource, AsyncProjectsResource |
41 | 42 | from .resources.workspaces import WorkspacesResource, AsyncWorkspacesResource |
| 43 | + from .resources.editor_sessions import EditorSessionsResource, AsyncEditorSessionsResource |
42 | 44 | from .resources.templates.templates import TemplatesResource, AsyncTemplatesResource |
43 | 45 |
|
44 | 46 | __all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Unlayer", "AsyncUnlayer", "Client", "AsyncClient"] |
@@ -119,6 +121,18 @@ def __init__( |
119 | 121 | _strict_response_validation=_strict_response_validation, |
120 | 122 | ) |
121 | 123 |
|
| 124 | + @cached_property |
| 125 | + def editor_sessions(self) -> EditorSessionsResource: |
| 126 | + from .resources.editor_sessions import EditorSessionsResource |
| 127 | + |
| 128 | + return EditorSessionsResource(self) |
| 129 | + |
| 130 | + @cached_property |
| 131 | + def me(self) -> MeResource: |
| 132 | + from .resources.me import MeResource |
| 133 | + |
| 134 | + return MeResource(self) |
| 135 | + |
122 | 136 | @cached_property |
123 | 137 | def projects(self) -> ProjectsResource: |
124 | 138 | """Project details and configuration.""" |
@@ -357,6 +371,18 @@ def __init__( |
357 | 371 | _strict_response_validation=_strict_response_validation, |
358 | 372 | ) |
359 | 373 |
|
| 374 | + @cached_property |
| 375 | + def editor_sessions(self) -> AsyncEditorSessionsResource: |
| 376 | + from .resources.editor_sessions import AsyncEditorSessionsResource |
| 377 | + |
| 378 | + return AsyncEditorSessionsResource(self) |
| 379 | + |
| 380 | + @cached_property |
| 381 | + def me(self) -> AsyncMeResource: |
| 382 | + from .resources.me import AsyncMeResource |
| 383 | + |
| 384 | + return AsyncMeResource(self) |
| 385 | + |
360 | 386 | @cached_property |
361 | 387 | def projects(self) -> AsyncProjectsResource: |
362 | 388 | """Project details and configuration.""" |
@@ -526,6 +552,18 @@ class UnlayerWithRawResponse: |
526 | 552 | def __init__(self, client: Unlayer) -> None: |
527 | 553 | self._client = client |
528 | 554 |
|
| 555 | + @cached_property |
| 556 | + def editor_sessions(self) -> editor_sessions.EditorSessionsResourceWithRawResponse: |
| 557 | + from .resources.editor_sessions import EditorSessionsResourceWithRawResponse |
| 558 | + |
| 559 | + return EditorSessionsResourceWithRawResponse(self._client.editor_sessions) |
| 560 | + |
| 561 | + @cached_property |
| 562 | + def me(self) -> me.MeResourceWithRawResponse: |
| 563 | + from .resources.me import MeResourceWithRawResponse |
| 564 | + |
| 565 | + return MeResourceWithRawResponse(self._client.me) |
| 566 | + |
529 | 567 | @cached_property |
530 | 568 | def projects(self) -> projects.ProjectsResourceWithRawResponse: |
531 | 569 | """Project details and configuration.""" |
@@ -556,6 +594,18 @@ class AsyncUnlayerWithRawResponse: |
556 | 594 | def __init__(self, client: AsyncUnlayer) -> None: |
557 | 595 | self._client = client |
558 | 596 |
|
| 597 | + @cached_property |
| 598 | + def editor_sessions(self) -> editor_sessions.AsyncEditorSessionsResourceWithRawResponse: |
| 599 | + from .resources.editor_sessions import AsyncEditorSessionsResourceWithRawResponse |
| 600 | + |
| 601 | + return AsyncEditorSessionsResourceWithRawResponse(self._client.editor_sessions) |
| 602 | + |
| 603 | + @cached_property |
| 604 | + def me(self) -> me.AsyncMeResourceWithRawResponse: |
| 605 | + from .resources.me import AsyncMeResourceWithRawResponse |
| 606 | + |
| 607 | + return AsyncMeResourceWithRawResponse(self._client.me) |
| 608 | + |
559 | 609 | @cached_property |
560 | 610 | def projects(self) -> projects.AsyncProjectsResourceWithRawResponse: |
561 | 611 | """Project details and configuration.""" |
@@ -586,6 +636,18 @@ class UnlayerWithStreamedResponse: |
586 | 636 | def __init__(self, client: Unlayer) -> None: |
587 | 637 | self._client = client |
588 | 638 |
|
| 639 | + @cached_property |
| 640 | + def editor_sessions(self) -> editor_sessions.EditorSessionsResourceWithStreamingResponse: |
| 641 | + from .resources.editor_sessions import EditorSessionsResourceWithStreamingResponse |
| 642 | + |
| 643 | + return EditorSessionsResourceWithStreamingResponse(self._client.editor_sessions) |
| 644 | + |
| 645 | + @cached_property |
| 646 | + def me(self) -> me.MeResourceWithStreamingResponse: |
| 647 | + from .resources.me import MeResourceWithStreamingResponse |
| 648 | + |
| 649 | + return MeResourceWithStreamingResponse(self._client.me) |
| 650 | + |
589 | 651 | @cached_property |
590 | 652 | def projects(self) -> projects.ProjectsResourceWithStreamingResponse: |
591 | 653 | """Project details and configuration.""" |
@@ -616,6 +678,18 @@ class AsyncUnlayerWithStreamedResponse: |
616 | 678 | def __init__(self, client: AsyncUnlayer) -> None: |
617 | 679 | self._client = client |
618 | 680 |
|
| 681 | + @cached_property |
| 682 | + def editor_sessions(self) -> editor_sessions.AsyncEditorSessionsResourceWithStreamingResponse: |
| 683 | + from .resources.editor_sessions import AsyncEditorSessionsResourceWithStreamingResponse |
| 684 | + |
| 685 | + return AsyncEditorSessionsResourceWithStreamingResponse(self._client.editor_sessions) |
| 686 | + |
| 687 | + @cached_property |
| 688 | + def me(self) -> me.AsyncMeResourceWithStreamingResponse: |
| 689 | + from .resources.me import AsyncMeResourceWithStreamingResponse |
| 690 | + |
| 691 | + return AsyncMeResourceWithStreamingResponse(self._client.me) |
| 692 | + |
619 | 693 | @cached_property |
620 | 694 | def projects(self) -> projects.AsyncProjectsResourceWithStreamingResponse: |
621 | 695 | """Project details and configuration.""" |
|
0 commit comments