Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.6.0"
".": "0.6.1"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 0 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Types:
from miru_server_sdk.types import (
ConfigInstance,
ConfigSchema,
ConfigSchemaList,
ConfigType,
PaginatedList,
ConfigInstanceListResponse,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/miru_server_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -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
22 changes: 0 additions & 22 deletions src/miru_server_sdk/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

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
from .config_type import ConfigType as ConfigType
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
Expand All @@ -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)
12 changes: 4 additions & 8 deletions src/miru_server_sdk/types/config_instance.py
Original file line number Diff line number Diff line change
@@ -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"]

Expand All @@ -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
Expand Down Expand Up @@ -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
8 changes: 2 additions & 6 deletions src/miru_server_sdk/types/config_instance_list_response.py
Original file line number Diff line number Diff line change
@@ -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]
8 changes: 2 additions & 6 deletions src/miru_server_sdk/types/config_schema.py
Original file line number Diff line number Diff line change
@@ -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"]

Expand All @@ -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
Expand Down Expand Up @@ -44,6 +43,3 @@ class ConfigSchema(BaseModel):

version: int
"""Config schema version for the config type."""


from .config_type import ConfigType
16 changes: 0 additions & 16 deletions src/miru_server_sdk/types/config_schema_list.py

This file was deleted.

9 changes: 0 additions & 9 deletions src/miru_server_sdk/types/config_type.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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."""

Expand All @@ -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
12 changes: 4 additions & 8 deletions src/miru_server_sdk/types/deployment.py
Original file line number Diff line number Diff line change
@@ -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"]

Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
8 changes: 2 additions & 6 deletions src/miru_server_sdk/types/deployment_list_response.py
Original file line number Diff line number Diff line change
@@ -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]
8 changes: 2 additions & 6 deletions src/miru_server_sdk/types/deployment_validate_response.py
Original file line number Diff line number Diff line change
@@ -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
8 changes: 2 additions & 6 deletions src/miru_server_sdk/types/release.py
Original file line number Diff line number Diff line change
@@ -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"]

Expand All @@ -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
Expand All @@ -28,6 +27,3 @@ class Release(BaseModel):

version: str
"""The version of the release."""


from .config_schema import ConfigSchema
8 changes: 2 additions & 6 deletions src/miru_server_sdk/types/release_list_response.py
Original file line number Diff line number Diff line change
@@ -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]