3636)
3737
3838if TYPE_CHECKING :
39- from .resources import ai , convert , projects , templates , workspaces
40- from .resources .ai .ai import AIResource , AsyncAIResource
39+ from .resources import projects , templates , workspaces
4140 from .resources .projects import ProjectsResource , AsyncProjectsResource
42- from .resources .templates import TemplatesResource , AsyncTemplatesResource
4341 from .resources .workspaces import WorkspacesResource , AsyncWorkspacesResource
44- from .resources .convert . convert import ConvertResource , AsyncConvertResource
42+ from .resources .templates . templates import TemplatesResource , AsyncTemplatesResource
4543
4644__all__ = ["Timeout" , "Transport" , "ProxiesTypes" , "RequestOptions" , "Unlayer" , "AsyncUnlayer" , "Client" , "AsyncClient" ]
4745
@@ -121,18 +119,6 @@ def __init__(
121119 _strict_response_validation = _strict_response_validation ,
122120 )
123121
124- @cached_property
125- def ai (self ) -> AIResource :
126- from .resources .ai import AIResource
127-
128- return AIResource (self )
129-
130- @cached_property
131- def convert (self ) -> ConvertResource :
132- from .resources .convert import ConvertResource
133-
134- return ConvertResource (self )
135-
136122 @cached_property
137123 def projects (self ) -> ProjectsResource :
138124 """Project details and configuration."""
@@ -142,7 +128,9 @@ def projects(self) -> ProjectsResource:
142128
143129 @cached_property
144130 def templates (self ) -> TemplatesResource :
145- """Template management and retrieval."""
131+ """
132+ Template management — list, retrieve, generate, import, export, and convert designs.
133+ """
146134 from .resources .templates import TemplatesResource
147135
148136 return TemplatesResource (self )
@@ -369,18 +357,6 @@ def __init__(
369357 _strict_response_validation = _strict_response_validation ,
370358 )
371359
372- @cached_property
373- def ai (self ) -> AsyncAIResource :
374- from .resources .ai import AsyncAIResource
375-
376- return AsyncAIResource (self )
377-
378- @cached_property
379- def convert (self ) -> AsyncConvertResource :
380- from .resources .convert import AsyncConvertResource
381-
382- return AsyncConvertResource (self )
383-
384360 @cached_property
385361 def projects (self ) -> AsyncProjectsResource :
386362 """Project details and configuration."""
@@ -390,7 +366,9 @@ def projects(self) -> AsyncProjectsResource:
390366
391367 @cached_property
392368 def templates (self ) -> AsyncTemplatesResource :
393- """Template management and retrieval."""
369+ """
370+ Template management — list, retrieve, generate, import, export, and convert designs.
371+ """
394372 from .resources .templates import AsyncTemplatesResource
395373
396374 return AsyncTemplatesResource (self )
@@ -548,18 +526,6 @@ class UnlayerWithRawResponse:
548526 def __init__ (self , client : Unlayer ) -> None :
549527 self ._client = client
550528
551- @cached_property
552- def ai (self ) -> ai .AIResourceWithRawResponse :
553- from .resources .ai import AIResourceWithRawResponse
554-
555- return AIResourceWithRawResponse (self ._client .ai )
556-
557- @cached_property
558- def convert (self ) -> convert .ConvertResourceWithRawResponse :
559- from .resources .convert import ConvertResourceWithRawResponse
560-
561- return ConvertResourceWithRawResponse (self ._client .convert )
562-
563529 @cached_property
564530 def projects (self ) -> projects .ProjectsResourceWithRawResponse :
565531 """Project details and configuration."""
@@ -569,7 +535,9 @@ def projects(self) -> projects.ProjectsResourceWithRawResponse:
569535
570536 @cached_property
571537 def templates (self ) -> templates .TemplatesResourceWithRawResponse :
572- """Template management and retrieval."""
538+ """
539+ Template management — list, retrieve, generate, import, export, and convert designs.
540+ """
573541 from .resources .templates import TemplatesResourceWithRawResponse
574542
575543 return TemplatesResourceWithRawResponse (self ._client .templates )
@@ -588,18 +556,6 @@ class AsyncUnlayerWithRawResponse:
588556 def __init__ (self , client : AsyncUnlayer ) -> None :
589557 self ._client = client
590558
591- @cached_property
592- def ai (self ) -> ai .AsyncAIResourceWithRawResponse :
593- from .resources .ai import AsyncAIResourceWithRawResponse
594-
595- return AsyncAIResourceWithRawResponse (self ._client .ai )
596-
597- @cached_property
598- def convert (self ) -> convert .AsyncConvertResourceWithRawResponse :
599- from .resources .convert import AsyncConvertResourceWithRawResponse
600-
601- return AsyncConvertResourceWithRawResponse (self ._client .convert )
602-
603559 @cached_property
604560 def projects (self ) -> projects .AsyncProjectsResourceWithRawResponse :
605561 """Project details and configuration."""
@@ -609,7 +565,9 @@ def projects(self) -> projects.AsyncProjectsResourceWithRawResponse:
609565
610566 @cached_property
611567 def templates (self ) -> templates .AsyncTemplatesResourceWithRawResponse :
612- """Template management and retrieval."""
568+ """
569+ Template management — list, retrieve, generate, import, export, and convert designs.
570+ """
613571 from .resources .templates import AsyncTemplatesResourceWithRawResponse
614572
615573 return AsyncTemplatesResourceWithRawResponse (self ._client .templates )
@@ -628,18 +586,6 @@ class UnlayerWithStreamedResponse:
628586 def __init__ (self , client : Unlayer ) -> None :
629587 self ._client = client
630588
631- @cached_property
632- def ai (self ) -> ai .AIResourceWithStreamingResponse :
633- from .resources .ai import AIResourceWithStreamingResponse
634-
635- return AIResourceWithStreamingResponse (self ._client .ai )
636-
637- @cached_property
638- def convert (self ) -> convert .ConvertResourceWithStreamingResponse :
639- from .resources .convert import ConvertResourceWithStreamingResponse
640-
641- return ConvertResourceWithStreamingResponse (self ._client .convert )
642-
643589 @cached_property
644590 def projects (self ) -> projects .ProjectsResourceWithStreamingResponse :
645591 """Project details and configuration."""
@@ -649,7 +595,9 @@ def projects(self) -> projects.ProjectsResourceWithStreamingResponse:
649595
650596 @cached_property
651597 def templates (self ) -> templates .TemplatesResourceWithStreamingResponse :
652- """Template management and retrieval."""
598+ """
599+ Template management — list, retrieve, generate, import, export, and convert designs.
600+ """
653601 from .resources .templates import TemplatesResourceWithStreamingResponse
654602
655603 return TemplatesResourceWithStreamingResponse (self ._client .templates )
@@ -668,18 +616,6 @@ class AsyncUnlayerWithStreamedResponse:
668616 def __init__ (self , client : AsyncUnlayer ) -> None :
669617 self ._client = client
670618
671- @cached_property
672- def ai (self ) -> ai .AsyncAIResourceWithStreamingResponse :
673- from .resources .ai import AsyncAIResourceWithStreamingResponse
674-
675- return AsyncAIResourceWithStreamingResponse (self ._client .ai )
676-
677- @cached_property
678- def convert (self ) -> convert .AsyncConvertResourceWithStreamingResponse :
679- from .resources .convert import AsyncConvertResourceWithStreamingResponse
680-
681- return AsyncConvertResourceWithStreamingResponse (self ._client .convert )
682-
683619 @cached_property
684620 def projects (self ) -> projects .AsyncProjectsResourceWithStreamingResponse :
685621 """Project details and configuration."""
@@ -689,7 +625,9 @@ def projects(self) -> projects.AsyncProjectsResourceWithStreamingResponse:
689625
690626 @cached_property
691627 def templates (self ) -> templates .AsyncTemplatesResourceWithStreamingResponse :
692- """Template management and retrieval."""
628+ """
629+ Template management — list, retrieve, generate, import, export, and convert designs.
630+ """
693631 from .resources .templates import AsyncTemplatesResourceWithStreamingResponse
694632
695633 return AsyncTemplatesResourceWithStreamingResponse (self ._client .templates )
0 commit comments