From 882bc0f29be3347cf88570466e0f3cdedbc67db5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Oct 2025 02:20:46 +0000 Subject: [PATCH 1/6] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 6a1f486..0b5b1ff 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-f83963fba7bea9fcb404a2a9f23e1dc72d095a723e3f0d80908d9403418defed.yml openapi_spec_hash: 338aed81ffea9410ecd43393094977bf -config_hash: 12fa4b9e99bf5317506a12aa9fecf73b +config_hash: e4b540cdbf4883a09093067ca6690bf6 From af7d638500e7715981abeb8d342ba5e6961f58e6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Oct 2025 02:22:21 +0000 Subject: [PATCH 2/6] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 0b5b1ff..3bba6b5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-f83963fba7bea9fcb404a2a9f23e1dc72d095a723e3f0d80908d9403418defed.yml openapi_spec_hash: 338aed81ffea9410ecd43393094977bf -config_hash: e4b540cdbf4883a09093067ca6690bf6 +config_hash: 962bbc6791e29202a4e4b66ba9844c83 From bb3bc05defb45180a838c0e6f91d42f7669e0f7f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:10:09 +0000 Subject: [PATCH 3/6] refactor(api): remove 'config_schemas' expansion on config types --- .stats.yml | 4 +- api.md | 3 +- src/miru_server_sdk/types/__init__.py | 24 ----------- src/miru_server_sdk/types/config_instance.py | 12 ++---- .../types/config_instance_list_response.py | 8 +--- src/miru_server_sdk/types/config_schema.py | 8 +--- .../types/config_schema_list.py | 16 ------- src/miru_server_sdk/types/config_type.py | 9 ---- src/miru_server_sdk/types/deployment.py | 12 ++---- .../types/deployment_list_response.py | 8 +--- .../types/deployment_validate_response.py | 8 +--- .../deployment_validate_webhook_event.py | 42 ------------------- src/miru_server_sdk/types/release.py | 8 +--- .../types/release_list_response.py | 8 +--- .../types/unwrap_webhook_event.py | 42 ------------------- 15 files changed, 23 insertions(+), 189 deletions(-) delete mode 100644 src/miru_server_sdk/types/config_schema_list.py delete mode 100644 src/miru_server_sdk/types/deployment_validate_webhook_event.py delete mode 100644 src/miru_server_sdk/types/unwrap_webhook_event.py diff --git a/.stats.yml b/.stats.yml index 3bba6b5..8f80ac6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-f83963fba7bea9fcb404a2a9f23e1dc72d095a723e3f0d80908d9403418defed.yml -openapi_spec_hash: 338aed81ffea9410ecd43393094977bf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-27a36dbdb4599ced6b71693d6caaeaab48d92d0a944d389e63186aade3f53fee.yml +openapi_spec_hash: f18d5563d11ea6c3f33da296d7bfce7b config_hash: 962bbc6791e29202a4e4b66ba9844c83 diff --git a/api.md b/api.md index 31eb8c5..eea65e7 100644 --- a/api.md +++ b/api.md @@ -6,7 +6,6 @@ Types: from miru_server_sdk.types import ( ConfigInstance, ConfigSchema, - ConfigSchemaList, ConfigType, PaginatedList, ConfigInstanceListResponse, @@ -73,5 +72,5 @@ Methods: Types: ```python -from miru_server_sdk.types import DeploymentValidateWebhookEvent, UnwrapWebhookEvent +from miru_server_sdk.types import UnwrapWebhookEvent ``` diff --git a/src/miru_server_sdk/types/__init__.py b/src/miru_server_sdk/types/__init__.py index 3bcdf2d..c4698f3 100644 --- a/src/miru_server_sdk/types/__init__.py +++ b/src/miru_server_sdk/types/__init__.py @@ -2,8 +2,6 @@ from __future__ import annotations -from . import release, deployment, config_type, config_schema, config_instance, deployment_validate_response -from .. import _compat from .device import Device as Device from .release import Release as Release from .deployment import Deployment as Deployment @@ -11,13 +9,11 @@ from .config_schema import ConfigSchema as ConfigSchema from .paginated_list import PaginatedList as PaginatedList from .config_instance import ConfigInstance as ConfigInstance -from .config_schema_list import ConfigSchemaList as ConfigSchemaList from .device_list_params import DeviceListParams as DeviceListParams from .release_list_params import ReleaseListParams as ReleaseListParams from .device_create_params import DeviceCreateParams as DeviceCreateParams from .device_list_response import DeviceListResponse as DeviceListResponse from .device_update_params import DeviceUpdateParams as DeviceUpdateParams -from .unwrap_webhook_event import UnwrapWebhookEvent as UnwrapWebhookEvent from .release_list_response import ReleaseListResponse as ReleaseListResponse from .deployment_list_params import DeploymentListParams as DeploymentListParams from .device_delete_response import DeviceDeleteResponse as DeviceDeleteResponse @@ -30,29 +26,9 @@ from .deployment_validate_response import DeploymentValidateResponse as DeploymentValidateResponse from .config_instance_list_response import ConfigInstanceListResponse as ConfigInstanceListResponse from .config_instance_retrieve_params import ConfigInstanceRetrieveParams as ConfigInstanceRetrieveParams -from .deployment_validate_webhook_event import DeploymentValidateWebhookEvent as DeploymentValidateWebhookEvent from .device_create_activation_token_params import ( DeviceCreateActivationTokenParams as DeviceCreateActivationTokenParams, ) from .device_create_activation_token_response import ( DeviceCreateActivationTokenResponse as DeviceCreateActivationTokenResponse, ) - -# Rebuild cyclical models only after all modules are imported. -# This ensures that, when building the deferred (due to cyclical references) model schema, -# Pydantic can resolve the necessary references. -# See: https://github.com/pydantic/pydantic/issues/11250 for more context. -if _compat.PYDANTIC_V1: - config_instance.ConfigInstance.update_forward_refs() # type: ignore - config_schema.ConfigSchema.update_forward_refs() # type: ignore - config_type.ConfigType.update_forward_refs() # type: ignore - deployment.Deployment.update_forward_refs() # type: ignore - deployment_validate_response.DeploymentValidateResponse.update_forward_refs() # type: ignore - release.Release.update_forward_refs() # type: ignore -else: - config_instance.ConfigInstance.model_rebuild(_parent_namespace_depth=0) - config_schema.ConfigSchema.model_rebuild(_parent_namespace_depth=0) - config_type.ConfigType.model_rebuild(_parent_namespace_depth=0) - deployment.Deployment.model_rebuild(_parent_namespace_depth=0) - deployment_validate_response.DeploymentValidateResponse.model_rebuild(_parent_namespace_depth=0) - release.Release.model_rebuild(_parent_namespace_depth=0) diff --git a/src/miru_server_sdk/types/config_instance.py b/src/miru_server_sdk/types/config_instance.py index f409c02..bed0582 100644 --- a/src/miru_server_sdk/types/config_instance.py +++ b/src/miru_server_sdk/types/config_instance.py @@ -1,13 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import Optional from datetime import datetime from typing_extensions import Literal from .device import Device from .._models import BaseModel +from .config_type import ConfigType +from .config_schema import ConfigSchema __all__ = ["ConfigInstance"] @@ -27,7 +27,7 @@ class ConfigInstance(BaseModel): be deployed and is not active on the device """ - config_schema: Optional["ConfigSchema"] = None + config_schema: Optional[ConfigSchema] = None """Expand the config schema using 'expand[]=config_schema' in the query string.""" config_schema_id: str @@ -90,9 +90,5 @@ class ConfigInstance(BaseModel): updated_at: datetime """The timestamp of when the config instance was last updated.""" - config_type: Optional["ConfigType"] = None + config_type: Optional[ConfigType] = None """Expand the config type using 'expand[]=config_type' in the query string.""" - - -from .config_type import ConfigType -from .config_schema import ConfigSchema diff --git a/src/miru_server_sdk/types/config_instance_list_response.py b/src/miru_server_sdk/types/config_instance_list_response.py index 092d242..91cbe0c 100644 --- a/src/miru_server_sdk/types/config_instance_list_response.py +++ b/src/miru_server_sdk/types/config_instance_list_response.py @@ -1,16 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List from .paginated_list import PaginatedList +from .config_instance import ConfigInstance __all__ = ["ConfigInstanceListResponse"] class ConfigInstanceListResponse(PaginatedList): - data: List["ConfigInstance"] - - -from .config_instance import ConfigInstance + data: List[ConfigInstance] diff --git a/src/miru_server_sdk/types/config_schema.py b/src/miru_server_sdk/types/config_schema.py index b9dd0b0..00b4f98 100644 --- a/src/miru_server_sdk/types/config_schema.py +++ b/src/miru_server_sdk/types/config_schema.py @@ -1,12 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import Optional from datetime import datetime from typing_extensions import Literal from .._models import BaseModel +from .config_type import ConfigType __all__ = ["ConfigSchema"] @@ -15,7 +14,7 @@ class ConfigSchema(BaseModel): id: str """ID of the config schema.""" - config_type: Optional["ConfigType"] = None + config_type: Optional[ConfigType] = None """Expand the config type using 'expand[]=config_type' in the query string.""" config_type_id: str @@ -44,6 +43,3 @@ class ConfigSchema(BaseModel): version: int """Config schema version for the config type.""" - - -from .config_type import ConfigType diff --git a/src/miru_server_sdk/types/config_schema_list.py b/src/miru_server_sdk/types/config_schema_list.py deleted file mode 100644 index aab913c..0000000 --- a/src/miru_server_sdk/types/config_schema_list.py +++ /dev/null @@ -1,16 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import List - -from .paginated_list import PaginatedList - -__all__ = ["ConfigSchemaList"] - - -class ConfigSchemaList(PaginatedList): - data: List["ConfigSchema"] - - -from .config_schema import ConfigSchema diff --git a/src/miru_server_sdk/types/config_type.py b/src/miru_server_sdk/types/config_type.py index 6c0cf01..be958c5 100644 --- a/src/miru_server_sdk/types/config_type.py +++ b/src/miru_server_sdk/types/config_type.py @@ -1,8 +1,5 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - -from typing import Optional from datetime import datetime from typing_extensions import Literal @@ -15,9 +12,6 @@ class ConfigType(BaseModel): id: str """ID of the config type.""" - config_schemas: Optional["ConfigSchemaList"] = None - """Expand the config schemas using 'expand[]=config_schemas' in the query string.""" - created_at: datetime """Timestamp of when the config type was created.""" @@ -31,6 +25,3 @@ class ConfigType(BaseModel): updated_at: datetime """Timestamp of when the config type was last updated.""" - - -from .config_schema_list import ConfigSchemaList diff --git a/src/miru_server_sdk/types/deployment.py b/src/miru_server_sdk/types/deployment.py index ac4496c..8ee38f5 100644 --- a/src/miru_server_sdk/types/deployment.py +++ b/src/miru_server_sdk/types/deployment.py @@ -1,13 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List, Optional from datetime import datetime from typing_extensions import Literal from .device import Device +from .release import Release from .._models import BaseModel +from .config_instance import ConfigInstance __all__ = ["Deployment"] @@ -32,7 +32,7 @@ class Deployment(BaseModel): deployed and is not active on the device """ - config_instances: Optional[List["ConfigInstance"]] = None + config_instances: Optional[List[ConfigInstance]] = None """ Expand the config instances using 'expand[]=config_instances' in the query string. @@ -62,7 +62,7 @@ class Deployment(BaseModel): object: Literal["deployment"] - release: Optional["Release"] = None + release: Optional[Release] = None """Expand the release using 'expand[]=release' in the query string.""" release_id: str @@ -91,7 +91,3 @@ class Deployment(BaseModel): updated_at: datetime """Timestamp of when the device release was last updated.""" - - -from .release import Release -from .config_instance import ConfigInstance diff --git a/src/miru_server_sdk/types/deployment_list_response.py b/src/miru_server_sdk/types/deployment_list_response.py index ae0ccb9..7330abf 100644 --- a/src/miru_server_sdk/types/deployment_list_response.py +++ b/src/miru_server_sdk/types/deployment_list_response.py @@ -1,16 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List +from .deployment import Deployment from .paginated_list import PaginatedList __all__ = ["DeploymentListResponse"] class DeploymentListResponse(PaginatedList): - data: List["Deployment"] - - -from .deployment import Deployment + data: List[Deployment] diff --git a/src/miru_server_sdk/types/deployment_validate_response.py b/src/miru_server_sdk/types/deployment_validate_response.py index 77a4e71..d7365c1 100644 --- a/src/miru_server_sdk/types/deployment_validate_response.py +++ b/src/miru_server_sdk/types/deployment_validate_response.py @@ -1,22 +1,18 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing_extensions import Literal from .._models import BaseModel +from .deployment import Deployment __all__ = ["DeploymentValidateResponse"] class DeploymentValidateResponse(BaseModel): - deployment: "Deployment" + deployment: Deployment effect: Literal["none", "stage", "deploy", "reject", "void"] """The effect of the validation.""" message: str """A message explaining the validation effect.""" - - -from .deployment import Deployment diff --git a/src/miru_server_sdk/types/deployment_validate_webhook_event.py b/src/miru_server_sdk/types/deployment_validate_webhook_event.py deleted file mode 100644 index 2d96225..0000000 --- a/src/miru_server_sdk/types/deployment_validate_webhook_event.py +++ /dev/null @@ -1,42 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from datetime import datetime -from typing_extensions import Literal - -from .._models import BaseModel - -__all__ = ["DeploymentValidateWebhookEvent", "Data", "DataDeployment"] - - -class DataDeployment(BaseModel): - id: str - """ID of the deployment""" - - created_at: datetime - """Timestamp of when the device release was created""" - - device_id: str - """ID of the device""" - - object: Literal["deployment"] - - release_id: str - """The version of the release""" - - -class Data(BaseModel): - deployment: DataDeployment - - -class DeploymentValidateWebhookEvent(BaseModel): - data: Data - """The data associated with the event""" - - object: Literal["event"] - """The object that occurred""" - - timestamp: datetime - """The timestamp of the event""" - - type: Literal["deployment.validate"] - """The type of event""" diff --git a/src/miru_server_sdk/types/release.py b/src/miru_server_sdk/types/release.py index a4bb386..c2756ad 100644 --- a/src/miru_server_sdk/types/release.py +++ b/src/miru_server_sdk/types/release.py @@ -1,12 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List, Optional from datetime import datetime from typing_extensions import Literal from .._models import BaseModel +from .config_schema import ConfigSchema __all__ = ["Release"] @@ -15,7 +14,7 @@ class Release(BaseModel): id: str """ID of the release.""" - config_schemas: Optional[List["ConfigSchema"]] = None + config_schemas: Optional[List[ConfigSchema]] = None """Expand the config schemas using 'expand[]=config_schemas' in the query string.""" created_at: datetime @@ -28,6 +27,3 @@ class Release(BaseModel): version: str """The version of the release.""" - - -from .config_schema import ConfigSchema diff --git a/src/miru_server_sdk/types/release_list_response.py b/src/miru_server_sdk/types/release_list_response.py index 224c9e1..1f3aa1f 100644 --- a/src/miru_server_sdk/types/release_list_response.py +++ b/src/miru_server_sdk/types/release_list_response.py @@ -1,16 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from __future__ import annotations - from typing import List +from .release import Release from .paginated_list import PaginatedList __all__ = ["ReleaseListResponse"] class ReleaseListResponse(PaginatedList): - data: List["Release"] - - -from .release import Release + data: List[Release] diff --git a/src/miru_server_sdk/types/unwrap_webhook_event.py b/src/miru_server_sdk/types/unwrap_webhook_event.py deleted file mode 100644 index fc66adb..0000000 --- a/src/miru_server_sdk/types/unwrap_webhook_event.py +++ /dev/null @@ -1,42 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from datetime import datetime -from typing_extensions import Literal - -from .._models import BaseModel - -__all__ = ["UnwrapWebhookEvent", "Data", "DataDeployment"] - - -class DataDeployment(BaseModel): - id: str - """ID of the deployment""" - - created_at: datetime - """Timestamp of when the device release was created""" - - device_id: str - """ID of the device""" - - object: Literal["deployment"] - - release_id: str - """The version of the release""" - - -class Data(BaseModel): - deployment: DataDeployment - - -class UnwrapWebhookEvent(BaseModel): - data: Data - """The data associated with the event""" - - object: Literal["event"] - """The object that occurred""" - - timestamp: datetime - """The timestamp of the event""" - - type: Literal["deployment.validate"] - """The type of event""" From 65482bfc6de4dff0815564cc7a4a9bed4453bd0a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:13:09 +0000 Subject: [PATCH 4/6] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 8f80ac6..7f4f646 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-27a36dbdb4599ced6b71693d6caaeaab48d92d0a944d389e63186aade3f53fee.yml openapi_spec_hash: f18d5563d11ea6c3f33da296d7bfce7b -config_hash: 962bbc6791e29202a4e4b66ba9844c83 +config_hash: c1d1c4ffd4bc69023d6bf98b1bbc4304 From ec481f97b1f760d96690958db51cf6fb39ebb3a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:19:50 +0000 Subject: [PATCH 5/6] fix: stainless config to have 'webhooks' parameter --- .stats.yml | 4 +- api.md | 2 +- src/miru_server_sdk/types/__init__.py | 2 + .../deployment_validate_webhook_event.py | 42 +++++++++++++++++++ .../types/unwrap_webhook_event.py | 42 +++++++++++++++++++ 5 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 src/miru_server_sdk/types/deployment_validate_webhook_event.py create mode 100644 src/miru_server_sdk/types/unwrap_webhook_event.py diff --git a/.stats.yml b/.stats.yml index 7f4f646..3489822 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-27a36dbdb4599ced6b71693d6caaeaab48d92d0a944d389e63186aade3f53fee.yml -openapi_spec_hash: f18d5563d11ea6c3f33da296d7bfce7b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-e8b887c478291aecbbf06e532903242a5d5ff682a2a6814921bb770c97a1753d.yml +openapi_spec_hash: b15141c2e0e81b8029c620d4aef4188c config_hash: c1d1c4ffd4bc69023d6bf98b1bbc4304 diff --git a/api.md b/api.md index eea65e7..79b1962 100644 --- a/api.md +++ b/api.md @@ -72,5 +72,5 @@ Methods: Types: ```python -from miru_server_sdk.types import UnwrapWebhookEvent +from miru_server_sdk.types import DeploymentValidateWebhookEvent, UnwrapWebhookEvent ``` diff --git a/src/miru_server_sdk/types/__init__.py b/src/miru_server_sdk/types/__init__.py index c4698f3..65e3c23 100644 --- a/src/miru_server_sdk/types/__init__.py +++ b/src/miru_server_sdk/types/__init__.py @@ -14,6 +14,7 @@ from .device_create_params import DeviceCreateParams as DeviceCreateParams from .device_list_response import DeviceListResponse as DeviceListResponse from .device_update_params import DeviceUpdateParams as DeviceUpdateParams +from .unwrap_webhook_event import UnwrapWebhookEvent as UnwrapWebhookEvent from .release_list_response import ReleaseListResponse as ReleaseListResponse from .deployment_list_params import DeploymentListParams as DeploymentListParams from .device_delete_response import DeviceDeleteResponse as DeviceDeleteResponse @@ -26,6 +27,7 @@ from .deployment_validate_response import DeploymentValidateResponse as DeploymentValidateResponse from .config_instance_list_response import ConfigInstanceListResponse as ConfigInstanceListResponse from .config_instance_retrieve_params import ConfigInstanceRetrieveParams as ConfigInstanceRetrieveParams +from .deployment_validate_webhook_event import DeploymentValidateWebhookEvent as DeploymentValidateWebhookEvent from .device_create_activation_token_params import ( DeviceCreateActivationTokenParams as DeviceCreateActivationTokenParams, ) diff --git a/src/miru_server_sdk/types/deployment_validate_webhook_event.py b/src/miru_server_sdk/types/deployment_validate_webhook_event.py new file mode 100644 index 0000000..2d96225 --- /dev/null +++ b/src/miru_server_sdk/types/deployment_validate_webhook_event.py @@ -0,0 +1,42 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from datetime import datetime +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["DeploymentValidateWebhookEvent", "Data", "DataDeployment"] + + +class DataDeployment(BaseModel): + id: str + """ID of the deployment""" + + created_at: datetime + """Timestamp of when the device release was created""" + + device_id: str + """ID of the device""" + + object: Literal["deployment"] + + release_id: str + """The version of the release""" + + +class Data(BaseModel): + deployment: DataDeployment + + +class DeploymentValidateWebhookEvent(BaseModel): + data: Data + """The data associated with the event""" + + object: Literal["event"] + """The object that occurred""" + + timestamp: datetime + """The timestamp of the event""" + + type: Literal["deployment.validate"] + """The type of event""" diff --git a/src/miru_server_sdk/types/unwrap_webhook_event.py b/src/miru_server_sdk/types/unwrap_webhook_event.py new file mode 100644 index 0000000..fc66adb --- /dev/null +++ b/src/miru_server_sdk/types/unwrap_webhook_event.py @@ -0,0 +1,42 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from datetime import datetime +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["UnwrapWebhookEvent", "Data", "DataDeployment"] + + +class DataDeployment(BaseModel): + id: str + """ID of the deployment""" + + created_at: datetime + """Timestamp of when the device release was created""" + + device_id: str + """ID of the device""" + + object: Literal["deployment"] + + release_id: str + """The version of the release""" + + +class Data(BaseModel): + deployment: DataDeployment + + +class UnwrapWebhookEvent(BaseModel): + data: Data + """The data associated with the event""" + + object: Literal["event"] + """The object that occurred""" + + timestamp: datetime + """The timestamp of the event""" + + type: Literal["deployment.validate"] + """The type of event""" From 437c389c823f2fa683f494b03d53a9017b2e6ae7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:20:07 +0000 Subject: [PATCH 6/6] release: 0.6.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/miru_server_sdk/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4208b5c..ac03171 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.6.0" + ".": "0.6.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e5bbce..90a9c86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.6.1 (2025-10-21) + +Full Changelog: [v0.6.0...v0.6.1](https://github.com/miruml/python-server-sdk/compare/v0.6.0...v0.6.1) + +### Bug Fixes + +* stainless config to have 'webhooks' parameter ([ec481f9](https://github.com/miruml/python-server-sdk/commit/ec481f97b1f760d96690958db51cf6fb39ebb3a0)) + + +### Refactors + +* **api:** remove 'config_schemas' expansion on config types ([bb3bc05](https://github.com/miruml/python-server-sdk/commit/bb3bc05defb45180a838c0e6f91d42f7669e0f7f)) + ## 0.6.0 (2025-10-21) Full Changelog: [v0.5.0...v0.6.0](https://github.com/miruml/python-server-sdk/compare/v0.5.0...v0.6.0) diff --git a/pyproject.toml b/pyproject.toml index ef9b568..7beb352 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "miru_server_sdk" -version = "0.6.0" +version = "0.6.1" description = "The official Python library for the miru API" dynamic = ["readme"] license = "MIT" diff --git a/src/miru_server_sdk/_version.py b/src/miru_server_sdk/_version.py index 7d08993..0c10485 100644 --- a/src/miru_server_sdk/_version.py +++ b/src/miru_server_sdk/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "miru_server_sdk" -__version__ = "0.6.0" # x-release-please-version +__version__ = "0.6.1" # x-release-please-version