@pidgeon-ai/sdk 1.44.0 → 1.46.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 +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -14
- package/dist/index.d.ts +18 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2370,7 +2370,11 @@ type AttachmentText = {
|
|
|
2370
2370
|
*/
|
|
2371
2371
|
size: number;
|
|
2372
2372
|
/**
|
|
2373
|
-
*
|
|
2373
|
+
* How it was read. `pdf`: the text layer, a form feed between pages. `docx`: headers, body and footers, table rows tab-separated; footnotes and comments left out. `xlsx`: each sheet as `## Sheet: <name>` and CSV, dates as Excel serial numbers.
|
|
2374
|
+
*/
|
|
2375
|
+
format: 'text' | 'pdf' | 'docx' | 'xlsx';
|
|
2376
|
+
/**
|
|
2377
|
+
* The file as text. With `body=clean`, hidden characters removed and lines posing as a chat turn marked, under a first line saying what changed; for a document, also what it hid from a person opening it (a hidden Word run, a hidden sheet, row or column).
|
|
2374
2378
|
*/
|
|
2375
2379
|
text: string;
|
|
2376
2380
|
/**
|
|
@@ -4528,7 +4532,7 @@ type MessagesSendErrors = {
|
|
|
4528
4532
|
*/
|
|
4529
4533
|
401: Error;
|
|
4530
4534
|
/**
|
|
4531
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
4535
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
4532
4536
|
*/
|
|
4533
4537
|
403: Error;
|
|
4534
4538
|
/**
|
|
@@ -5028,7 +5032,7 @@ type MessagesReplyErrors = {
|
|
|
5028
5032
|
*/
|
|
5029
5033
|
401: Error;
|
|
5030
5034
|
/**
|
|
5031
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5035
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5032
5036
|
*/
|
|
5033
5037
|
403: Error;
|
|
5034
5038
|
/**
|
|
@@ -5128,7 +5132,7 @@ type MessagesReplyAllErrors = {
|
|
|
5128
5132
|
*/
|
|
5129
5133
|
401: Error;
|
|
5130
5134
|
/**
|
|
5131
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5135
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5132
5136
|
*/
|
|
5133
5137
|
403: Error;
|
|
5134
5138
|
/**
|
|
@@ -5228,7 +5232,7 @@ type MessagesForwardErrors = {
|
|
|
5228
5232
|
*/
|
|
5229
5233
|
401: Error;
|
|
5230
5234
|
/**
|
|
5231
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5235
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5232
5236
|
*/
|
|
5233
5237
|
403: Error;
|
|
5234
5238
|
/**
|
|
@@ -8199,7 +8203,7 @@ type MessagesRespondToInvitationErrors = {
|
|
|
8199
8203
|
*/
|
|
8200
8204
|
401: Error;
|
|
8201
8205
|
/**
|
|
8202
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8206
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8203
8207
|
*/
|
|
8204
8208
|
403: Error;
|
|
8205
8209
|
/**
|
|
@@ -8478,7 +8482,7 @@ type CalendarCreateEventErrors = {
|
|
|
8478
8482
|
*/
|
|
8479
8483
|
401: Error;
|
|
8480
8484
|
/**
|
|
8481
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8485
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8482
8486
|
*/
|
|
8483
8487
|
403: Error;
|
|
8484
8488
|
/**
|
|
@@ -8549,7 +8553,7 @@ type CalendarRespondToEventErrors = {
|
|
|
8549
8553
|
*/
|
|
8550
8554
|
401: Error;
|
|
8551
8555
|
/**
|
|
8552
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8556
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8553
8557
|
*/
|
|
8554
8558
|
403: Error;
|
|
8555
8559
|
/**
|
|
@@ -8761,7 +8765,7 @@ type CalendarDeleteEventErrors = {
|
|
|
8761
8765
|
*/
|
|
8762
8766
|
401: Error;
|
|
8763
8767
|
/**
|
|
8764
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8768
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8765
8769
|
*/
|
|
8766
8770
|
403: Error;
|
|
8767
8771
|
/**
|
|
@@ -8919,7 +8923,7 @@ type CalendarUpdateEventErrors = {
|
|
|
8919
8923
|
*/
|
|
8920
8924
|
401: Error;
|
|
8921
8925
|
/**
|
|
8922
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8926
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8923
8927
|
*/
|
|
8924
8928
|
403: Error;
|
|
8925
8929
|
/**
|
|
@@ -9379,7 +9383,7 @@ type DraftsSendErrors = {
|
|
|
9379
9383
|
*/
|
|
9380
9384
|
401: Error;
|
|
9381
9385
|
/**
|
|
9382
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
9386
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
9383
9387
|
*/
|
|
9384
9388
|
403: Error;
|
|
9385
9389
|
/**
|
|
@@ -10300,7 +10304,7 @@ declare const threadsGet: <ThrowOnError extends boolean = false>(options: Option
|
|
|
10300
10304
|
/**
|
|
10301
10305
|
* Update a thread
|
|
10302
10306
|
*
|
|
10303
|
-
* Its status and who owns it — the state a conversation carries. Handing it to a person notifies them: the assignee if you name one, otherwise everybody who can answer as the address. `reason` is shown in that notification.
|
|
10307
|
+
* Its status and who owns it — the state a conversation carries. Handing it to a person notifies them: the assignee if you name one, otherwise everybody who can answer as the address. `reason` is shown in that notification. While a person has the conversation (it is `human` with an assignee, or in `human_review`), a key may not set `owner_type` to anything else: `403 taken_over`. The person hands it back.
|
|
10304
10308
|
*/
|
|
10305
10309
|
declare const threadsUpdate: <ThrowOnError extends boolean = false>(options: Options<ThreadsUpdateData, ThrowOnError>) => RequestResult<ThreadsUpdateResponses, ThreadsUpdateErrors, ThrowOnError>;
|
|
10306
10310
|
/**
|
|
@@ -10720,9 +10724,9 @@ declare const attachmentsCompleteUpload: <ThrowOnError extends boolean = false>(
|
|
|
10720
10724
|
*/
|
|
10721
10725
|
declare const attachmentsDownloadUrl: <ThrowOnError extends boolean = false>(options: Options<AttachmentsDownloadUrlData, ThrowOnError>) => RequestResult<AttachmentsDownloadUrlResponses, AttachmentsDownloadUrlErrors, ThrowOnError>;
|
|
10722
10726
|
/**
|
|
10723
|
-
* Read
|
|
10727
|
+
* Read an attachment as text
|
|
10724
10728
|
*
|
|
10725
|
-
* A CSV, a log, JSON or another text format,
|
|
10729
|
+
* A CSV, a log, JSON or another text format (up to 5 MB), or a PDF, a `.docx` or an `.xlsx` (up to 10 MB), as text: the first 200,000 characters of it. Screened by Pidgeon Firewall with the sender of the message it came with, because a file in an email is mail a model reads: `firewall` says whether it tries to steer you, and `body=clean` returns it with hidden content removed. Text a document hides from a person (a hidden Word run, a hidden sheet, row or column) counts as hidden text. Where the address holds suspicious mail, a flagged attachment holds its message, and a key is answered `403 held`. A scanned or password-protected PDF, `.doc`, `.xls`, PowerPoint, HTML and images are refused; `GET /attachments/{id}` gives a link to those.
|
|
10726
10730
|
*/
|
|
10727
10731
|
declare const attachmentsText: <ThrowOnError extends boolean = false>(options: Options<AttachmentsTextData, ThrowOnError>) => RequestResult<AttachmentsTextResponses, AttachmentsTextErrors, ThrowOnError>;
|
|
10728
10732
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2370,7 +2370,11 @@ type AttachmentText = {
|
|
|
2370
2370
|
*/
|
|
2371
2371
|
size: number;
|
|
2372
2372
|
/**
|
|
2373
|
-
*
|
|
2373
|
+
* How it was read. `pdf`: the text layer, a form feed between pages. `docx`: headers, body and footers, table rows tab-separated; footnotes and comments left out. `xlsx`: each sheet as `## Sheet: <name>` and CSV, dates as Excel serial numbers.
|
|
2374
|
+
*/
|
|
2375
|
+
format: 'text' | 'pdf' | 'docx' | 'xlsx';
|
|
2376
|
+
/**
|
|
2377
|
+
* The file as text. With `body=clean`, hidden characters removed and lines posing as a chat turn marked, under a first line saying what changed; for a document, also what it hid from a person opening it (a hidden Word run, a hidden sheet, row or column).
|
|
2374
2378
|
*/
|
|
2375
2379
|
text: string;
|
|
2376
2380
|
/**
|
|
@@ -4528,7 +4532,7 @@ type MessagesSendErrors = {
|
|
|
4528
4532
|
*/
|
|
4529
4533
|
401: Error;
|
|
4530
4534
|
/**
|
|
4531
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
4535
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
4532
4536
|
*/
|
|
4533
4537
|
403: Error;
|
|
4534
4538
|
/**
|
|
@@ -5028,7 +5032,7 @@ type MessagesReplyErrors = {
|
|
|
5028
5032
|
*/
|
|
5029
5033
|
401: Error;
|
|
5030
5034
|
/**
|
|
5031
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5035
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5032
5036
|
*/
|
|
5033
5037
|
403: Error;
|
|
5034
5038
|
/**
|
|
@@ -5128,7 +5132,7 @@ type MessagesReplyAllErrors = {
|
|
|
5128
5132
|
*/
|
|
5129
5133
|
401: Error;
|
|
5130
5134
|
/**
|
|
5131
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5135
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5132
5136
|
*/
|
|
5133
5137
|
403: Error;
|
|
5134
5138
|
/**
|
|
@@ -5228,7 +5232,7 @@ type MessagesForwardErrors = {
|
|
|
5228
5232
|
*/
|
|
5229
5233
|
401: Error;
|
|
5230
5234
|
/**
|
|
5231
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5235
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
5232
5236
|
*/
|
|
5233
5237
|
403: Error;
|
|
5234
5238
|
/**
|
|
@@ -8199,7 +8203,7 @@ type MessagesRespondToInvitationErrors = {
|
|
|
8199
8203
|
*/
|
|
8200
8204
|
401: Error;
|
|
8201
8205
|
/**
|
|
8202
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8206
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8203
8207
|
*/
|
|
8204
8208
|
403: Error;
|
|
8205
8209
|
/**
|
|
@@ -8478,7 +8482,7 @@ type CalendarCreateEventErrors = {
|
|
|
8478
8482
|
*/
|
|
8479
8483
|
401: Error;
|
|
8480
8484
|
/**
|
|
8481
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8485
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8482
8486
|
*/
|
|
8483
8487
|
403: Error;
|
|
8484
8488
|
/**
|
|
@@ -8549,7 +8553,7 @@ type CalendarRespondToEventErrors = {
|
|
|
8549
8553
|
*/
|
|
8550
8554
|
401: Error;
|
|
8551
8555
|
/**
|
|
8552
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8556
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8553
8557
|
*/
|
|
8554
8558
|
403: Error;
|
|
8555
8559
|
/**
|
|
@@ -8761,7 +8765,7 @@ type CalendarDeleteEventErrors = {
|
|
|
8761
8765
|
*/
|
|
8762
8766
|
401: Error;
|
|
8763
8767
|
/**
|
|
8764
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8768
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8765
8769
|
*/
|
|
8766
8770
|
403: Error;
|
|
8767
8771
|
/**
|
|
@@ -8919,7 +8923,7 @@ type CalendarUpdateEventErrors = {
|
|
|
8919
8923
|
*/
|
|
8920
8924
|
401: Error;
|
|
8921
8925
|
/**
|
|
8922
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8926
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
8923
8927
|
*/
|
|
8924
8928
|
403: Error;
|
|
8925
8929
|
/**
|
|
@@ -9379,7 +9383,7 @@ type DraftsSendErrors = {
|
|
|
9379
9383
|
*/
|
|
9380
9384
|
401: Error;
|
|
9381
9385
|
/**
|
|
9382
|
-
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
9386
|
+
* Refused, and nothing was sent to anybody. `error.code` says why: `blocked` (a rule), `not_permitted` (the send policy), `abuse_blocked` (a sending limit), `exfiltration_blocked` (it carries text a key read in another conversation; the message names it), `taken_over` (a person has this conversation: a key does not send in it until they hand it back) or `forbidden` (the address is not one this key can send from, or is not active).
|
|
9383
9387
|
*/
|
|
9384
9388
|
403: Error;
|
|
9385
9389
|
/**
|
|
@@ -10300,7 +10304,7 @@ declare const threadsGet: <ThrowOnError extends boolean = false>(options: Option
|
|
|
10300
10304
|
/**
|
|
10301
10305
|
* Update a thread
|
|
10302
10306
|
*
|
|
10303
|
-
* Its status and who owns it — the state a conversation carries. Handing it to a person notifies them: the assignee if you name one, otherwise everybody who can answer as the address. `reason` is shown in that notification.
|
|
10307
|
+
* Its status and who owns it — the state a conversation carries. Handing it to a person notifies them: the assignee if you name one, otherwise everybody who can answer as the address. `reason` is shown in that notification. While a person has the conversation (it is `human` with an assignee, or in `human_review`), a key may not set `owner_type` to anything else: `403 taken_over`. The person hands it back.
|
|
10304
10308
|
*/
|
|
10305
10309
|
declare const threadsUpdate: <ThrowOnError extends boolean = false>(options: Options<ThreadsUpdateData, ThrowOnError>) => RequestResult<ThreadsUpdateResponses, ThreadsUpdateErrors, ThrowOnError>;
|
|
10306
10310
|
/**
|
|
@@ -10720,9 +10724,9 @@ declare const attachmentsCompleteUpload: <ThrowOnError extends boolean = false>(
|
|
|
10720
10724
|
*/
|
|
10721
10725
|
declare const attachmentsDownloadUrl: <ThrowOnError extends boolean = false>(options: Options<AttachmentsDownloadUrlData, ThrowOnError>) => RequestResult<AttachmentsDownloadUrlResponses, AttachmentsDownloadUrlErrors, ThrowOnError>;
|
|
10722
10726
|
/**
|
|
10723
|
-
* Read
|
|
10727
|
+
* Read an attachment as text
|
|
10724
10728
|
*
|
|
10725
|
-
* A CSV, a log, JSON or another text format,
|
|
10729
|
+
* A CSV, a log, JSON or another text format (up to 5 MB), or a PDF, a `.docx` or an `.xlsx` (up to 10 MB), as text: the first 200,000 characters of it. Screened by Pidgeon Firewall with the sender of the message it came with, because a file in an email is mail a model reads: `firewall` says whether it tries to steer you, and `body=clean` returns it with hidden content removed. Text a document hides from a person (a hidden Word run, a hidden sheet, row or column) counts as hidden text. Where the address holds suspicious mail, a flagged attachment holds its message, and a key is answered `403 held`. A scanned or password-protected PDF, `.doc`, `.xls`, PowerPoint, HTML and images are refused; `GET /attachments/{id}` gives a link to those.
|
|
10726
10730
|
*/
|
|
10727
10731
|
declare const attachmentsText: <ThrowOnError extends boolean = false>(options: Options<AttachmentsTextData, ThrowOnError>) => RequestResult<AttachmentsTextResponses, AttachmentsTextErrors, ThrowOnError>;
|
|
10728
10732
|
|