@pidgeon-ai/sdk 1.9.0 → 1.11.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 +18 -0
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -2
- package/dist/index.d.ts +52 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,24 @@ call shapes, the result shape — not to the API behind it.
|
|
|
9
9
|
|
|
10
10
|
## Unreleased
|
|
11
11
|
|
|
12
|
+
## 1.11.0 — a key for one pod
|
|
13
|
+
|
|
14
|
+
`apiKeysCreate` takes `pod_id` in place of `identity_ids`: the key reaches
|
|
15
|
+
every address in that pod, including ones added later, and may create,
|
|
16
|
+
verify and remove that pod's domains — the key a platform hands one of its
|
|
17
|
+
customers. Only a key over the whole account (or an owner, in the dashboard)
|
|
18
|
+
can mint one. Every key now reports `pod_id`, null for keys that are not
|
|
19
|
+
pod keys.
|
|
20
|
+
|
|
21
|
+
## 1.10.0 — events over a WebSocket
|
|
22
|
+
|
|
23
|
+
`GET /v1/events/socket` is the event log over a WebSocket, with the same
|
|
24
|
+
filters and `after` cursor as the stream. The generated `eventsSocket` can
|
|
25
|
+
only show you the contract — open it with a WebSocket client
|
|
26
|
+
(`new WebSocket('wss://pidgeon.ai/api/v1/events/socket')`) and send
|
|
27
|
+
`{"type":"auth","api_key":…}` first if you cannot set a header. The
|
|
28
|
+
protocol is in the reference.
|
|
29
|
+
|
|
12
30
|
## 1.9.0 — export over the API
|
|
13
31
|
|
|
14
32
|
**`exportMail`** (`GET /v1/export`) streams every message the key can read as
|
package/dist/index.cjs
CHANGED
|
@@ -62,6 +62,7 @@ __export(index_exports, {
|
|
|
62
62
|
draftsUpdate: () => draftsUpdate,
|
|
63
63
|
eventsGet: () => eventsGet,
|
|
64
64
|
eventsList: () => eventsList,
|
|
65
|
+
eventsSocket: () => eventsSocket,
|
|
65
66
|
eventsStream: () => eventsStream,
|
|
66
67
|
exportMail: () => exportMail,
|
|
67
68
|
identitiesAccessCreate: () => identitiesAccessCreate,
|
|
@@ -1420,6 +1421,11 @@ var eventsList = (options) => (options?.client ?? client).get({
|
|
|
1420
1421
|
url: "/events",
|
|
1421
1422
|
...options
|
|
1422
1423
|
});
|
|
1424
|
+
var eventsSocket = (options) => (options?.client ?? client).get({
|
|
1425
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1426
|
+
url: "/events/socket",
|
|
1427
|
+
...options
|
|
1428
|
+
});
|
|
1423
1429
|
var eventsStream = (options) => (options?.client ?? client).sse.get({
|
|
1424
1430
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1425
1431
|
url: "/events/stream",
|
|
@@ -1835,6 +1841,7 @@ function sleep(ms, signal) {
|
|
|
1835
1841
|
draftsUpdate,
|
|
1836
1842
|
eventsGet,
|
|
1837
1843
|
eventsList,
|
|
1844
|
+
eventsSocket,
|
|
1838
1845
|
eventsStream,
|
|
1839
1846
|
exportMail,
|
|
1840
1847
|
identitiesAccessCreate,
|