@pidgeon-ai/sdk 1.42.0 → 1.43.1

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
@@ -7,6 +7,28 @@ 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.43.1 — forwards and raw reads
11
+
12
+ - `messagesForward` from a key is refused `403 exfiltration_blocked` when a
13
+ recipient is new to the conversation: not on any of its messages, not one
14
+ of your addresses, and not named by an `allow` send rule.
15
+ - `messagesRaw` gives a key the rebuilt message with a canary token in its
16
+ text, never the archived original; `X-Pidgeon-Reconstructed` is `true`.
17
+ Descriptions only: no type changed.
18
+
19
+ ## 1.43.0 — a person approves the risky sends
20
+
21
+ - Every send result carries `status`: `sent`, or `pending_approval` — nothing
22
+ was sent, the message is a draft waiting for a person, `draft_id` names it
23
+ and `approval` says why (`first_contact` or `risky_thread`) and when it
24
+ expires (24 hours). Read `status` before treating a send as sent.
25
+ - `draftsApproval` (`GET /drafts/{id}/approval`) says where a held send
26
+ stands; `message_id` is set once it is approved and sent.
27
+ - `Draft.approval`, and `Identity.send_approval` (`none` or `first_contact`),
28
+ settable with `identitiesUpdate`.
29
+ - Events `draft.approval_requested`, `draft.approved`, `draft.rejected` and
30
+ `draft.expired`, carrying `draft_id`, `thread_id` and `reason`.
31
+
10
32
  ## 1.42.0 — suspicious mail is held for a person
11
33
 
12
34
  - `Message.is_held` and `MessageListItem.is_held`. A held message's content is
package/dist/index.cjs CHANGED
@@ -54,6 +54,7 @@ __export(index_exports, {
54
54
  domainsUpdate: () => domainsUpdate,
55
55
  domainsVerify: () => domainsVerify,
56
56
  domainsZoneFile: () => domainsZoneFile,
57
+ draftsApproval: () => draftsApproval,
57
58
  draftsCancelSchedule: () => draftsCancelSchedule,
58
59
  draftsCreate: () => draftsCreate,
59
60
  draftsDelete: () => draftsDelete,
@@ -1647,6 +1648,11 @@ var draftsSend = (options) => (options.client ?? client).post({
1647
1648
  url: "/drafts/{id}/send",
1648
1649
  ...options
1649
1650
  });
1651
+ var draftsApproval = (options) => (options.client ?? client).get({
1652
+ security: [{ scheme: "bearer", type: "http" }],
1653
+ url: "/drafts/{id}/approval",
1654
+ ...options
1655
+ });
1650
1656
  var draftsCancelSchedule = (options) => (options.client ?? client).delete({
1651
1657
  security: [{ scheme: "bearer", type: "http" }],
1652
1658
  url: "/drafts/{id}/schedule",
@@ -1891,6 +1897,7 @@ function sleep(ms, signal) {
1891
1897
  domainsUpdate,
1892
1898
  domainsVerify,
1893
1899
  domainsZoneFile,
1900
+ draftsApproval,
1894
1901
  draftsCancelSchedule,
1895
1902
  draftsCreate,
1896
1903
  draftsDelete,