@pidgeon-ai/sdk 1.32.0 → 1.33.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 +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +85 -1
- package/dist/index.d.ts +85 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2387,6 +2387,10 @@ type IdentitiesCreateErrors = {
|
|
|
2387
2387
|
* Something this needs is not answering right now. Retry in a moment.
|
|
2388
2388
|
*/
|
|
2389
2389
|
503: Error;
|
|
2390
|
+
/**
|
|
2391
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
2392
|
+
*/
|
|
2393
|
+
504: Error;
|
|
2390
2394
|
};
|
|
2391
2395
|
type IdentitiesCreateError = IdentitiesCreateErrors[keyof IdentitiesCreateErrors];
|
|
2392
2396
|
type IdentitiesCreateResponses = {
|
|
@@ -3268,6 +3272,10 @@ type PodsCreateErrors = {
|
|
|
3268
3272
|
* Something this needs is not answering right now. Retry in a moment.
|
|
3269
3273
|
*/
|
|
3270
3274
|
503: Error;
|
|
3275
|
+
/**
|
|
3276
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
3277
|
+
*/
|
|
3278
|
+
504: Error;
|
|
3271
3279
|
};
|
|
3272
3280
|
type PodsCreateError = PodsCreateErrors[keyof PodsCreateErrors];
|
|
3273
3281
|
type PodsCreateResponses = {
|
|
@@ -3555,6 +3563,10 @@ type LabelsCreateErrors = {
|
|
|
3555
3563
|
* Something this needs is not answering right now. Retry in a moment.
|
|
3556
3564
|
*/
|
|
3557
3565
|
503: Error;
|
|
3566
|
+
/**
|
|
3567
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
3568
|
+
*/
|
|
3569
|
+
504: Error;
|
|
3558
3570
|
};
|
|
3559
3571
|
type LabelsCreateError = LabelsCreateErrors[keyof LabelsCreateErrors];
|
|
3560
3572
|
type LabelsCreateResponses = {
|
|
@@ -4005,6 +4017,10 @@ type MessagesSendErrors = {
|
|
|
4005
4017
|
* Something this needs is not answering right now. Retry in a moment.
|
|
4006
4018
|
*/
|
|
4007
4019
|
503: Error;
|
|
4020
|
+
/**
|
|
4021
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
4022
|
+
*/
|
|
4023
|
+
504: Error;
|
|
4008
4024
|
};
|
|
4009
4025
|
type MessagesSendError = MessagesSendErrors[keyof MessagesSendErrors];
|
|
4010
4026
|
type MessagesSendResponses = {
|
|
@@ -4457,6 +4473,10 @@ type MessagesReplyErrors = {
|
|
|
4457
4473
|
* Something this needs is not answering right now. Retry in a moment.
|
|
4458
4474
|
*/
|
|
4459
4475
|
503: Error;
|
|
4476
|
+
/**
|
|
4477
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
4478
|
+
*/
|
|
4479
|
+
504: Error;
|
|
4460
4480
|
};
|
|
4461
4481
|
type MessagesReplyError = MessagesReplyErrors[keyof MessagesReplyErrors];
|
|
4462
4482
|
type MessagesReplyResponses = {
|
|
@@ -4553,6 +4573,10 @@ type MessagesReplyAllErrors = {
|
|
|
4553
4573
|
* Something this needs is not answering right now. Retry in a moment.
|
|
4554
4574
|
*/
|
|
4555
4575
|
503: Error;
|
|
4576
|
+
/**
|
|
4577
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
4578
|
+
*/
|
|
4579
|
+
504: Error;
|
|
4556
4580
|
};
|
|
4557
4581
|
type MessagesReplyAllError = MessagesReplyAllErrors[keyof MessagesReplyAllErrors];
|
|
4558
4582
|
type MessagesReplyAllResponses = {
|
|
@@ -4649,6 +4673,10 @@ type MessagesForwardErrors = {
|
|
|
4649
4673
|
* Something this needs is not answering right now. Retry in a moment.
|
|
4650
4674
|
*/
|
|
4651
4675
|
503: Error;
|
|
4676
|
+
/**
|
|
4677
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
4678
|
+
*/
|
|
4679
|
+
504: Error;
|
|
4652
4680
|
};
|
|
4653
4681
|
type MessagesForwardError = MessagesForwardErrors[keyof MessagesForwardErrors];
|
|
4654
4682
|
type MessagesForwardResponses = {
|
|
@@ -5053,6 +5081,10 @@ type DomainsCreateErrors = {
|
|
|
5053
5081
|
* Something this needs is not answering right now. Retry in a moment.
|
|
5054
5082
|
*/
|
|
5055
5083
|
503: Error;
|
|
5084
|
+
/**
|
|
5085
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
5086
|
+
*/
|
|
5087
|
+
504: Error;
|
|
5056
5088
|
};
|
|
5057
5089
|
type DomainsCreateError = DomainsCreateErrors[keyof DomainsCreateErrors];
|
|
5058
5090
|
type DomainsCreateResponses = {
|
|
@@ -5504,6 +5536,10 @@ type RoutingCreateErrors = {
|
|
|
5504
5536
|
* Something this needs is not answering right now. Retry in a moment.
|
|
5505
5537
|
*/
|
|
5506
5538
|
503: Error;
|
|
5539
|
+
/**
|
|
5540
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
5541
|
+
*/
|
|
5542
|
+
504: Error;
|
|
5507
5543
|
};
|
|
5508
5544
|
type RoutingCreateError = RoutingCreateErrors[keyof RoutingCreateErrors];
|
|
5509
5545
|
type RoutingCreateResponses = {
|
|
@@ -5999,6 +6035,10 @@ type KeysCreateErrors = {
|
|
|
5999
6035
|
* Something this needs is not answering right now. Retry in a moment.
|
|
6000
6036
|
*/
|
|
6001
6037
|
503: Error;
|
|
6038
|
+
/**
|
|
6039
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
6040
|
+
*/
|
|
6041
|
+
504: Error;
|
|
6002
6042
|
};
|
|
6003
6043
|
type KeysCreateError = KeysCreateErrors[keyof KeysCreateErrors];
|
|
6004
6044
|
type KeysCreateResponses = {
|
|
@@ -6211,6 +6251,10 @@ type KeysRotateErrors = {
|
|
|
6211
6251
|
* Something this needs is not answering right now. Retry in a moment.
|
|
6212
6252
|
*/
|
|
6213
6253
|
503: Error;
|
|
6254
|
+
/**
|
|
6255
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
6256
|
+
*/
|
|
6257
|
+
504: Error;
|
|
6214
6258
|
};
|
|
6215
6259
|
type KeysRotateError = KeysRotateErrors[keyof KeysRotateErrors];
|
|
6216
6260
|
type KeysRotateResponses = {
|
|
@@ -6306,6 +6350,10 @@ type TestInboundErrors = {
|
|
|
6306
6350
|
* Something this needs is not answering right now. Retry in a moment.
|
|
6307
6351
|
*/
|
|
6308
6352
|
503: Error;
|
|
6353
|
+
/**
|
|
6354
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
6355
|
+
*/
|
|
6356
|
+
504: Error;
|
|
6309
6357
|
};
|
|
6310
6358
|
type TestInboundError = TestInboundErrors[keyof TestInboundErrors];
|
|
6311
6359
|
type TestInboundResponses = {
|
|
@@ -6984,6 +7032,10 @@ type WebhooksCreateErrors = {
|
|
|
6984
7032
|
* Something this needs is not answering right now. Retry in a moment.
|
|
6985
7033
|
*/
|
|
6986
7034
|
503: Error;
|
|
7035
|
+
/**
|
|
7036
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
7037
|
+
*/
|
|
7038
|
+
504: Error;
|
|
6987
7039
|
};
|
|
6988
7040
|
type WebhooksCreateError = WebhooksCreateErrors[keyof WebhooksCreateErrors];
|
|
6989
7041
|
type WebhooksCreateResponses = {
|
|
@@ -7421,6 +7473,10 @@ type MessagesRespondToInvitationErrors = {
|
|
|
7421
7473
|
* Something this needs is not answering right now. Retry in a moment.
|
|
7422
7474
|
*/
|
|
7423
7475
|
503: Error;
|
|
7476
|
+
/**
|
|
7477
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
7478
|
+
*/
|
|
7479
|
+
504: Error;
|
|
7424
7480
|
};
|
|
7425
7481
|
type MessagesRespondToInvitationError = MessagesRespondToInvitationErrors[keyof MessagesRespondToInvitationErrors];
|
|
7426
7482
|
type MessagesRespondToInvitationResponses = {
|
|
@@ -7688,6 +7744,10 @@ type CalendarCreateEventErrors = {
|
|
|
7688
7744
|
* Something this needs is not answering right now. Retry in a moment.
|
|
7689
7745
|
*/
|
|
7690
7746
|
503: Error;
|
|
7747
|
+
/**
|
|
7748
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
7749
|
+
*/
|
|
7750
|
+
504: Error;
|
|
7691
7751
|
};
|
|
7692
7752
|
type CalendarCreateEventError = CalendarCreateEventErrors[keyof CalendarCreateEventErrors];
|
|
7693
7753
|
type CalendarCreateEventResponses = {
|
|
@@ -7759,6 +7819,10 @@ type CalendarRespondToEventErrors = {
|
|
|
7759
7819
|
* Something this needs is not answering right now. Retry in a moment.
|
|
7760
7820
|
*/
|
|
7761
7821
|
503: Error;
|
|
7822
|
+
/**
|
|
7823
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
7824
|
+
*/
|
|
7825
|
+
504: Error;
|
|
7762
7826
|
};
|
|
7763
7827
|
type CalendarRespondToEventError = CalendarRespondToEventErrors[keyof CalendarRespondToEventErrors];
|
|
7764
7828
|
type CalendarRespondToEventResponses = {
|
|
@@ -7959,6 +8023,10 @@ type CalendarDeleteEventErrors = {
|
|
|
7959
8023
|
* Something this needs is not answering right now. Retry in a moment.
|
|
7960
8024
|
*/
|
|
7961
8025
|
503: Error;
|
|
8026
|
+
/**
|
|
8027
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8028
|
+
*/
|
|
8029
|
+
504: Error;
|
|
7962
8030
|
};
|
|
7963
8031
|
type CalendarDeleteEventError = CalendarDeleteEventErrors[keyof CalendarDeleteEventErrors];
|
|
7964
8032
|
type CalendarDeleteEventResponses = {
|
|
@@ -8113,6 +8181,10 @@ type CalendarUpdateEventErrors = {
|
|
|
8113
8181
|
* Something this needs is not answering right now. Retry in a moment.
|
|
8114
8182
|
*/
|
|
8115
8183
|
503: Error;
|
|
8184
|
+
/**
|
|
8185
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8186
|
+
*/
|
|
8187
|
+
504: Error;
|
|
8116
8188
|
};
|
|
8117
8189
|
type CalendarUpdateEventError = CalendarUpdateEventErrors[keyof CalendarUpdateEventErrors];
|
|
8118
8190
|
type CalendarUpdateEventResponses = {
|
|
@@ -8281,6 +8353,10 @@ type DraftsCreateErrors = {
|
|
|
8281
8353
|
* Something this needs is not answering right now. Retry in a moment.
|
|
8282
8354
|
*/
|
|
8283
8355
|
503: Error;
|
|
8356
|
+
/**
|
|
8357
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8358
|
+
*/
|
|
8359
|
+
504: Error;
|
|
8284
8360
|
};
|
|
8285
8361
|
type DraftsCreateError = DraftsCreateErrors[keyof DraftsCreateErrors];
|
|
8286
8362
|
type DraftsCreateResponses = {
|
|
@@ -8537,6 +8613,10 @@ type DraftsSendErrors = {
|
|
|
8537
8613
|
* Something this needs is not answering right now. Retry in a moment.
|
|
8538
8614
|
*/
|
|
8539
8615
|
503: Error;
|
|
8616
|
+
/**
|
|
8617
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8618
|
+
*/
|
|
8619
|
+
504: Error;
|
|
8540
8620
|
};
|
|
8541
8621
|
type DraftsSendError = DraftsSendErrors[keyof DraftsSendErrors];
|
|
8542
8622
|
type DraftsSendResponses = {
|
|
@@ -8649,6 +8729,10 @@ type DraftsScheduleErrors = {
|
|
|
8649
8729
|
* Something this needs is not answering right now. Retry in a moment.
|
|
8650
8730
|
*/
|
|
8651
8731
|
503: Error;
|
|
8732
|
+
/**
|
|
8733
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8734
|
+
*/
|
|
8735
|
+
504: Error;
|
|
8652
8736
|
};
|
|
8653
8737
|
type DraftsScheduleError = DraftsScheduleErrors[keyof DraftsScheduleErrors];
|
|
8654
8738
|
type DraftsScheduleResponses = {
|
|
@@ -9131,7 +9215,7 @@ declare const messagesListInThread: <ThrowOnError extends boolean = false>(optio
|
|
|
9131
9215
|
/**
|
|
9132
9216
|
* Send a message
|
|
9133
9217
|
*
|
|
9134
|
-
* Idempotent with an `Idempotency-Key` header. Answers `202` with the id, the thread and anything **rejected** — addresses the provider would not accept at hand-off, so read it before assuming every recipient got it. A recipient this address is not allowed to write to is a different thing and refuses the whole send: `403` with `blocked` when a rule says no, `not_permitted` when the send policy does. Nothing is sent to anybody in that case.
|
|
9218
|
+
* Idempotent with an `Idempotency-Key` header. Answers `202` with the id, the thread and anything **rejected** — addresses the provider would not accept at hand-off, so read it before assuming every recipient got it. A recipient this address is not allowed to write to is a different thing and refuses the whole send: `403` with `blocked` when a rule says no, `not_permitted` when the send policy does. Nothing is sent to anybody in that case. With a test key, `rejected@` at any domain is always rejected and `bounce@` bounces, and `Pidgeon-Test-Fail` causes a 429, a 503, a slow answer or a lost one: https://pidgeon.ai/docs/test-mode#causing-failures.
|
|
9135
9219
|
*/
|
|
9136
9220
|
declare const messagesSend: <ThrowOnError extends boolean = false>(options: Options<MessagesSendData, ThrowOnError>) => RequestResult<MessagesSendResponses, MessagesSendErrors, ThrowOnError>;
|
|
9137
9221
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2387,6 +2387,10 @@ type IdentitiesCreateErrors = {
|
|
|
2387
2387
|
* Something this needs is not answering right now. Retry in a moment.
|
|
2388
2388
|
*/
|
|
2389
2389
|
503: Error;
|
|
2390
|
+
/**
|
|
2391
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
2392
|
+
*/
|
|
2393
|
+
504: Error;
|
|
2390
2394
|
};
|
|
2391
2395
|
type IdentitiesCreateError = IdentitiesCreateErrors[keyof IdentitiesCreateErrors];
|
|
2392
2396
|
type IdentitiesCreateResponses = {
|
|
@@ -3268,6 +3272,10 @@ type PodsCreateErrors = {
|
|
|
3268
3272
|
* Something this needs is not answering right now. Retry in a moment.
|
|
3269
3273
|
*/
|
|
3270
3274
|
503: Error;
|
|
3275
|
+
/**
|
|
3276
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
3277
|
+
*/
|
|
3278
|
+
504: Error;
|
|
3271
3279
|
};
|
|
3272
3280
|
type PodsCreateError = PodsCreateErrors[keyof PodsCreateErrors];
|
|
3273
3281
|
type PodsCreateResponses = {
|
|
@@ -3555,6 +3563,10 @@ type LabelsCreateErrors = {
|
|
|
3555
3563
|
* Something this needs is not answering right now. Retry in a moment.
|
|
3556
3564
|
*/
|
|
3557
3565
|
503: Error;
|
|
3566
|
+
/**
|
|
3567
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
3568
|
+
*/
|
|
3569
|
+
504: Error;
|
|
3558
3570
|
};
|
|
3559
3571
|
type LabelsCreateError = LabelsCreateErrors[keyof LabelsCreateErrors];
|
|
3560
3572
|
type LabelsCreateResponses = {
|
|
@@ -4005,6 +4017,10 @@ type MessagesSendErrors = {
|
|
|
4005
4017
|
* Something this needs is not answering right now. Retry in a moment.
|
|
4006
4018
|
*/
|
|
4007
4019
|
503: Error;
|
|
4020
|
+
/**
|
|
4021
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
4022
|
+
*/
|
|
4023
|
+
504: Error;
|
|
4008
4024
|
};
|
|
4009
4025
|
type MessagesSendError = MessagesSendErrors[keyof MessagesSendErrors];
|
|
4010
4026
|
type MessagesSendResponses = {
|
|
@@ -4457,6 +4473,10 @@ type MessagesReplyErrors = {
|
|
|
4457
4473
|
* Something this needs is not answering right now. Retry in a moment.
|
|
4458
4474
|
*/
|
|
4459
4475
|
503: Error;
|
|
4476
|
+
/**
|
|
4477
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
4478
|
+
*/
|
|
4479
|
+
504: Error;
|
|
4460
4480
|
};
|
|
4461
4481
|
type MessagesReplyError = MessagesReplyErrors[keyof MessagesReplyErrors];
|
|
4462
4482
|
type MessagesReplyResponses = {
|
|
@@ -4553,6 +4573,10 @@ type MessagesReplyAllErrors = {
|
|
|
4553
4573
|
* Something this needs is not answering right now. Retry in a moment.
|
|
4554
4574
|
*/
|
|
4555
4575
|
503: Error;
|
|
4576
|
+
/**
|
|
4577
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
4578
|
+
*/
|
|
4579
|
+
504: Error;
|
|
4556
4580
|
};
|
|
4557
4581
|
type MessagesReplyAllError = MessagesReplyAllErrors[keyof MessagesReplyAllErrors];
|
|
4558
4582
|
type MessagesReplyAllResponses = {
|
|
@@ -4649,6 +4673,10 @@ type MessagesForwardErrors = {
|
|
|
4649
4673
|
* Something this needs is not answering right now. Retry in a moment.
|
|
4650
4674
|
*/
|
|
4651
4675
|
503: Error;
|
|
4676
|
+
/**
|
|
4677
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
4678
|
+
*/
|
|
4679
|
+
504: Error;
|
|
4652
4680
|
};
|
|
4653
4681
|
type MessagesForwardError = MessagesForwardErrors[keyof MessagesForwardErrors];
|
|
4654
4682
|
type MessagesForwardResponses = {
|
|
@@ -5053,6 +5081,10 @@ type DomainsCreateErrors = {
|
|
|
5053
5081
|
* Something this needs is not answering right now. Retry in a moment.
|
|
5054
5082
|
*/
|
|
5055
5083
|
503: Error;
|
|
5084
|
+
/**
|
|
5085
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
5086
|
+
*/
|
|
5087
|
+
504: Error;
|
|
5056
5088
|
};
|
|
5057
5089
|
type DomainsCreateError = DomainsCreateErrors[keyof DomainsCreateErrors];
|
|
5058
5090
|
type DomainsCreateResponses = {
|
|
@@ -5504,6 +5536,10 @@ type RoutingCreateErrors = {
|
|
|
5504
5536
|
* Something this needs is not answering right now. Retry in a moment.
|
|
5505
5537
|
*/
|
|
5506
5538
|
503: Error;
|
|
5539
|
+
/**
|
|
5540
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
5541
|
+
*/
|
|
5542
|
+
504: Error;
|
|
5507
5543
|
};
|
|
5508
5544
|
type RoutingCreateError = RoutingCreateErrors[keyof RoutingCreateErrors];
|
|
5509
5545
|
type RoutingCreateResponses = {
|
|
@@ -5999,6 +6035,10 @@ type KeysCreateErrors = {
|
|
|
5999
6035
|
* Something this needs is not answering right now. Retry in a moment.
|
|
6000
6036
|
*/
|
|
6001
6037
|
503: Error;
|
|
6038
|
+
/**
|
|
6039
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
6040
|
+
*/
|
|
6041
|
+
504: Error;
|
|
6002
6042
|
};
|
|
6003
6043
|
type KeysCreateError = KeysCreateErrors[keyof KeysCreateErrors];
|
|
6004
6044
|
type KeysCreateResponses = {
|
|
@@ -6211,6 +6251,10 @@ type KeysRotateErrors = {
|
|
|
6211
6251
|
* Something this needs is not answering right now. Retry in a moment.
|
|
6212
6252
|
*/
|
|
6213
6253
|
503: Error;
|
|
6254
|
+
/**
|
|
6255
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
6256
|
+
*/
|
|
6257
|
+
504: Error;
|
|
6214
6258
|
};
|
|
6215
6259
|
type KeysRotateError = KeysRotateErrors[keyof KeysRotateErrors];
|
|
6216
6260
|
type KeysRotateResponses = {
|
|
@@ -6306,6 +6350,10 @@ type TestInboundErrors = {
|
|
|
6306
6350
|
* Something this needs is not answering right now. Retry in a moment.
|
|
6307
6351
|
*/
|
|
6308
6352
|
503: Error;
|
|
6353
|
+
/**
|
|
6354
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
6355
|
+
*/
|
|
6356
|
+
504: Error;
|
|
6309
6357
|
};
|
|
6310
6358
|
type TestInboundError = TestInboundErrors[keyof TestInboundErrors];
|
|
6311
6359
|
type TestInboundResponses = {
|
|
@@ -6984,6 +7032,10 @@ type WebhooksCreateErrors = {
|
|
|
6984
7032
|
* Something this needs is not answering right now. Retry in a moment.
|
|
6985
7033
|
*/
|
|
6986
7034
|
503: Error;
|
|
7035
|
+
/**
|
|
7036
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
7037
|
+
*/
|
|
7038
|
+
504: Error;
|
|
6987
7039
|
};
|
|
6988
7040
|
type WebhooksCreateError = WebhooksCreateErrors[keyof WebhooksCreateErrors];
|
|
6989
7041
|
type WebhooksCreateResponses = {
|
|
@@ -7421,6 +7473,10 @@ type MessagesRespondToInvitationErrors = {
|
|
|
7421
7473
|
* Something this needs is not answering right now. Retry in a moment.
|
|
7422
7474
|
*/
|
|
7423
7475
|
503: Error;
|
|
7476
|
+
/**
|
|
7477
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
7478
|
+
*/
|
|
7479
|
+
504: Error;
|
|
7424
7480
|
};
|
|
7425
7481
|
type MessagesRespondToInvitationError = MessagesRespondToInvitationErrors[keyof MessagesRespondToInvitationErrors];
|
|
7426
7482
|
type MessagesRespondToInvitationResponses = {
|
|
@@ -7688,6 +7744,10 @@ type CalendarCreateEventErrors = {
|
|
|
7688
7744
|
* Something this needs is not answering right now. Retry in a moment.
|
|
7689
7745
|
*/
|
|
7690
7746
|
503: Error;
|
|
7747
|
+
/**
|
|
7748
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
7749
|
+
*/
|
|
7750
|
+
504: Error;
|
|
7691
7751
|
};
|
|
7692
7752
|
type CalendarCreateEventError = CalendarCreateEventErrors[keyof CalendarCreateEventErrors];
|
|
7693
7753
|
type CalendarCreateEventResponses = {
|
|
@@ -7759,6 +7819,10 @@ type CalendarRespondToEventErrors = {
|
|
|
7759
7819
|
* Something this needs is not answering right now. Retry in a moment.
|
|
7760
7820
|
*/
|
|
7761
7821
|
503: Error;
|
|
7822
|
+
/**
|
|
7823
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
7824
|
+
*/
|
|
7825
|
+
504: Error;
|
|
7762
7826
|
};
|
|
7763
7827
|
type CalendarRespondToEventError = CalendarRespondToEventErrors[keyof CalendarRespondToEventErrors];
|
|
7764
7828
|
type CalendarRespondToEventResponses = {
|
|
@@ -7959,6 +8023,10 @@ type CalendarDeleteEventErrors = {
|
|
|
7959
8023
|
* Something this needs is not answering right now. Retry in a moment.
|
|
7960
8024
|
*/
|
|
7961
8025
|
503: Error;
|
|
8026
|
+
/**
|
|
8027
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8028
|
+
*/
|
|
8029
|
+
504: Error;
|
|
7962
8030
|
};
|
|
7963
8031
|
type CalendarDeleteEventError = CalendarDeleteEventErrors[keyof CalendarDeleteEventErrors];
|
|
7964
8032
|
type CalendarDeleteEventResponses = {
|
|
@@ -8113,6 +8181,10 @@ type CalendarUpdateEventErrors = {
|
|
|
8113
8181
|
* Something this needs is not answering right now. Retry in a moment.
|
|
8114
8182
|
*/
|
|
8115
8183
|
503: Error;
|
|
8184
|
+
/**
|
|
8185
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8186
|
+
*/
|
|
8187
|
+
504: Error;
|
|
8116
8188
|
};
|
|
8117
8189
|
type CalendarUpdateEventError = CalendarUpdateEventErrors[keyof CalendarUpdateEventErrors];
|
|
8118
8190
|
type CalendarUpdateEventResponses = {
|
|
@@ -8281,6 +8353,10 @@ type DraftsCreateErrors = {
|
|
|
8281
8353
|
* Something this needs is not answering right now. Retry in a moment.
|
|
8282
8354
|
*/
|
|
8283
8355
|
503: Error;
|
|
8356
|
+
/**
|
|
8357
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8358
|
+
*/
|
|
8359
|
+
504: Error;
|
|
8284
8360
|
};
|
|
8285
8361
|
type DraftsCreateError = DraftsCreateErrors[keyof DraftsCreateErrors];
|
|
8286
8362
|
type DraftsCreateResponses = {
|
|
@@ -8537,6 +8613,10 @@ type DraftsSendErrors = {
|
|
|
8537
8613
|
* Something this needs is not answering right now. Retry in a moment.
|
|
8538
8614
|
*/
|
|
8539
8615
|
503: Error;
|
|
8616
|
+
/**
|
|
8617
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8618
|
+
*/
|
|
8619
|
+
504: Error;
|
|
8540
8620
|
};
|
|
8541
8621
|
type DraftsSendError = DraftsSendErrors[keyof DraftsSendErrors];
|
|
8542
8622
|
type DraftsSendResponses = {
|
|
@@ -8649,6 +8729,10 @@ type DraftsScheduleErrors = {
|
|
|
8649
8729
|
* Something this needs is not answering right now. Retry in a moment.
|
|
8650
8730
|
*/
|
|
8651
8731
|
503: Error;
|
|
8732
|
+
/**
|
|
8733
|
+
* Test mode only: `Pidgeon-Test-Fail: drop` dropped the answer (`test_dropped`). The request was done; retry it with the same `Idempotency-Key` to get the first answer.
|
|
8734
|
+
*/
|
|
8735
|
+
504: Error;
|
|
8652
8736
|
};
|
|
8653
8737
|
type DraftsScheduleError = DraftsScheduleErrors[keyof DraftsScheduleErrors];
|
|
8654
8738
|
type DraftsScheduleResponses = {
|
|
@@ -9131,7 +9215,7 @@ declare const messagesListInThread: <ThrowOnError extends boolean = false>(optio
|
|
|
9131
9215
|
/**
|
|
9132
9216
|
* Send a message
|
|
9133
9217
|
*
|
|
9134
|
-
* Idempotent with an `Idempotency-Key` header. Answers `202` with the id, the thread and anything **rejected** — addresses the provider would not accept at hand-off, so read it before assuming every recipient got it. A recipient this address is not allowed to write to is a different thing and refuses the whole send: `403` with `blocked` when a rule says no, `not_permitted` when the send policy does. Nothing is sent to anybody in that case.
|
|
9218
|
+
* Idempotent with an `Idempotency-Key` header. Answers `202` with the id, the thread and anything **rejected** — addresses the provider would not accept at hand-off, so read it before assuming every recipient got it. A recipient this address is not allowed to write to is a different thing and refuses the whole send: `403` with `blocked` when a rule says no, `not_permitted` when the send policy does. Nothing is sent to anybody in that case. With a test key, `rejected@` at any domain is always rejected and `bounce@` bounces, and `Pidgeon-Test-Fail` causes a 429, a 503, a slow answer or a lost one: https://pidgeon.ai/docs/test-mode#causing-failures.
|
|
9135
9219
|
*/
|
|
9136
9220
|
declare const messagesSend: <ThrowOnError extends boolean = false>(options: Options<MessagesSendData, ThrowOnError>) => RequestResult<MessagesSendResponses, MessagesSendErrors, ThrowOnError>;
|
|
9137
9221
|
/**
|