@pidgeon-ai/sdk 1.8.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 CHANGED
@@ -9,6 +9,32 @@ 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
+
30
+ ## 1.9.0 — export over the API
31
+
32
+ **`exportMail`** (`GET /v1/export`) streams every message the key can read as
33
+ one `application/mbox` file — the export the dashboard has always offered,
34
+ now for software. Pass `identity_id` for one address. Each message carries
35
+ `X-Pidgeon-Mailbox`, so one file holding several addresses can be split
36
+ again. Four an hour per workspace.
37
+
12
38
  ## 1.8.0 — wait for a message, and read the code out of it
13
39
 
14
40
  **`messagesAwait`** (`GET /v1/messages/await`) holds the request open until a
package/dist/index.cjs CHANGED
@@ -62,7 +62,9 @@ __export(index_exports, {
62
62
  draftsUpdate: () => draftsUpdate,
63
63
  eventsGet: () => eventsGet,
64
64
  eventsList: () => eventsList,
65
+ eventsSocket: () => eventsSocket,
65
66
  eventsStream: () => eventsStream,
67
+ exportMail: () => exportMail,
66
68
  identitiesAccessCreate: () => identitiesAccessCreate,
67
69
  identitiesAccessDelete: () => identitiesAccessDelete,
68
70
  identitiesAccessGet: () => identitiesAccessGet,
@@ -1227,6 +1229,11 @@ var messagesRaw = (options) => (options.client ?? client).get({
1227
1229
  url: "/messages/{id}/raw",
1228
1230
  ...options
1229
1231
  });
1232
+ var exportMail = (options) => (options?.client ?? client).get({
1233
+ security: [{ scheme: "bearer", type: "http" }],
1234
+ url: "/export",
1235
+ ...options
1236
+ });
1230
1237
  var threadsList = (options) => (options?.client ?? client).get({
1231
1238
  security: [{ scheme: "bearer", type: "http" }],
1232
1239
  url: "/threads",
@@ -1414,6 +1421,11 @@ var eventsList = (options) => (options?.client ?? client).get({
1414
1421
  url: "/events",
1415
1422
  ...options
1416
1423
  });
1424
+ var eventsSocket = (options) => (options?.client ?? client).get({
1425
+ security: [{ scheme: "bearer", type: "http" }],
1426
+ url: "/events/socket",
1427
+ ...options
1428
+ });
1417
1429
  var eventsStream = (options) => (options?.client ?? client).sse.get({
1418
1430
  security: [{ scheme: "bearer", type: "http" }],
1419
1431
  url: "/events/stream",
@@ -1829,7 +1841,9 @@ function sleep(ms, signal) {
1829
1841
  draftsUpdate,
1830
1842
  eventsGet,
1831
1843
  eventsList,
1844
+ eventsSocket,
1832
1845
  eventsStream,
1846
+ exportMail,
1833
1847
  identitiesAccessCreate,
1834
1848
  identitiesAccessDelete,
1835
1849
  identitiesAccessGet,