@pidgeon-ai/sdk 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/index.d.cts +2208 -12
- package/dist/index.d.ts +2208 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ the two would publish a release for every unrelated product deploy.
|
|
|
7
7
|
Semver applies to **this package's own surface** — the exported names, the
|
|
8
8
|
call shapes, the result shape — not to the API behind it.
|
|
9
9
|
|
|
10
|
+
## 1.19.0 — every status is declared, and Python raises
|
|
11
|
+
|
|
12
|
+
The contract declares every status a route can answer with, read off the
|
|
13
|
+
code rather than written from memory: `400`, `403`, `409`, `500` and `503`
|
|
14
|
+
on every operation beside the `401`, `404` and `429` it had, `402` where a
|
|
15
|
+
plan can say no, and `410` on calendar events and `mailboxesChanges`. In
|
|
16
|
+
this package that widens each operation's error type; no request or success
|
|
17
|
+
shape changes, and `error` held every failure already.
|
|
18
|
+
|
|
19
|
+
**The Python client raises.** A status from 400 up raises
|
|
20
|
+
`pidgeon.errors.PidgeonError`, carrying `status_code`, `code`, `message`,
|
|
21
|
+
`field` and `retry_after`, instead of returning `Error` for a declared status
|
|
22
|
+
and `None` for any other. A call returns its success model or raises, so a
|
|
23
|
+
refused send can no longer pass for a sent one. Code that checked
|
|
24
|
+
`isinstance(result, Error)` sees the exception instead.
|
|
25
|
+
|
|
26
|
+
**The CLI** (1.8.4) exits 1 on a refusal and prints `403 abuse_blocked: …`;
|
|
27
|
+
it exited 2 with the sentence alone, as if the flags were wrong.
|
|
28
|
+
|
|
10
29
|
## 1.18.0 — the key you mint comes back with its token
|
|
11
30
|
|
|
12
31
|
`POST /api-keys` is typed as `ApiKeyCreated`: the key plus its `token`,
|