@pidgeon-ai/sdk 1.8.0 → 1.9.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,14 @@ call shapes, the result shape — not to the API behind it.
9
9
 
10
10
  ## Unreleased
11
11
 
12
+ ## 1.9.0 — export over the API
13
+
14
+ **`exportMail`** (`GET /v1/export`) streams every message the key can read as
15
+ one `application/mbox` file — the export the dashboard has always offered,
16
+ now for software. Pass `identity_id` for one address. Each message carries
17
+ `X-Pidgeon-Mailbox`, so one file holding several addresses can be split
18
+ again. Four an hour per workspace.
19
+
12
20
  ## 1.8.0 — wait for a message, and read the code out of it
13
21
 
14
22
  **`messagesAwait`** (`GET /v1/messages/await`) holds the request open until a
package/dist/index.cjs CHANGED
@@ -63,6 +63,7 @@ __export(index_exports, {
63
63
  eventsGet: () => eventsGet,
64
64
  eventsList: () => eventsList,
65
65
  eventsStream: () => eventsStream,
66
+ exportMail: () => exportMail,
66
67
  identitiesAccessCreate: () => identitiesAccessCreate,
67
68
  identitiesAccessDelete: () => identitiesAccessDelete,
68
69
  identitiesAccessGet: () => identitiesAccessGet,
@@ -1227,6 +1228,11 @@ var messagesRaw = (options) => (options.client ?? client).get({
1227
1228
  url: "/messages/{id}/raw",
1228
1229
  ...options
1229
1230
  });
1231
+ var exportMail = (options) => (options?.client ?? client).get({
1232
+ security: [{ scheme: "bearer", type: "http" }],
1233
+ url: "/export",
1234
+ ...options
1235
+ });
1230
1236
  var threadsList = (options) => (options?.client ?? client).get({
1231
1237
  security: [{ scheme: "bearer", type: "http" }],
1232
1238
  url: "/threads",
@@ -1830,6 +1836,7 @@ function sleep(ms, signal) {
1830
1836
  eventsGet,
1831
1837
  eventsList,
1832
1838
  eventsStream,
1839
+ exportMail,
1833
1840
  identitiesAccessCreate,
1834
1841
  identitiesAccessDelete,
1835
1842
  identitiesAccessGet,