@pidgeon-ai/sdk 1.38.0 → 1.39.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.d.cts +47 -15
- package/dist/index.d.ts +47 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ 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.39.0 — what happened to a send
|
|
11
|
+
|
|
12
|
+
- Every `Message` carries `delivery`: `state`, the worst any recipient has
|
|
13
|
+
reached (`queued` through `delivered`, `bounced` or `complained`),
|
|
14
|
+
`delivered_at`, and each recipient's `state`, `bounce_type` and
|
|
15
|
+
`diagnostic`. Null for mail that arrived and for a send nobody has
|
|
16
|
+
reported on yet. `/docs/test-mode` called it `delivery_state`; it is
|
|
17
|
+
`delivery.state`.
|
|
18
|
+
- `to`, `cc` and `bcc` take one address or several on `draftsCreate`,
|
|
19
|
+
`draftsUpdate`, `messagesReply`, `messagesReplyAll` and
|
|
20
|
+
`messagesForward`, as they did on `messagesSend`.
|
|
21
|
+
- `draftsUpdate` adds the uploads named in `attachment_ids`. It took them
|
|
22
|
+
and did nothing. A create refused for an upload that does not exist no
|
|
23
|
+
longer saves the draft first.
|
|
24
|
+
- `message.delivered`, `message.bounced`, `message.rejected` and
|
|
25
|
+
`message.complained`, and the calendar events an invitation makes, carry
|
|
26
|
+
`thread_id`.
|
|
27
|
+
|
|
10
28
|
## 1.38.0 — a Gmail forward Google vouched for
|
|
11
29
|
|
|
12
30
|
`authentication` gains `arc`: `{ sealer: "google.com", dmarc: "pass" }` on a
|
package/dist/index.d.cts
CHANGED
|
@@ -563,6 +563,22 @@ type Message = {
|
|
|
563
563
|
*/
|
|
564
564
|
downloadable: boolean;
|
|
565
565
|
}>;
|
|
566
|
+
/**
|
|
567
|
+
* What happened to mail we sent, per recipient and overall. Null for mail that arrived, and for a send nobody has reported on yet. `message.delivered` and `message.bounced` say the same as events.
|
|
568
|
+
*/
|
|
569
|
+
delivery: {
|
|
570
|
+
/**
|
|
571
|
+
* `queued`, `sent`, `delivered`, `deferred`, `rejected`, `bounced` or `complained`: the worst any recipient has reached, so one bounce shows through a delivery.
|
|
572
|
+
*/
|
|
573
|
+
state: string;
|
|
574
|
+
delivered_at: string | null;
|
|
575
|
+
recipients: Array<{
|
|
576
|
+
address: string;
|
|
577
|
+
state: string;
|
|
578
|
+
bounce_type: string | null;
|
|
579
|
+
diagnostic: string | null;
|
|
580
|
+
}>;
|
|
581
|
+
} | null;
|
|
566
582
|
/**
|
|
567
583
|
* The calendar part this message carried, or null — the invitation, who was asked, and what they answered.
|
|
568
584
|
*/
|
|
@@ -793,6 +809,22 @@ type AwaitedMessage = {
|
|
|
793
809
|
*/
|
|
794
810
|
downloadable: boolean;
|
|
795
811
|
}>;
|
|
812
|
+
/**
|
|
813
|
+
* What happened to mail we sent, per recipient and overall. Null for mail that arrived, and for a send nobody has reported on yet. `message.delivered` and `message.bounced` say the same as events.
|
|
814
|
+
*/
|
|
815
|
+
delivery: {
|
|
816
|
+
/**
|
|
817
|
+
* `queued`, `sent`, `delivered`, `deferred`, `rejected`, `bounced` or `complained`: the worst any recipient has reached, so one bounce shows through a delivery.
|
|
818
|
+
*/
|
|
819
|
+
state: string;
|
|
820
|
+
delivered_at: string | null;
|
|
821
|
+
recipients: Array<{
|
|
822
|
+
address: string;
|
|
823
|
+
state: string;
|
|
824
|
+
bounce_type: string | null;
|
|
825
|
+
diagnostic: string | null;
|
|
826
|
+
}>;
|
|
827
|
+
} | null;
|
|
796
828
|
/**
|
|
797
829
|
* The calendar part this message carried, or null — the invitation, who was asked, and what they answered.
|
|
798
830
|
*/
|
|
@@ -4771,15 +4803,15 @@ type MessagesReplyData = {
|
|
|
4771
4803
|
/**
|
|
4772
4804
|
* One address or several. A string is accepted for the single case.
|
|
4773
4805
|
*/
|
|
4774
|
-
to?: Array<string>;
|
|
4806
|
+
to?: string | Array<string>;
|
|
4775
4807
|
/**
|
|
4776
4808
|
* Copied, and visible to everybody who receives the message.
|
|
4777
4809
|
*/
|
|
4778
|
-
cc?: Array<string>;
|
|
4810
|
+
cc?: string | Array<string>;
|
|
4779
4811
|
/**
|
|
4780
4812
|
* Copied, and visible to nobody else.
|
|
4781
4813
|
*/
|
|
4782
|
-
bcc?: Array<string>;
|
|
4814
|
+
bcc?: string | Array<string>;
|
|
4783
4815
|
/**
|
|
4784
4816
|
* Ids from `POST /attachments`, uploaded before the message that carries them. Up to 20.
|
|
4785
4817
|
*/
|
|
@@ -4871,15 +4903,15 @@ type MessagesReplyAllData = {
|
|
|
4871
4903
|
/**
|
|
4872
4904
|
* One address or several. A string is accepted for the single case.
|
|
4873
4905
|
*/
|
|
4874
|
-
to?: Array<string>;
|
|
4906
|
+
to?: string | Array<string>;
|
|
4875
4907
|
/**
|
|
4876
4908
|
* Copied, and visible to everybody who receives the message.
|
|
4877
4909
|
*/
|
|
4878
|
-
cc?: Array<string>;
|
|
4910
|
+
cc?: string | Array<string>;
|
|
4879
4911
|
/**
|
|
4880
4912
|
* Copied, and visible to nobody else.
|
|
4881
4913
|
*/
|
|
4882
|
-
bcc?: Array<string>;
|
|
4914
|
+
bcc?: string | Array<string>;
|
|
4883
4915
|
/**
|
|
4884
4916
|
* Ids from `POST /attachments`, uploaded before the message that carries them. Up to 20.
|
|
4885
4917
|
*/
|
|
@@ -4971,15 +5003,15 @@ type MessagesForwardData = {
|
|
|
4971
5003
|
/**
|
|
4972
5004
|
* One address or several. A string is accepted for the single case.
|
|
4973
5005
|
*/
|
|
4974
|
-
to?: Array<string>;
|
|
5006
|
+
to?: string | Array<string>;
|
|
4975
5007
|
/**
|
|
4976
5008
|
* Copied, and visible to everybody who receives the message.
|
|
4977
5009
|
*/
|
|
4978
|
-
cc?: Array<string>;
|
|
5010
|
+
cc?: string | Array<string>;
|
|
4979
5011
|
/**
|
|
4980
5012
|
* Copied, and visible to nobody else.
|
|
4981
5013
|
*/
|
|
4982
|
-
bcc?: Array<string>;
|
|
5014
|
+
bcc?: string | Array<string>;
|
|
4983
5015
|
/**
|
|
4984
5016
|
* Ids from `POST /attachments`, uploaded before the message that carries them. Up to 20.
|
|
4985
5017
|
*/
|
|
@@ -8804,15 +8836,15 @@ type DraftsCreateData = {
|
|
|
8804
8836
|
/**
|
|
8805
8837
|
* One address or several. A string is accepted for the single case.
|
|
8806
8838
|
*/
|
|
8807
|
-
to?: Array<string>;
|
|
8839
|
+
to?: string | Array<string>;
|
|
8808
8840
|
/**
|
|
8809
8841
|
* Copied, and visible to everybody who receives the message.
|
|
8810
8842
|
*/
|
|
8811
|
-
cc?: Array<string>;
|
|
8843
|
+
cc?: string | Array<string>;
|
|
8812
8844
|
/**
|
|
8813
8845
|
* Copied, and visible to nobody else.
|
|
8814
8846
|
*/
|
|
8815
|
-
bcc?: Array<string>;
|
|
8847
|
+
bcc?: string | Array<string>;
|
|
8816
8848
|
/**
|
|
8817
8849
|
* Left off a reply, where the thread already has one.
|
|
8818
8850
|
*/
|
|
@@ -9028,15 +9060,15 @@ type DraftsUpdateData = {
|
|
|
9028
9060
|
/**
|
|
9029
9061
|
* One address or several. A string is accepted for the single case.
|
|
9030
9062
|
*/
|
|
9031
|
-
to?: Array<string>;
|
|
9063
|
+
to?: string | Array<string>;
|
|
9032
9064
|
/**
|
|
9033
9065
|
* Copied, and visible to everybody who receives the message.
|
|
9034
9066
|
*/
|
|
9035
|
-
cc?: Array<string>;
|
|
9067
|
+
cc?: string | Array<string>;
|
|
9036
9068
|
/**
|
|
9037
9069
|
* Copied, and visible to nobody else.
|
|
9038
9070
|
*/
|
|
9039
|
-
bcc?: Array<string>;
|
|
9071
|
+
bcc?: string | Array<string>;
|
|
9040
9072
|
/**
|
|
9041
9073
|
* Left off a reply, where the thread already has one.
|
|
9042
9074
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -563,6 +563,22 @@ type Message = {
|
|
|
563
563
|
*/
|
|
564
564
|
downloadable: boolean;
|
|
565
565
|
}>;
|
|
566
|
+
/**
|
|
567
|
+
* What happened to mail we sent, per recipient and overall. Null for mail that arrived, and for a send nobody has reported on yet. `message.delivered` and `message.bounced` say the same as events.
|
|
568
|
+
*/
|
|
569
|
+
delivery: {
|
|
570
|
+
/**
|
|
571
|
+
* `queued`, `sent`, `delivered`, `deferred`, `rejected`, `bounced` or `complained`: the worst any recipient has reached, so one bounce shows through a delivery.
|
|
572
|
+
*/
|
|
573
|
+
state: string;
|
|
574
|
+
delivered_at: string | null;
|
|
575
|
+
recipients: Array<{
|
|
576
|
+
address: string;
|
|
577
|
+
state: string;
|
|
578
|
+
bounce_type: string | null;
|
|
579
|
+
diagnostic: string | null;
|
|
580
|
+
}>;
|
|
581
|
+
} | null;
|
|
566
582
|
/**
|
|
567
583
|
* The calendar part this message carried, or null — the invitation, who was asked, and what they answered.
|
|
568
584
|
*/
|
|
@@ -793,6 +809,22 @@ type AwaitedMessage = {
|
|
|
793
809
|
*/
|
|
794
810
|
downloadable: boolean;
|
|
795
811
|
}>;
|
|
812
|
+
/**
|
|
813
|
+
* What happened to mail we sent, per recipient and overall. Null for mail that arrived, and for a send nobody has reported on yet. `message.delivered` and `message.bounced` say the same as events.
|
|
814
|
+
*/
|
|
815
|
+
delivery: {
|
|
816
|
+
/**
|
|
817
|
+
* `queued`, `sent`, `delivered`, `deferred`, `rejected`, `bounced` or `complained`: the worst any recipient has reached, so one bounce shows through a delivery.
|
|
818
|
+
*/
|
|
819
|
+
state: string;
|
|
820
|
+
delivered_at: string | null;
|
|
821
|
+
recipients: Array<{
|
|
822
|
+
address: string;
|
|
823
|
+
state: string;
|
|
824
|
+
bounce_type: string | null;
|
|
825
|
+
diagnostic: string | null;
|
|
826
|
+
}>;
|
|
827
|
+
} | null;
|
|
796
828
|
/**
|
|
797
829
|
* The calendar part this message carried, or null — the invitation, who was asked, and what they answered.
|
|
798
830
|
*/
|
|
@@ -4771,15 +4803,15 @@ type MessagesReplyData = {
|
|
|
4771
4803
|
/**
|
|
4772
4804
|
* One address or several. A string is accepted for the single case.
|
|
4773
4805
|
*/
|
|
4774
|
-
to?: Array<string>;
|
|
4806
|
+
to?: string | Array<string>;
|
|
4775
4807
|
/**
|
|
4776
4808
|
* Copied, and visible to everybody who receives the message.
|
|
4777
4809
|
*/
|
|
4778
|
-
cc?: Array<string>;
|
|
4810
|
+
cc?: string | Array<string>;
|
|
4779
4811
|
/**
|
|
4780
4812
|
* Copied, and visible to nobody else.
|
|
4781
4813
|
*/
|
|
4782
|
-
bcc?: Array<string>;
|
|
4814
|
+
bcc?: string | Array<string>;
|
|
4783
4815
|
/**
|
|
4784
4816
|
* Ids from `POST /attachments`, uploaded before the message that carries them. Up to 20.
|
|
4785
4817
|
*/
|
|
@@ -4871,15 +4903,15 @@ type MessagesReplyAllData = {
|
|
|
4871
4903
|
/**
|
|
4872
4904
|
* One address or several. A string is accepted for the single case.
|
|
4873
4905
|
*/
|
|
4874
|
-
to?: Array<string>;
|
|
4906
|
+
to?: string | Array<string>;
|
|
4875
4907
|
/**
|
|
4876
4908
|
* Copied, and visible to everybody who receives the message.
|
|
4877
4909
|
*/
|
|
4878
|
-
cc?: Array<string>;
|
|
4910
|
+
cc?: string | Array<string>;
|
|
4879
4911
|
/**
|
|
4880
4912
|
* Copied, and visible to nobody else.
|
|
4881
4913
|
*/
|
|
4882
|
-
bcc?: Array<string>;
|
|
4914
|
+
bcc?: string | Array<string>;
|
|
4883
4915
|
/**
|
|
4884
4916
|
* Ids from `POST /attachments`, uploaded before the message that carries them. Up to 20.
|
|
4885
4917
|
*/
|
|
@@ -4971,15 +5003,15 @@ type MessagesForwardData = {
|
|
|
4971
5003
|
/**
|
|
4972
5004
|
* One address or several. A string is accepted for the single case.
|
|
4973
5005
|
*/
|
|
4974
|
-
to?: Array<string>;
|
|
5006
|
+
to?: string | Array<string>;
|
|
4975
5007
|
/**
|
|
4976
5008
|
* Copied, and visible to everybody who receives the message.
|
|
4977
5009
|
*/
|
|
4978
|
-
cc?: Array<string>;
|
|
5010
|
+
cc?: string | Array<string>;
|
|
4979
5011
|
/**
|
|
4980
5012
|
* Copied, and visible to nobody else.
|
|
4981
5013
|
*/
|
|
4982
|
-
bcc?: Array<string>;
|
|
5014
|
+
bcc?: string | Array<string>;
|
|
4983
5015
|
/**
|
|
4984
5016
|
* Ids from `POST /attachments`, uploaded before the message that carries them. Up to 20.
|
|
4985
5017
|
*/
|
|
@@ -8804,15 +8836,15 @@ type DraftsCreateData = {
|
|
|
8804
8836
|
/**
|
|
8805
8837
|
* One address or several. A string is accepted for the single case.
|
|
8806
8838
|
*/
|
|
8807
|
-
to?: Array<string>;
|
|
8839
|
+
to?: string | Array<string>;
|
|
8808
8840
|
/**
|
|
8809
8841
|
* Copied, and visible to everybody who receives the message.
|
|
8810
8842
|
*/
|
|
8811
|
-
cc?: Array<string>;
|
|
8843
|
+
cc?: string | Array<string>;
|
|
8812
8844
|
/**
|
|
8813
8845
|
* Copied, and visible to nobody else.
|
|
8814
8846
|
*/
|
|
8815
|
-
bcc?: Array<string>;
|
|
8847
|
+
bcc?: string | Array<string>;
|
|
8816
8848
|
/**
|
|
8817
8849
|
* Left off a reply, where the thread already has one.
|
|
8818
8850
|
*/
|
|
@@ -9028,15 +9060,15 @@ type DraftsUpdateData = {
|
|
|
9028
9060
|
/**
|
|
9029
9061
|
* One address or several. A string is accepted for the single case.
|
|
9030
9062
|
*/
|
|
9031
|
-
to?: Array<string>;
|
|
9063
|
+
to?: string | Array<string>;
|
|
9032
9064
|
/**
|
|
9033
9065
|
* Copied, and visible to everybody who receives the message.
|
|
9034
9066
|
*/
|
|
9035
|
-
cc?: Array<string>;
|
|
9067
|
+
cc?: string | Array<string>;
|
|
9036
9068
|
/**
|
|
9037
9069
|
* Copied, and visible to nobody else.
|
|
9038
9070
|
*/
|
|
9039
|
-
bcc?: Array<string>;
|
|
9071
|
+
bcc?: string | Array<string>;
|
|
9040
9072
|
/**
|
|
9041
9073
|
* Left off a reply, where the thread already has one.
|
|
9042
9074
|
*/
|