Skip to content

Commit ec481f9

Browse files
fix: stainless config to have 'webhooks' parameter
1 parent 65482bf commit ec481f9

File tree

5 files changed

+89
-3
lines changed

5 files changed

+89
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-27a36dbdb4599ced6b71693d6caaeaab48d92d0a944d389e63186aade3f53fee.yml
3-
openapi_spec_hash: f18d5563d11ea6c3f33da296d7bfce7b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-e8b887c478291aecbbf06e532903242a5d5ff682a2a6814921bb770c97a1753d.yml
3+
openapi_spec_hash: b15141c2e0e81b8029c620d4aef4188c
44
config_hash: c1d1c4ffd4bc69023d6bf98b1bbc4304

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ Methods:
7272
Types:
7373

7474
```python
75-
from miru_server_sdk.types import UnwrapWebhookEvent
75+
from miru_server_sdk.types import DeploymentValidateWebhookEvent, UnwrapWebhookEvent
7676
```

src/miru_server_sdk/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from .device_create_params import DeviceCreateParams as DeviceCreateParams
1515
from .device_list_response import DeviceListResponse as DeviceListResponse
1616
from .device_update_params import DeviceUpdateParams as DeviceUpdateParams
17+
from .unwrap_webhook_event import UnwrapWebhookEvent as UnwrapWebhookEvent
1718
from .release_list_response import ReleaseListResponse as ReleaseListResponse
1819
from .deployment_list_params import DeploymentListParams as DeploymentListParams
1920
from .device_delete_response import DeviceDeleteResponse as DeviceDeleteResponse
@@ -26,6 +27,7 @@
2627
from .deployment_validate_response import DeploymentValidateResponse as DeploymentValidateResponse
2728
from .config_instance_list_response import ConfigInstanceListResponse as ConfigInstanceListResponse
2829
from .config_instance_retrieve_params import ConfigInstanceRetrieveParams as ConfigInstanceRetrieveParams
30+
from .deployment_validate_webhook_event import DeploymentValidateWebhookEvent as DeploymentValidateWebhookEvent
2931
from .device_create_activation_token_params import (
3032
DeviceCreateActivationTokenParams as DeviceCreateActivationTokenParams,
3133
)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from datetime import datetime
4+
from typing_extensions import Literal
5+
6+
from .._models import BaseModel
7+
8+
__all__ = ["DeploymentValidateWebhookEvent", "Data", "DataDeployment"]
9+
10+
11+
class DataDeployment(BaseModel):
12+
id: str
13+
"""ID of the deployment"""
14+
15+
created_at: datetime
16+
"""Timestamp of when the device release was created"""
17+
18+
device_id: str
19+
"""ID of the device"""
20+
21+
object: Literal["deployment"]
22+
23+
release_id: str
24+
"""The version of the release"""
25+
26+
27+
class Data(BaseModel):
28+
deployment: DataDeployment
29+
30+
31+
class DeploymentValidateWebhookEvent(BaseModel):
32+
data: Data
33+
"""The data associated with the event"""
34+
35+
object: Literal["event"]
36+
"""The object that occurred"""
37+
38+
timestamp: datetime
39+
"""The timestamp of the event"""
40+
41+
type: Literal["deployment.validate"]
42+
"""The type of event"""
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from datetime import datetime
4+
from typing_extensions import Literal
5+
6+
from .._models import BaseModel
7+
8+
__all__ = ["UnwrapWebhookEvent", "Data", "DataDeployment"]
9+
10+
11+
class DataDeployment(BaseModel):
12+
id: str
13+
"""ID of the deployment"""
14+
15+
created_at: datetime
16+
"""Timestamp of when the device release was created"""
17+
18+
device_id: str
19+
"""ID of the device"""
20+
21+
object: Literal["deployment"]
22+
23+
release_id: str
24+
"""The version of the release"""
25+
26+
27+
class Data(BaseModel):
28+
deployment: DataDeployment
29+
30+
31+
class UnwrapWebhookEvent(BaseModel):
32+
data: Data
33+
"""The data associated with the event"""
34+
35+
object: Literal["event"]
36+
"""The object that occurred"""
37+
38+
timestamp: datetime
39+
"""The timestamp of the event"""
40+
41+
type: Literal["deployment.validate"]
42+
"""The type of event"""

0 commit comments

Comments
 (0)