Visitar URL original
feat(api): api update · unlayer/unlayer-python@d5b8805 · GitHub
Skip to content

Commit d5b8805

Browse files
feat(api): api update
1 parent 5e84a11 commit d5b8805

33 files changed

Lines changed: 3526 additions & 52 deletions

‎.stats.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 16
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/unlayer/unlayer-aa551455ecbd91da3298aa03a688686374e19650fb3fce54f437fb4086eef3ba.yml
3-
openapi_spec_hash: c44982974f0272a5fa34de8b2d8d759d
4-
config_hash: de0fdd9f4e2afbb6886dfabb1e7306fa
1+
configured_endpoints: 24
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/unlayer/unlayer-b42187e1b2fff52630a33946829067dcc76dd842a7fb85d826ee9ccc4f44175d.yml
3+
openapi_spec_hash: 7f0c95f3bb404716e0a77878c0c21b91
4+
config_hash: ee438ad5d5e9b8446d21fc7cb50eff95

‎api.md‎

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,92 @@ from unlayer.types import ProjectRetrieveResponse
3434

3535
Methods:
3636

37-
- <code title="get /v3/projects/{id}">client.projects.<a href="./src/unlayer/resources/projects.py">retrieve</a>(id) -> <a href="./src/unlayer/types/project_retrieve_response.py">ProjectRetrieveResponse</a></code>
37+
- <code title="get /v3/projects/{id}">client.projects.<a href="./src/unlayer/resources/projects/projects.py">retrieve</a>(id) -> <a href="./src/unlayer/types/project_retrieve_response.py">ProjectRetrieveResponse</a></code>
38+
39+
## AICredits
40+
41+
Types:
42+
43+
```python
44+
from unlayer.types.projects import AICreditRetrieveResponse
45+
```
46+
47+
Methods:
48+
49+
- <code title="get /v3/projects/{id}/ai-credits">client.projects.ai_credits.<a href="./src/unlayer/resources/projects/ai_credits.py">retrieve</a>(id) -> <a href="./src/unlayer/types/projects/ai_credit_retrieve_response.py">AICreditRetrieveResponse</a></code>
50+
51+
## AICreditsSettings
52+
53+
Types:
54+
55+
```python
56+
from unlayer.types.projects import AICreditsSettingRetrieveResponse, AICreditsSettingUpdateResponse
57+
```
58+
59+
Methods:
60+
61+
- <code title="get /v3/projects/{id}/ai-credits/settings">client.projects.ai_credits_settings.<a href="./src/unlayer/resources/projects/ai_credits_settings.py">retrieve</a>(id) -> <a href="./src/unlayer/types/projects/ai_credits_setting_retrieve_response.py">AICreditsSettingRetrieveResponse</a></code>
62+
- <code title="put /v3/projects/{id}/ai-credits/settings">client.projects.ai_credits_settings.<a href="./src/unlayer/resources/projects/ai_credits_settings.py">update</a>(id, \*\*<a href="src/unlayer/types/projects/ai_credits_setting_update_params.py">params</a>) -> <a href="./src/unlayer/types/projects/ai_credits_setting_update_response.py">AICreditsSettingUpdateResponse</a></code>
63+
64+
## AICreditsSettingsRotateSecret
65+
66+
Types:
67+
68+
```python
69+
from unlayer.types.projects import AICreditsSettingsRotateSecretCreateResponse
70+
```
71+
72+
Methods:
73+
74+
- <code title="post /v3/projects/{id}/ai-credits/settings/rotate-secret">client.projects.ai_credits_settings_rotate_secret.<a href="./src/unlayer/resources/projects/ai_credits_settings_rotate_secret.py">create</a>(id) -> <a href="./src/unlayer/types/projects/ai_credits_settings_rotate_secret_create_response.py">AICreditsSettingsRotateSecretCreateResponse</a></code>
75+
76+
## AICreditsUsage
77+
78+
Types:
79+
80+
```python
81+
from unlayer.types.projects import AICreditsUsageRetrieveResponse
82+
```
83+
84+
Methods:
85+
86+
- <code title="get /v3/projects/{id}/ai-credits/usage">client.projects.ai_credits_usage.<a href="./src/unlayer/resources/projects/ai_credits_usage.py">retrieve</a>(id, \*\*<a href="src/unlayer/types/projects/ai_credits_usage_retrieve_params.py">params</a>) -> <a href="./src/unlayer/types/projects/ai_credits_usage_retrieve_response.py">AICreditsUsageRetrieveResponse</a></code>
87+
88+
## AICreditsWebhooksDeliveries
89+
90+
Types:
91+
92+
```python
93+
from unlayer.types.projects import AICreditsWebhooksDeliveryRetrieveResponse
94+
```
95+
96+
Methods:
97+
98+
- <code title="get /v3/projects/{id}/ai-credits/webhooks/deliveries">client.projects.ai_credits_webhooks_deliveries.<a href="./src/unlayer/resources/projects/ai_credits_webhooks_deliveries.py">retrieve</a>(id, \*\*<a href="src/unlayer/types/projects/ai_credits_webhooks_delivery_retrieve_params.py">params</a>) -> <a href="./src/unlayer/types/projects/ai_credits_webhooks_delivery_retrieve_response.py">AICreditsWebhooksDeliveryRetrieveResponse</a></code>
99+
100+
## AICreditsWebhooksDeliveriesattempts
101+
102+
Types:
103+
104+
```python
105+
from unlayer.types.projects import AICreditsWebhooksDeliveriesattemptRetrieveResponse
106+
```
107+
108+
Methods:
109+
110+
- <code title="get /v3/projects/{id}/ai-credits/webhooks/deliveries/{deliveryId}/attempts">client.projects.ai_credits_webhooks_deliveriesattempts.<a href="./src/unlayer/resources/projects/ai_credits_webhooks_deliveriesattempts.py">retrieve</a>(delivery_id, \*, id, \*\*<a href="src/unlayer/types/projects/ai_credits_webhooks_deliveriesattempt_retrieve_params.py">params</a>) -> <a href="./src/unlayer/types/projects/ai_credits_webhooks_deliveriesattempt_retrieve_response.py">AICreditsWebhooksDeliveriesattemptRetrieveResponse</a></code>
111+
112+
## AICreditsWebhooksDeliveriesretry
113+
114+
Types:
115+
116+
```python
117+
from unlayer.types.projects import AICreditsWebhooksDeliveriesretryCreateResponse
118+
```
119+
120+
Methods:
121+
122+
- <code title="post /v3/projects/{id}/ai-credits/webhooks/deliveries/{deliveryId}/retry">client.projects.ai_credits_webhooks_deliveriesretry.<a href="./src/unlayer/resources/projects/ai_credits_webhooks_deliveriesretry.py">create</a>(delivery_id, \*, id) -> <a href="./src/unlayer/types/projects/ai_credits_webhooks_deliveriesretry_create_response.py">AICreditsWebhooksDeliveriesretryCreateResponse</a></code>
38123

39124
# Templates
40125

‎src/unlayer/_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
if TYPE_CHECKING:
3939
from .resources import me, projects, templates, workspaces, editor_sessions
4040
from .resources.me.me import MeResource, AsyncMeResource
41-
from .resources.projects import ProjectsResource, AsyncProjectsResource
4241
from .resources.workspaces import WorkspacesResource, AsyncWorkspacesResource
4342
from .resources.editor_sessions import EditorSessionsResource, AsyncEditorSessionsResource
43+
from .resources.projects.projects import ProjectsResource, AsyncProjectsResource
4444
from .resources.templates.templates import TemplatesResource, AsyncTemplatesResource
4545

4646
__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Unlayer", "AsyncUnlayer", "Client", "AsyncClient"]
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .projects import (
4+
ProjectsResource,
5+
AsyncProjectsResource,
6+
ProjectsResourceWithRawResponse,
7+
AsyncProjectsResourceWithRawResponse,
8+
ProjectsResourceWithStreamingResponse,
9+
AsyncProjectsResourceWithStreamingResponse,
10+
)
11+
from .ai_credits import (
12+
AICreditsResource,
13+
AsyncAICreditsResource,
14+
AICreditsResourceWithRawResponse,
15+
AsyncAICreditsResourceWithRawResponse,
16+
AICreditsResourceWithStreamingResponse,
17+
AsyncAICreditsResourceWithStreamingResponse,
18+
)
19+
from .ai_credits_usage import (
20+
AICreditsUsageResource,
21+
AsyncAICreditsUsageResource,
22+
AICreditsUsageResourceWithRawResponse,
23+
AsyncAICreditsUsageResourceWithRawResponse,
24+
AICreditsUsageResourceWithStreamingResponse,
25+
AsyncAICreditsUsageResourceWithStreamingResponse,
26+
)
27+
from .ai_credits_settings import (
28+
AICreditsSettingsResource,
29+
AsyncAICreditsSettingsResource,
30+
AICreditsSettingsResourceWithRawResponse,
31+
AsyncAICreditsSettingsResourceWithRawResponse,
32+
AICreditsSettingsResourceWithStreamingResponse,
33+
AsyncAICreditsSettingsResourceWithStreamingResponse,
34+
)
35+
from .ai_credits_webhooks_deliveries import (
36+
AICreditsWebhooksDeliveriesResource,
37+
AsyncAICreditsWebhooksDeliveriesResource,
38+
AICreditsWebhooksDeliveriesResourceWithRawResponse,
39+
AsyncAICreditsWebhooksDeliveriesResourceWithRawResponse,
40+
AICreditsWebhooksDeliveriesResourceWithStreamingResponse,
41+
AsyncAICreditsWebhooksDeliveriesResourceWithStreamingResponse,
42+
)
43+
from .ai_credits_settings_rotate_secret import (
44+
AICreditsSettingsRotateSecretResource,
45+
AsyncAICreditsSettingsRotateSecretResource,
46+
AICreditsSettingsRotateSecretResourceWithRawResponse,
47+
AsyncAICreditsSettingsRotateSecretResourceWithRawResponse,
48+
AICreditsSettingsRotateSecretResourceWithStreamingResponse,
49+
AsyncAICreditsSettingsRotateSecretResourceWithStreamingResponse,
50+
)
51+
from .ai_credits_webhooks_deliveriesretry import (
52+
AICreditsWebhooksDeliveriesretryResource,
53+
AsyncAICreditsWebhooksDeliveriesretryResource,
54+
AICreditsWebhooksDeliveriesretryResourceWithRawResponse,
55+
AsyncAICreditsWebhooksDeliveriesretryResourceWithRawResponse,
56+
AICreditsWebhooksDeliveriesretryResourceWithStreamingResponse,
57+
AsyncAICreditsWebhooksDeliveriesretryResourceWithStreamingResponse,
58+
)
59+
from .ai_credits_webhooks_deliveriesattempts import (
60+
AICreditsWebhooksDeliveriesattemptsResource,
61+
AsyncAICreditsWebhooksDeliveriesattemptsResource,
62+
AICreditsWebhooksDeliveriesattemptsResourceWithRawResponse,
63+
AsyncAICreditsWebhooksDeliveriesattemptsResourceWithRawResponse,
64+
AICreditsWebhooksDeliveriesattemptsResourceWithStreamingResponse,
65+
AsyncAICreditsWebhooksDeliveriesattemptsResourceWithStreamingResponse,
66+
)
67+
68+
__all__ = [
69+
"AICreditsResource",
70+
"AsyncAICreditsResource",
71+
"AICreditsResourceWithRawResponse",
72+
"AsyncAICreditsResourceWithRawResponse",
73+
"AICreditsResourceWithStreamingResponse",
74+
"AsyncAICreditsResourceWithStreamingResponse",
75+
"AICreditsSettingsResource",
76+
"AsyncAICreditsSettingsResource",
77+
"AICreditsSettingsResourceWithRawResponse",
78+
"AsyncAICreditsSettingsResourceWithRawResponse",
79+
"AICreditsSettingsResourceWithStreamingResponse",
80+
"AsyncAICreditsSettingsResourceWithStreamingResponse",
81+
"AICreditsSettingsRotateSecretResource",
82+
"AsyncAICreditsSettingsRotateSecretResource",
83+
"AICreditsSettingsRotateSecretResourceWithRawResponse",
84+
"AsyncAICreditsSettingsRotateSecretResourceWithRawResponse",
85+
"AICreditsSettingsRotateSecretResourceWithStreamingResponse",
86+
"AsyncAICreditsSettingsRotateSecretResourceWithStreamingResponse",
87+
"AICreditsUsageResource",
88+
"AsyncAICreditsUsageResource",
89+
"AICreditsUsageResourceWithRawResponse",
90+
"AsyncAICreditsUsageResourceWithRawResponse",
91+
"AICreditsUsageResourceWithStreamingResponse",
92+
"AsyncAICreditsUsageResourceWithStreamingResponse",
93+
"AICreditsWebhooksDeliveriesResource",
94+
"AsyncAICreditsWebhooksDeliveriesResource",
95+
"AICreditsWebhooksDeliveriesResourceWithRawResponse",
96+
"AsyncAICreditsWebhooksDeliveriesResourceWithRawResponse",
97+
"AICreditsWebhooksDeliveriesResourceWithStreamingResponse",
98+
"AsyncAICreditsWebhooksDeliveriesResourceWithStreamingResponse",
99+
"AICreditsWebhooksDeliveriesattemptsResource",
100+
"AsyncAICreditsWebhooksDeliveriesattemptsResource",
101+
"AICreditsWebhooksDeliveriesattemptsResourceWithRawResponse",
102+
"AsyncAICreditsWebhooksDeliveriesattemptsResourceWithRawResponse",
103+
"AICreditsWebhooksDeliveriesattemptsResourceWithStreamingResponse",
104+
"AsyncAICreditsWebhooksDeliveriesattemptsResourceWithStreamingResponse",
105+
"AICreditsWebhooksDeliveriesretryResource",
106+
"AsyncAICreditsWebhooksDeliveriesretryResource",
107+
"AICreditsWebhooksDeliveriesretryResourceWithRawResponse",
108+
"AsyncAICreditsWebhooksDeliveriesretryResourceWithRawResponse",
109+
"AICreditsWebhooksDeliveriesretryResourceWithStreamingResponse",
110+
"AsyncAICreditsWebhooksDeliveriesretryResourceWithStreamingResponse",
111+
"ProjectsResource",
112+
"AsyncProjectsResource",
113+
"ProjectsResourceWithRawResponse",
114+
"AsyncProjectsResourceWithRawResponse",
115+
"ProjectsResourceWithStreamingResponse",
116+
"AsyncProjectsResourceWithStreamingResponse",
117+
]

0 commit comments

Comments
 (0)