Skip to content

Commit 12513fb

Browse files
author
bird-release[bot]
committed
Release v0.43.0 (sdk-python/v0.43.0)
1 parent 7822b70 commit 12513fb

6 files changed

Lines changed: 8079 additions & 11581 deletions

File tree

CHANGELOG.md

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

3+
## 0.43.0
4+
5+
- Mailbox `retention_tier` now accepts `90d` and `1y` on create and update, gated by the organization's plan; a tier the plan does not include is rejected with `E17048`.
6+
37
## 0.42.0
48

59
- **Breaking:** `Webhooks`/`AsyncWebhooks` are constructed as `Webhooks(client, secret)`; a receiver verifies through `Bird(webhook_secret=...)` — no API key required.

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
sync: ## install the package and dev dependencies into a local venv
55
uv sync --extra dev
66

7-
generate: ## regenerate src/bird/_generated from the OpenAPI customer bundle
8-
uv run --with pyyaml python scripts/generate_models.py
7+
# Not a uv task any more: generation left the Python toolchain.
8+
generate: ## regenerate src/bird/_generated from the OpenAPI customer bundle (in-process Go)
9+
../../tools/bin/beak run clients:sdk-python-generate
910

1011
test:
1112
uv run --extra dev pytest

scripts/generate_models.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/usr/bin/env python3
22
"""Generate the Bird Python SDK's wire models from the OpenAPI customer bundle.
33
4+
NOT the generator any more: beak emits bird._generated in-process Go
5+
(tools/beak/gens/sdkpython.go). This is kept as the parity ORACLE the port is
6+
checked against — tools/beak:sdk-python-parity runs it into a temp tree and
7+
compares the two by model surface (scripts/model_diff.py). Editing it changes
8+
what the port is measured against, nothing that ships.
9+
410
Two things this script does by hand, everything else being native generator
511
behavior whose per-flag rationale lives at the call site in ``main``:
612
@@ -15,8 +21,7 @@
1521
AGENTS.md § "Open enums are retyped, and must stay open"; both are load-bearing
1622
for forward compatibility, and ``tests/test_open_enums.py`` pins them.
1723
18-
Run via ``make generate``. Regenerate after the OpenAPI bundle changes; the output
19-
is checked in and guarded by the repo drift gate.
24+
Run by the parity check, not by hand. ``make generate`` now runs beak.
2025
"""
2126

2227
from __future__ import annotations

0 commit comments

Comments
 (0)