|
36 | 36 | ) |
37 | 37 |
|
38 | 38 | if TYPE_CHECKING: |
39 | | - from .resources import me, emails, domains, projects, webhooks, templates, workspaces, editor_sessions |
| 39 | + from .resources import me, blocks, emails, domains, projects, webhooks, templates, workspaces, editor_sessions |
40 | 40 | from .resources.me.me import MeResource, AsyncMeResource |
| 41 | + from .resources.blocks import BlocksResource, AsyncBlocksResource |
41 | 42 | from .resources.workspaces import WorkspacesResource, AsyncWorkspacesResource |
42 | 43 | from .resources.emails.emails import EmailsResource, AsyncEmailsResource |
43 | 44 | from .resources.domains.domains import DomainsResource, AsyncDomainsResource |
@@ -124,6 +125,15 @@ def __init__( |
124 | 125 | _strict_response_validation=_strict_response_validation, |
125 | 126 | ) |
126 | 127 |
|
| 128 | + @cached_property |
| 129 | + def blocks(self) -> BlocksResource: |
| 130 | + """ |
| 131 | + Reusable design blocks — list shared project blocks and end-user saved blocks for backup, migration, and usage reporting. |
| 132 | + """ |
| 133 | + from .resources.blocks import BlocksResource |
| 134 | + |
| 135 | + return BlocksResource(self) |
| 136 | + |
127 | 137 | @cached_property |
128 | 138 | def domains(self) -> DomainsResource: |
129 | 139 | from .resources.domains import DomainsResource |
@@ -392,6 +402,15 @@ def __init__( |
392 | 402 | _strict_response_validation=_strict_response_validation, |
393 | 403 | ) |
394 | 404 |
|
| 405 | + @cached_property |
| 406 | + def blocks(self) -> AsyncBlocksResource: |
| 407 | + """ |
| 408 | + Reusable design blocks — list shared project blocks and end-user saved blocks for backup, migration, and usage reporting. |
| 409 | + """ |
| 410 | + from .resources.blocks import AsyncBlocksResource |
| 411 | + |
| 412 | + return AsyncBlocksResource(self) |
| 413 | + |
395 | 414 | @cached_property |
396 | 415 | def domains(self) -> AsyncDomainsResource: |
397 | 416 | from .resources.domains import AsyncDomainsResource |
@@ -591,6 +610,15 @@ class UnlayerWithRawResponse: |
591 | 610 | def __init__(self, client: Unlayer) -> None: |
592 | 611 | self._client = client |
593 | 612 |
|
| 613 | + @cached_property |
| 614 | + def blocks(self) -> blocks.BlocksResourceWithRawResponse: |
| 615 | + """ |
| 616 | + Reusable design blocks — list shared project blocks and end-user saved blocks for backup, migration, and usage reporting. |
| 617 | + """ |
| 618 | + from .resources.blocks import BlocksResourceWithRawResponse |
| 619 | + |
| 620 | + return BlocksResourceWithRawResponse(self._client.blocks) |
| 621 | + |
594 | 622 | @cached_property |
595 | 623 | def domains(self) -> domains.DomainsResourceWithRawResponse: |
596 | 624 | from .resources.domains import DomainsResourceWithRawResponse |
@@ -651,6 +679,15 @@ class AsyncUnlayerWithRawResponse: |
651 | 679 | def __init__(self, client: AsyncUnlayer) -> None: |
652 | 680 | self._client = client |
653 | 681 |
|
| 682 | + @cached_property |
| 683 | + def blocks(self) -> blocks.AsyncBlocksResourceWithRawResponse: |
| 684 | + """ |
| 685 | + Reusable design blocks — list shared project blocks and end-user saved blocks for backup, migration, and usage reporting. |
| 686 | + """ |
| 687 | + from .resources.blocks import AsyncBlocksResourceWithRawResponse |
| 688 | + |
| 689 | + return AsyncBlocksResourceWithRawResponse(self._client.blocks) |
| 690 | + |
654 | 691 | @cached_property |
655 | 692 | def domains(self) -> domains.AsyncDomainsResourceWithRawResponse: |
656 | 693 | from .resources.domains import AsyncDomainsResourceWithRawResponse |
@@ -711,6 +748,15 @@ class UnlayerWithStreamedResponse: |
711 | 748 | def __init__(self, client: Unlayer) -> None: |
712 | 749 | self._client = client |
713 | 750 |
|
| 751 | + @cached_property |
| 752 | + def blocks(self) -> blocks.BlocksResourceWithStreamingResponse: |
| 753 | + """ |
| 754 | + Reusable design blocks — list shared project blocks and end-user saved blocks for backup, migration, and usage reporting. |
| 755 | + """ |
| 756 | + from .resources.blocks import BlocksResourceWithStreamingResponse |
| 757 | + |
| 758 | + return BlocksResourceWithStreamingResponse(self._client.blocks) |
| 759 | + |
714 | 760 | @cached_property |
715 | 761 | def domains(self) -> domains.DomainsResourceWithStreamingResponse: |
716 | 762 | from .resources.domains import DomainsResourceWithStreamingResponse |
@@ -771,6 +817,15 @@ class AsyncUnlayerWithStreamedResponse: |
771 | 817 | def __init__(self, client: AsyncUnlayer) -> None: |
772 | 818 | self._client = client |
773 | 819 |
|
| 820 | + @cached_property |
| 821 | + def blocks(self) -> blocks.AsyncBlocksResourceWithStreamingResponse: |
| 822 | + """ |
| 823 | + Reusable design blocks — list shared project blocks and end-user saved blocks for backup, migration, and usage reporting. |
| 824 | + """ |
| 825 | + from .resources.blocks import AsyncBlocksResourceWithStreamingResponse |
| 826 | + |
| 827 | + return AsyncBlocksResourceWithStreamingResponse(self._client.blocks) |
| 828 | + |
774 | 829 | @cached_property |
775 | 830 | def domains(self) -> domains.AsyncDomainsResourceWithStreamingResponse: |
776 | 831 | from .resources.domains import AsyncDomainsResourceWithStreamingResponse |
|
0 commit comments