Skip to content

Commit 62e74f3

Browse files
authored
Merge pull request #8 from miruml/release-please--branches--main--changes--next
release: 0.6.0
2 parents 9b9ab8e + 809c61d commit 62e74f3

File tree

12 files changed

+85
-48
lines changed

12 files changed

+85
-48
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.5.0"
2+
".": "0.6.0"
33
}

.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-d5d0de741a61bae4e957197c6fb0859ee5880ddab98616469f4414dc373c9d7f.yml
3-
openapi_spec_hash: 10d91729a0e0430fd2a6c68b2c81f886
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-f83963fba7bea9fcb404a2a9f23e1dc72d095a723e3f0d80908d9403418defed.yml
3+
openapi_spec_hash: 338aed81ffea9410ecd43393094977bf
44
config_hash: 12fa4b9e99bf5317506a12aa9fecf73b

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Changelog
22

3+
## 0.6.0 (2025-10-21)
4+
5+
Full Changelog: [v0.5.0...v0.6.0](https://github.com/miruml/python-server-sdk/compare/v0.5.0...v0.6.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([1f24c3f](https://github.com/miruml/python-server-sdk/commit/1f24c3f238e13344e158a909a8444fe6a02534ec))
10+
* **api:** manual updates ([616466d](https://github.com/miruml/python-server-sdk/commit/616466d196871cb65ad48ecccf292be3596043b1))
11+
* **api:** uat environment ([67e2b55](https://github.com/miruml/python-server-sdk/commit/67e2b5530fadfbd61d67e85d4fc5b4c363558fd9))
12+
* **api:** update to v0.1.0 ([af3571c](https://github.com/miruml/python-server-sdk/commit/af3571c82e8ef891ca6c891cb4361e342a2f8fec))
13+
14+
15+
### Bug Fixes
16+
17+
* **api:** expansions to use bracket format ([0344365](https://github.com/miruml/python-server-sdk/commit/03443654ab20a279be8594224358a15b746cfd01))
18+
* **api:** restore webhook event models ([3e556df](https://github.com/miruml/python-server-sdk/commit/3e556dfa6728fd8a0e6e2206b6d5e38200f8325e))
19+
20+
21+
### Chores
22+
23+
* bump `httpx-aiohttp` version to 0.1.9 ([c54533f](https://github.com/miruml/python-server-sdk/commit/c54533f4c9d33df7720a786ef80f275d7bfd2e83))
24+
* **internal:** detect missing future annotations with ruff ([ea21d88](https://github.com/miruml/python-server-sdk/commit/ea21d88960b9babe76a058adc0446205f909317f))
25+
* update SDK settings ([e7bd9a6](https://github.com/miruml/python-server-sdk/commit/e7bd9a6b432ceeb9e9746577c0588bc3d8d6d81c))
26+
* update SDK settings ([e6ec403](https://github.com/miruml/python-server-sdk/commit/e6ec4031305e950d8f61d18a55344de0e36f752b))
27+
28+
29+
### Documentation
30+
31+
* update docs ([c152552](https://github.com/miruml/python-server-sdk/commit/c15255242bb7a5051d8618682afd0b981fe32396))
32+
33+
34+
### Styles
35+
36+
* alphabetize webhook imports ([944a3ef](https://github.com/miruml/python-server-sdk/commit/944a3ef1b90d1efcff434ad218237107fb216a56))
37+
38+
39+
### Refactors
40+
41+
* **api:** rename miru-server to miru ([163c465](https://github.com/miruml/python-server-sdk/commit/163c4659c64f6b954d9b91e7b340554f0919efa6))
42+
* **api:** revert package name to miru_server_sdk ([0c8b7d7](https://github.com/miruml/python-server-sdk/commit/0c8b7d74ae67df4005fc069c4575ffae78b975c6))
43+
* webhook payload to be type 'Any' instead of 'string' ([d0f5bdf](https://github.com/miruml/python-server-sdk/commit/d0f5bdf96c37812e15ddba85ce45e898491546ae))
44+
345
## 0.5.0 (2025-10-07)
446

547
Full Changelog: [v0.4.1...v0.5.0](https://github.com/miruml/python-server-sdk/compare/v0.4.1...v0.5.0)

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "miru_server_sdk"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
description = "The official Python library for the miru API"
55
dynamic = ["readme"]
66
license = "MIT"
@@ -39,7 +39,7 @@ Homepage = "https://github.com/miruml/python-server-sdk"
3939
Repository = "https://github.com/miruml/python-server-sdk"
4040

4141
[project.optional-dependencies]
42-
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
42+
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
4343

4444
[tool.rye]
4545
managed = true
@@ -224,6 +224,8 @@ select = [
224224
"B",
225225
# remove unused imports
226226
"F401",
227+
# check for missing future annotations
228+
"FA102",
227229
# bare except statements
228230
"E722",
229231
# unused arguments
@@ -246,6 +248,8 @@ unfixable = [
246248
"T203",
247249
]
248250

251+
extend-safe-fixes = ["FA102"]
252+
249253
[tool.ruff.lint.flake8-tidy-imports.banned-api]
250254
"functools.lru_cache".msg = "This function does not retain type information for the wrapped function's arguments; The `lru_cache` function from `_utils` should be used instead"
251255

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ httpx==0.28.1
5656
# via httpx-aiohttp
5757
# via miru-server-sdk
5858
# via respx
59-
httpx-aiohttp==0.1.8
59+
httpx-aiohttp==0.1.9
6060
# via miru-server-sdk
6161
idna==3.4
6262
# via anyio

requirements.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ httpcore==1.0.9
4343
httpx==0.28.1
4444
# via httpx-aiohttp
4545
# via miru-server-sdk
46-
httpx-aiohttp==0.1.8
46+
httpx-aiohttp==0.1.9
4747
# via miru-server-sdk
4848
idna==3.4
4949
# via anyio

src/miru_server_sdk/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "miru_server_sdk"
4-
__version__ = "0.5.0" # x-release-please-version
4+
__version__ = "0.6.0" # x-release-please-version

src/miru_server_sdk/resources/deployments.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def create(
5858
device_id: str,
5959
new_config_instances: Iterable[deployment_create_params.NewConfigInstance],
6060
release_id: str,
61-
target_status: Literal["pending", "approved", "deployed"],
61+
target_status: Literal["staged", "deployed"],
6262
expand: List[Literal["device", "release", "config_instances"]] | Omit = omit,
6363
patch_source_id: str | Omit = omit,
6464
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -86,10 +86,8 @@ def create(
8686
8787
target_status: Desired state of the deployment.
8888
89-
- Pending: staged for deployment but not yet approved. Deployments can only be
90-
staged if their release is not the current release for the device.
91-
- Approved: staged and approved for deployment. Deployments can only be staged
92-
if their release is not the current release for the device.
89+
- Staged: ready for deployment. Deployments can only be staged if their release
90+
is not the current release for the device.
9391
- Deployed: deployed to the device. Deployments can only be deployed if their
9492
release is the device's current release.
9593
@@ -175,7 +173,7 @@ def list(
175173
self,
176174
*,
177175
id: str | Omit = omit,
178-
activity_status: Literal["validating", "pending", "approved", "queued", "deployed", "removing", "archived"]
176+
activity_status: Literal["validating", "needs_review", "staged", "queued", "deployed", "removing", "archived"]
179177
| Omit = omit,
180178
device_id: str | Omit = omit,
181179
error_status: Literal["none", "failed", "retrying"] | Omit = omit,
@@ -184,7 +182,7 @@ def list(
184182
offset: int | Omit = omit,
185183
order_by: Literal["id:asc", "id:desc", "created_at:desc", "created_at:asc"] | Omit = omit,
186184
release_id: str | Omit = omit,
187-
target_status: Literal["pending", "approved", "deployed", "archived"] | Omit = omit,
185+
target_status: Literal["staged", "deployed", "archived"] | Omit = omit,
188186
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
189187
# The extra values given here take precedence over values defined on the client or passed to this method.
190188
extra_headers: Headers | None = None,
@@ -329,7 +327,7 @@ async def create(
329327
device_id: str,
330328
new_config_instances: Iterable[deployment_create_params.NewConfigInstance],
331329
release_id: str,
332-
target_status: Literal["pending", "approved", "deployed"],
330+
target_status: Literal["staged", "deployed"],
333331
expand: List[Literal["device", "release", "config_instances"]] | Omit = omit,
334332
patch_source_id: str | Omit = omit,
335333
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -357,10 +355,8 @@ async def create(
357355
358356
target_status: Desired state of the deployment.
359357
360-
- Pending: staged for deployment but not yet approved. Deployments can only be
361-
staged if their release is not the current release for the device.
362-
- Approved: staged and approved for deployment. Deployments can only be staged
363-
if their release is not the current release for the device.
358+
- Staged: ready for deployment. Deployments can only be staged if their release
359+
is not the current release for the device.
364360
- Deployed: deployed to the device. Deployments can only be deployed if their
365361
release is the device's current release.
366362
@@ -448,7 +444,7 @@ async def list(
448444
self,
449445
*,
450446
id: str | Omit = omit,
451-
activity_status: Literal["validating", "pending", "approved", "queued", "deployed", "removing", "archived"]
447+
activity_status: Literal["validating", "needs_review", "staged", "queued", "deployed", "removing", "archived"]
452448
| Omit = omit,
453449
device_id: str | Omit = omit,
454450
error_status: Literal["none", "failed", "retrying"] | Omit = omit,
@@ -457,7 +453,7 @@ async def list(
457453
offset: int | Omit = omit,
458454
order_by: Literal["id:asc", "id:desc", "created_at:desc", "created_at:asc"] | Omit = omit,
459455
release_id: str | Omit = omit,
460-
target_status: Literal["pending", "approved", "deployed", "archived"] | Omit = omit,
456+
target_status: Literal["staged", "deployed", "archived"] | Omit = omit,
461457
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
462458
# The extra values given here take precedence over values defined on the client or passed to this method.
463459
extra_headers: Headers | None = None,

src/miru_server_sdk/types/deployment.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ class Deployment(BaseModel):
1616
id: str
1717
"""ID of the deployment."""
1818

19-
activity_status: Literal["validating", "pending", "approved", "queued", "deployed", "removing", "archived"]
19+
activity_status: Literal["validating", "needs_review", "staged", "queued", "deployed", "removing", "archived"]
2020
"""Last known activity state of the deployment.
2121
2222
- Validating: the deployment's config instances are being validated with user's
2323
custom validation
24-
- Pending: staged for deployment but not yet approved; requires approval for
25-
deployment to occur
26-
- Approved: staged and approved for deployment
24+
- Needs review: deployment needs to be reviewed before it can be deployed
25+
- Staged: is ready to be deployed
2726
- Queued: the deployment's config instances are waiting to be received by the
2827
device; will be deployed as soon as the device is online
2928
- Deployed: the deployment's config instances are currently available for
@@ -70,7 +69,7 @@ class Deployment(BaseModel):
7069
"""The version of the release."""
7170

7271
status: Literal[
73-
"validating", "pending", "approved", "queued", "deployed", "removing", "archived", "failed", "retrying"
72+
"validating", "needs_review", "staged", "queued", "deployed", "removing", "archived", "failed", "retrying"
7473
]
7574
"""
7675
This status merges the 'activity_status' and 'error_status' fields, with error
@@ -80,12 +79,10 @@ class Deployment(BaseModel):
8079
status is 'deployed', the status is 'deployed'.
8180
"""
8281

83-
target_status: Literal["pending", "approved", "deployed", "archived"]
82+
target_status: Literal["staged", "deployed", "archived"]
8483
"""Desired state of the deployment.
8584
86-
- Pending: staged for deployment but not yet approved; requires approval for
87-
deployment to occur
88-
- Approved: staged and approved for deployment
85+
- Staged: is ready to be deployed
8986
- Deployed: all config instances part of the deployment are available for
9087
consumption on the device
9188
- Archived: the deployment is available for historical reference but cannot be

src/miru_server_sdk/types/deployment_create_params.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ class DeploymentCreateParams(TypedDict, total=False):
2727
release_id: Required[str]
2828
"""The release ID which this deployment adheres to."""
2929

30-
target_status: Required[Literal["pending", "approved", "deployed"]]
30+
target_status: Required[Literal["staged", "deployed"]]
3131
"""Desired state of the deployment.
3232
33-
- Pending: staged for deployment but not yet approved. Deployments can only be
34-
staged if their release is not the current release for the device.
35-
- Approved: staged and approved for deployment. Deployments can only be staged
36-
if their release is not the current release for the device.
33+
- Staged: ready for deployment. Deployments can only be staged if their release
34+
is not the current release for the device.
3735
- Deployed: deployed to the device. Deployments can only be deployed if their
3836
release is the device's current release.
3937

0 commit comments

Comments
 (0)