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/.stats.yml b/.stats.yml index 6a1f486..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-f83963fba7bea9fcb404a2a9f23e1dc72d095a723e3f0d80908d9403418defed.yml -openapi_spec_hash: 338aed81ffea9410ecd43393094977bf -config_hash: 12fa4b9e99bf5317506a12aa9fecf73b +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/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/api.md b/api.md index 31eb8c5..79b1962 100644 --- a/api.md +++ b/api.md @@ -6,7 +6,6 @@ Types: from miru_server_sdk.types import ( ConfigInstance, ConfigSchema, - ConfigSchemaList, ConfigType, PaginatedList, ConfigInstanceListResponse, 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 diff --git a/src/miru_server_sdk/types/__init__.py b/src/miru_server_sdk/types/__init__.py index 3bcdf2d..65e3c23 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,7 +9,6 @@ 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 @@ -37,22 +34,3 @@ 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/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]