@pidgeon-ai/sdk 1.36.0 → 1.37.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/dist/index.d.ts CHANGED
@@ -962,9 +962,9 @@ type WebhookCreated = {
962
962
  */
963
963
  created_at: string;
964
964
  /**
965
- * Shown once, here, and never again.
965
+ * Shown once, here, and never again. Null on an `Idempotency-Key` replay (`Idempotent-Replay: true`): the secret is never stored, so delete the webhook and make another.
966
966
  */
967
- secret: string;
967
+ secret: string | null;
968
968
  };
969
969
  type Draft = {
970
970
  id: string;
@@ -1592,6 +1592,25 @@ type AppPassword = {
1592
1592
  */
1593
1593
  created_at: string;
1594
1594
  };
1595
+ type AppPasswordCreated = {
1596
+ id: string;
1597
+ name: string;
1598
+ prefix: string;
1599
+ last_used_at: string | null;
1600
+ revoked_at: string | null;
1601
+ /**
1602
+ * ISO-8601, UTC.
1603
+ */
1604
+ created_at: string;
1605
+ /**
1606
+ * The address, as a mail client wants it.
1607
+ */
1608
+ username: string;
1609
+ /**
1610
+ * Shown once, here, and never again. Null on an `Idempotency-Key` replay (`Idempotent-Replay: true`): the password is never stored, so revoke it and issue another.
1611
+ */
1612
+ password: string | null;
1613
+ };
1595
1614
  type Workspace = {
1596
1615
  id: string;
1597
1616
  name: string;
@@ -1685,6 +1704,43 @@ type UploadedAttachment = {
1685
1704
  };
1686
1705
  type MailboxChange = {
1687
1706
  id: string;
1707
+ identity_id?: string | null;
1708
+ thread_id?: string;
1709
+ direction?: string;
1710
+ /**
1711
+ * The address that sent it.
1712
+ */
1713
+ from?: string;
1714
+ /**
1715
+ * The sender’s display name, when it had one.
1716
+ */
1717
+ from_name?: string | null;
1718
+ /**
1719
+ * Every address it was sent to.
1720
+ */
1721
+ to?: Array<string>;
1722
+ /**
1723
+ * Who the row is about: the sender on a received message, the recipient on a sent one. What a mail client prints in the list.
1724
+ */
1725
+ counterparty?: string;
1726
+ /**
1727
+ * The same party, as a name to show.
1728
+ */
1729
+ counterparty_name?: string;
1730
+ subject?: string | null;
1731
+ preview?: string | null;
1732
+ is_read?: boolean;
1733
+ is_starred?: boolean;
1734
+ is_draft?: boolean;
1735
+ is_spam?: boolean;
1736
+ has_attachments?: boolean;
1737
+ attachment_count?: number;
1738
+ message_count?: number;
1739
+ assignee_id?: string | null;
1740
+ /**
1741
+ * ISO-8601, UTC.
1742
+ */
1743
+ timestamp?: string;
1688
1744
  /**
1689
1745
  * ISO-8601, UTC.
1690
1746
  */
@@ -1698,7 +1754,17 @@ type Restored = {
1698
1754
  type Undo = {
1699
1755
  id?: string;
1700
1756
  applied?: number;
1701
- undo: Array<unknown>;
1757
+ undo: Array<{
1758
+ messageId: string;
1759
+ rows: Array<{
1760
+ id: string;
1761
+ is_starred: boolean;
1762
+ is_archived: boolean;
1763
+ is_deleted: boolean;
1764
+ is_spam: boolean;
1765
+ }>;
1766
+ read?: Array<string>;
1767
+ }>;
1702
1768
  };
1703
1769
  type MessageListItem = {
1704
1770
  id: string;
@@ -2481,6 +2547,12 @@ type IdentitiesCreateResponses = {
2481
2547
  type IdentitiesCreateResponse = IdentitiesCreateResponses[keyof IdentitiesCreateResponses];
2482
2548
  type IdentitiesDeleteData = {
2483
2549
  body?: never;
2550
+ headers?: {
2551
+ /**
2552
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
2553
+ */
2554
+ 'Idempotency-Key'?: string;
2555
+ };
2484
2556
  path: {
2485
2557
  id: string;
2486
2558
  };
@@ -2505,7 +2577,7 @@ type IdentitiesDeleteErrors = {
2505
2577
  */
2506
2578
  404: Error;
2507
2579
  /**
2508
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2580
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
2509
2581
  */
2510
2582
  409: Error;
2511
2583
  /**
@@ -2520,6 +2592,10 @@ type IdentitiesDeleteErrors = {
2520
2592
  * Something this needs is not answering right now. Retry in a moment.
2521
2593
  */
2522
2594
  503: Error;
2595
+ /**
2596
+ * 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.
2597
+ */
2598
+ 504: Error;
2523
2599
  };
2524
2600
  type IdentitiesDeleteError = IdentitiesDeleteErrors[keyof IdentitiesDeleteErrors];
2525
2601
  type IdentitiesDeleteResponses = {
@@ -2618,6 +2694,12 @@ type IdentitiesUpdateData = {
2618
2694
  */
2619
2695
  pod_id?: string | null;
2620
2696
  };
2697
+ headers?: {
2698
+ /**
2699
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
2700
+ */
2701
+ 'Idempotency-Key'?: string;
2702
+ };
2621
2703
  path: {
2622
2704
  id: string;
2623
2705
  };
@@ -2642,7 +2724,7 @@ type IdentitiesUpdateErrors = {
2642
2724
  */
2643
2725
  404: Error;
2644
2726
  /**
2645
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2727
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
2646
2728
  */
2647
2729
  409: Error;
2648
2730
  /**
@@ -2657,6 +2739,10 @@ type IdentitiesUpdateErrors = {
2657
2739
  * Something this needs is not answering right now. Retry in a moment.
2658
2740
  */
2659
2741
  503: Error;
2742
+ /**
2743
+ * 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.
2744
+ */
2745
+ 504: Error;
2660
2746
  };
2661
2747
  type IdentitiesUpdateError = IdentitiesUpdateErrors[keyof IdentitiesUpdateErrors];
2662
2748
  type IdentitiesUpdateResponses = {
@@ -2670,6 +2756,12 @@ type IdentitiesUpdateResponses = {
2670
2756
  type IdentitiesUpdateResponse = IdentitiesUpdateResponses[keyof IdentitiesUpdateResponses];
2671
2757
  type IdentitiesAccessDeleteData = {
2672
2758
  body?: never;
2759
+ headers?: {
2760
+ /**
2761
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
2762
+ */
2763
+ 'Idempotency-Key'?: string;
2764
+ };
2673
2765
  path: {
2674
2766
  id: string;
2675
2767
  };
@@ -2696,7 +2788,7 @@ type IdentitiesAccessDeleteErrors = {
2696
2788
  */
2697
2789
  404: Error;
2698
2790
  /**
2699
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2791
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
2700
2792
  */
2701
2793
  409: Error;
2702
2794
  /**
@@ -2711,6 +2803,10 @@ type IdentitiesAccessDeleteErrors = {
2711
2803
  * Something this needs is not answering right now. Retry in a moment.
2712
2804
  */
2713
2805
  503: Error;
2806
+ /**
2807
+ * 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.
2808
+ */
2809
+ 504: Error;
2714
2810
  };
2715
2811
  type IdentitiesAccessDeleteError = IdentitiesAccessDeleteErrors[keyof IdentitiesAccessDeleteErrors];
2716
2812
  type IdentitiesAccessDeleteResponses = {
@@ -2784,6 +2880,12 @@ type IdentitiesAccessCreateData = {
2784
2880
  */
2785
2881
  access: 'read' | 'send' | 'admin';
2786
2882
  };
2883
+ headers?: {
2884
+ /**
2885
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
2886
+ */
2887
+ 'Idempotency-Key'?: string;
2888
+ };
2787
2889
  path: {
2788
2890
  id: string;
2789
2891
  };
@@ -2808,7 +2910,7 @@ type IdentitiesAccessCreateErrors = {
2808
2910
  */
2809
2911
  404: Error;
2810
2912
  /**
2811
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2913
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
2812
2914
  */
2813
2915
  409: Error;
2814
2916
  /**
@@ -2823,6 +2925,10 @@ type IdentitiesAccessCreateErrors = {
2823
2925
  * Something this needs is not answering right now. Retry in a moment.
2824
2926
  */
2825
2927
  503: Error;
2928
+ /**
2929
+ * 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.
2930
+ */
2931
+ 504: Error;
2826
2932
  };
2827
2933
  type IdentitiesAccessCreateError = IdentitiesAccessCreateErrors[keyof IdentitiesAccessCreateErrors];
2828
2934
  type IdentitiesAccessCreateResponses = {
@@ -2836,6 +2942,12 @@ type IdentitiesAccessCreateResponses = {
2836
2942
  type IdentitiesAccessCreateResponse = IdentitiesAccessCreateResponses[keyof IdentitiesAccessCreateResponses];
2837
2943
  type IdentitiesSendRulesDeleteData = {
2838
2944
  body?: never;
2945
+ headers?: {
2946
+ /**
2947
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
2948
+ */
2949
+ 'Idempotency-Key'?: string;
2950
+ };
2839
2951
  path: {
2840
2952
  id: string;
2841
2953
  };
@@ -2862,7 +2974,7 @@ type IdentitiesSendRulesDeleteErrors = {
2862
2974
  */
2863
2975
  404: Error;
2864
2976
  /**
2865
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
2977
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
2866
2978
  */
2867
2979
  409: Error;
2868
2980
  /**
@@ -2877,6 +2989,10 @@ type IdentitiesSendRulesDeleteErrors = {
2877
2989
  * Something this needs is not answering right now. Retry in a moment.
2878
2990
  */
2879
2991
  503: Error;
2992
+ /**
2993
+ * 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.
2994
+ */
2995
+ 504: Error;
2880
2996
  };
2881
2997
  type IdentitiesSendRulesDeleteError = IdentitiesSendRulesDeleteErrors[keyof IdentitiesSendRulesDeleteErrors];
2882
2998
  type IdentitiesSendRulesDeleteResponses = {
@@ -2945,6 +3061,12 @@ type IdentitiesSendRulesCreateData = {
2945
3061
  effect: 'allow' | 'block';
2946
3062
  value: string;
2947
3063
  };
3064
+ headers?: {
3065
+ /**
3066
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3067
+ */
3068
+ 'Idempotency-Key'?: string;
3069
+ };
2948
3070
  path: {
2949
3071
  id: string;
2950
3072
  };
@@ -2969,7 +3091,7 @@ type IdentitiesSendRulesCreateErrors = {
2969
3091
  */
2970
3092
  404: Error;
2971
3093
  /**
2972
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3094
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
2973
3095
  */
2974
3096
  409: Error;
2975
3097
  /**
@@ -2984,6 +3106,10 @@ type IdentitiesSendRulesCreateErrors = {
2984
3106
  * Something this needs is not answering right now. Retry in a moment.
2985
3107
  */
2986
3108
  503: Error;
3109
+ /**
3110
+ * 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.
3111
+ */
3112
+ 504: Error;
2987
3113
  };
2988
3114
  type IdentitiesSendRulesCreateError = IdentitiesSendRulesCreateErrors[keyof IdentitiesSendRulesCreateErrors];
2989
3115
  type IdentitiesSendRulesCreateResponses = {
@@ -2997,6 +3123,12 @@ type IdentitiesSendRulesCreateResponses = {
2997
3123
  type IdentitiesSendRulesCreateResponse = IdentitiesSendRulesCreateResponses[keyof IdentitiesSendRulesCreateResponses];
2998
3124
  type IdentitiesReceiveRulesDeleteData = {
2999
3125
  body?: never;
3126
+ headers?: {
3127
+ /**
3128
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3129
+ */
3130
+ 'Idempotency-Key'?: string;
3131
+ };
3000
3132
  path: {
3001
3133
  id: string;
3002
3134
  };
@@ -3023,7 +3155,7 @@ type IdentitiesReceiveRulesDeleteErrors = {
3023
3155
  */
3024
3156
  404: Error;
3025
3157
  /**
3026
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3158
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3027
3159
  */
3028
3160
  409: Error;
3029
3161
  /**
@@ -3038,6 +3170,10 @@ type IdentitiesReceiveRulesDeleteErrors = {
3038
3170
  * Something this needs is not answering right now. Retry in a moment.
3039
3171
  */
3040
3172
  503: Error;
3173
+ /**
3174
+ * 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.
3175
+ */
3176
+ 504: Error;
3041
3177
  };
3042
3178
  type IdentitiesReceiveRulesDeleteError = IdentitiesReceiveRulesDeleteErrors[keyof IdentitiesReceiveRulesDeleteErrors];
3043
3179
  type IdentitiesReceiveRulesDeleteResponses = {
@@ -3106,6 +3242,12 @@ type IdentitiesReceiveRulesCreateData = {
3106
3242
  action: 'reject' | 'spam' | 'trash' | 'archive' | 'inbox';
3107
3243
  value: string;
3108
3244
  };
3245
+ headers?: {
3246
+ /**
3247
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3248
+ */
3249
+ 'Idempotency-Key'?: string;
3250
+ };
3109
3251
  path: {
3110
3252
  id: string;
3111
3253
  };
@@ -3130,7 +3272,7 @@ type IdentitiesReceiveRulesCreateErrors = {
3130
3272
  */
3131
3273
  404: Error;
3132
3274
  /**
3133
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3275
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3134
3276
  */
3135
3277
  409: Error;
3136
3278
  /**
@@ -3145,6 +3287,10 @@ type IdentitiesReceiveRulesCreateErrors = {
3145
3287
  * Something this needs is not answering right now. Retry in a moment.
3146
3288
  */
3147
3289
  503: Error;
3290
+ /**
3291
+ * 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.
3292
+ */
3293
+ 504: Error;
3148
3294
  };
3149
3295
  type IdentitiesReceiveRulesCreateError = IdentitiesReceiveRulesCreateErrors[keyof IdentitiesReceiveRulesCreateErrors];
3150
3296
  type IdentitiesReceiveRulesCreateResponses = {
@@ -3158,6 +3304,12 @@ type IdentitiesReceiveRulesCreateResponses = {
3158
3304
  type IdentitiesReceiveRulesCreateResponse = IdentitiesReceiveRulesCreateResponses[keyof IdentitiesReceiveRulesCreateResponses];
3159
3305
  type IdentitiesSuspendTenantData = {
3160
3306
  body?: never;
3307
+ headers?: {
3308
+ /**
3309
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3310
+ */
3311
+ 'Idempotency-Key'?: string;
3312
+ };
3161
3313
  path: {
3162
3314
  /**
3163
3315
  * Your own tenant id, URL-encoded.
@@ -3185,7 +3337,7 @@ type IdentitiesSuspendTenantErrors = {
3185
3337
  */
3186
3338
  404: Error;
3187
3339
  /**
3188
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3340
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3189
3341
  */
3190
3342
  409: Error;
3191
3343
  /**
@@ -3200,6 +3352,10 @@ type IdentitiesSuspendTenantErrors = {
3200
3352
  * Something this needs is not answering right now. Retry in a moment.
3201
3353
  */
3202
3354
  503: Error;
3355
+ /**
3356
+ * 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.
3357
+ */
3358
+ 504: Error;
3203
3359
  };
3204
3360
  type IdentitiesSuspendTenantError = IdentitiesSuspendTenantErrors[keyof IdentitiesSuspendTenantErrors];
3205
3361
  type IdentitiesSuspendTenantResponses = {
@@ -3366,6 +3522,12 @@ type PodsCreateResponses = {
3366
3522
  type PodsCreateResponse = PodsCreateResponses[keyof PodsCreateResponses];
3367
3523
  type PodsDeleteData = {
3368
3524
  body?: never;
3525
+ headers?: {
3526
+ /**
3527
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3528
+ */
3529
+ 'Idempotency-Key'?: string;
3530
+ };
3369
3531
  path: {
3370
3532
  id: string;
3371
3533
  };
@@ -3395,7 +3557,7 @@ type PodsDeleteErrors = {
3395
3557
  */
3396
3558
  404: Error;
3397
3559
  /**
3398
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3560
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3399
3561
  */
3400
3562
  409: Error;
3401
3563
  /**
@@ -3410,6 +3572,10 @@ type PodsDeleteErrors = {
3410
3572
  * Something this needs is not answering right now. Retry in a moment.
3411
3573
  */
3412
3574
  503: Error;
3575
+ /**
3576
+ * 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.
3577
+ */
3578
+ 504: Error;
3413
3579
  };
3414
3580
  type PodsDeleteError = PodsDeleteErrors[keyof PodsDeleteErrors];
3415
3581
  type PodsDeleteResponses = {
@@ -3481,6 +3647,12 @@ type PodsUpdateData = {
3481
3647
  */
3482
3648
  client_id?: string | null;
3483
3649
  };
3650
+ headers?: {
3651
+ /**
3652
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3653
+ */
3654
+ 'Idempotency-Key'?: string;
3655
+ };
3484
3656
  path: {
3485
3657
  id: string;
3486
3658
  };
@@ -3505,7 +3677,7 @@ type PodsUpdateErrors = {
3505
3677
  */
3506
3678
  404: Error;
3507
3679
  /**
3508
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3680
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3509
3681
  */
3510
3682
  409: Error;
3511
3683
  /**
@@ -3520,6 +3692,10 @@ type PodsUpdateErrors = {
3520
3692
  * Something this needs is not answering right now. Retry in a moment.
3521
3693
  */
3522
3694
  503: Error;
3695
+ /**
3696
+ * 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.
3697
+ */
3698
+ 504: Error;
3523
3699
  };
3524
3700
  type PodsUpdateError = PodsUpdateErrors[keyof PodsUpdateErrors];
3525
3701
  type PodsUpdateResponses = {
@@ -3657,6 +3833,12 @@ type LabelsCreateResponses = {
3657
3833
  type LabelsCreateResponse = LabelsCreateResponses[keyof LabelsCreateResponses];
3658
3834
  type LabelsDeleteData = {
3659
3835
  body?: never;
3836
+ headers?: {
3837
+ /**
3838
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3839
+ */
3840
+ 'Idempotency-Key'?: string;
3841
+ };
3660
3842
  path: {
3661
3843
  id: string;
3662
3844
  };
@@ -3681,7 +3863,7 @@ type LabelsDeleteErrors = {
3681
3863
  */
3682
3864
  404: Error;
3683
3865
  /**
3684
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3866
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3685
3867
  */
3686
3868
  409: Error;
3687
3869
  /**
@@ -3696,6 +3878,10 @@ type LabelsDeleteErrors = {
3696
3878
  * Something this needs is not answering right now. Retry in a moment.
3697
3879
  */
3698
3880
  503: Error;
3881
+ /**
3882
+ * 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.
3883
+ */
3884
+ 504: Error;
3699
3885
  };
3700
3886
  type LabelsDeleteError = LabelsDeleteErrors[keyof LabelsDeleteErrors];
3701
3887
  type LabelsDeleteResponses = {
@@ -3712,6 +3898,12 @@ type LabelsUpdateData = {
3712
3898
  name?: string;
3713
3899
  colour?: 'slate' | 'red' | 'amber' | 'green' | 'teal' | 'blue' | 'violet' | 'pink';
3714
3900
  };
3901
+ headers?: {
3902
+ /**
3903
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3904
+ */
3905
+ 'Idempotency-Key'?: string;
3906
+ };
3715
3907
  path: {
3716
3908
  id: string;
3717
3909
  };
@@ -3736,7 +3928,7 @@ type LabelsUpdateErrors = {
3736
3928
  */
3737
3929
  404: Error;
3738
3930
  /**
3739
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3931
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3740
3932
  */
3741
3933
  409: Error;
3742
3934
  /**
@@ -3751,6 +3943,10 @@ type LabelsUpdateErrors = {
3751
3943
  * Something this needs is not answering right now. Retry in a moment.
3752
3944
  */
3753
3945
  503: Error;
3946
+ /**
3947
+ * 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.
3948
+ */
3949
+ 504: Error;
3754
3950
  };
3755
3951
  type LabelsUpdateError = LabelsUpdateErrors[keyof LabelsUpdateErrors];
3756
3952
  type LabelsUpdateResponses = {
@@ -3764,6 +3960,12 @@ type LabelsUpdateResponses = {
3764
3960
  type LabelsUpdateResponse = LabelsUpdateResponses[keyof LabelsUpdateResponses];
3765
3961
  type ThreadsLabelsDeleteData = {
3766
3962
  body?: never;
3963
+ headers?: {
3964
+ /**
3965
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
3966
+ */
3967
+ 'Idempotency-Key'?: string;
3968
+ };
3767
3969
  path: {
3768
3970
  id: string;
3769
3971
  };
@@ -3790,7 +3992,7 @@ type ThreadsLabelsDeleteErrors = {
3790
3992
  */
3791
3993
  404: Error;
3792
3994
  /**
3793
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
3995
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3794
3996
  */
3795
3997
  409: Error;
3796
3998
  /**
@@ -3805,6 +4007,10 @@ type ThreadsLabelsDeleteErrors = {
3805
4007
  * Something this needs is not answering right now. Retry in a moment.
3806
4008
  */
3807
4009
  503: Error;
4010
+ /**
4011
+ * 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.
4012
+ */
4013
+ 504: Error;
3808
4014
  };
3809
4015
  type ThreadsLabelsDeleteError = ThreadsLabelsDeleteErrors[keyof ThreadsLabelsDeleteErrors];
3810
4016
  type ThreadsLabelsDeleteResponses = {
@@ -3877,6 +4083,12 @@ type ThreadsLabelsCreateData = {
3877
4083
  body: {
3878
4084
  label_id: string;
3879
4085
  };
4086
+ headers?: {
4087
+ /**
4088
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
4089
+ */
4090
+ 'Idempotency-Key'?: string;
4091
+ };
3880
4092
  path: {
3881
4093
  id: string;
3882
4094
  };
@@ -3901,7 +4113,7 @@ type ThreadsLabelsCreateErrors = {
3901
4113
  */
3902
4114
  404: Error;
3903
4115
  /**
3904
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4116
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
3905
4117
  */
3906
4118
  409: Error;
3907
4119
  /**
@@ -3916,6 +4128,10 @@ type ThreadsLabelsCreateErrors = {
3916
4128
  * Something this needs is not answering right now. Retry in a moment.
3917
4129
  */
3918
4130
  503: Error;
4131
+ /**
4132
+ * 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.
4133
+ */
4134
+ 504: Error;
3919
4135
  };
3920
4136
  type ThreadsLabelsCreateError = ThreadsLabelsCreateErrors[keyof ThreadsLabelsCreateErrors];
3921
4137
  type ThreadsLabelsCreateResponses = {
@@ -4123,6 +4339,10 @@ type MessagesSearchData = {
4123
4339
  is_starred?: string;
4124
4340
  label_id?: string;
4125
4341
  limit?: number;
4342
+ /**
4343
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
4344
+ */
4345
+ cursor?: string;
4126
4346
  };
4127
4347
  url: '/messages/search';
4128
4348
  };
@@ -4183,6 +4403,12 @@ type MessagesActData = {
4183
4403
  */
4184
4404
  action: 'read' | 'unread' | 'star' | 'unstar' | 'archive' | 'unarchive' | 'delete' | 'restore' | 'spam' | 'not_spam' | 'delete_forever';
4185
4405
  };
4406
+ headers?: {
4407
+ /**
4408
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
4409
+ */
4410
+ 'Idempotency-Key'?: string;
4411
+ };
4186
4412
  path?: never;
4187
4413
  query?: never;
4188
4414
  url: '/messages/actions';
@@ -4205,7 +4431,7 @@ type MessagesActErrors = {
4205
4431
  */
4206
4432
  404: Error;
4207
4433
  /**
4208
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4434
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
4209
4435
  */
4210
4436
  409: Error;
4211
4437
  /**
@@ -4220,6 +4446,10 @@ type MessagesActErrors = {
4220
4446
  * Something this needs is not answering right now. Retry in a moment.
4221
4447
  */
4222
4448
  503: Error;
4449
+ /**
4450
+ * 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.
4451
+ */
4452
+ 504: Error;
4223
4453
  };
4224
4454
  type MessagesActError = MessagesActErrors[keyof MessagesActErrors];
4225
4455
  type MessagesActResponses = {
@@ -4233,7 +4463,23 @@ type MessagesActResponses = {
4233
4463
  type MessagesActResponse = MessagesActResponses[keyof MessagesActResponses];
4234
4464
  type MessagesUndoData = {
4235
4465
  body: {
4236
- undo: Array<unknown>;
4466
+ undo: Array<{
4467
+ messageId: string;
4468
+ rows: Array<{
4469
+ id: string;
4470
+ is_starred: boolean;
4471
+ is_archived: boolean;
4472
+ is_deleted: boolean;
4473
+ is_spam: boolean;
4474
+ }>;
4475
+ read?: Array<string>;
4476
+ }>;
4477
+ };
4478
+ headers?: {
4479
+ /**
4480
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
4481
+ */
4482
+ 'Idempotency-Key'?: string;
4237
4483
  };
4238
4484
  path?: never;
4239
4485
  query?: never;
@@ -4257,7 +4503,7 @@ type MessagesUndoErrors = {
4257
4503
  */
4258
4504
  404: Error;
4259
4505
  /**
4260
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4506
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
4261
4507
  */
4262
4508
  409: Error;
4263
4509
  /**
@@ -4272,6 +4518,10 @@ type MessagesUndoErrors = {
4272
4518
  * Something this needs is not answering right now. Retry in a moment.
4273
4519
  */
4274
4520
  503: Error;
4521
+ /**
4522
+ * 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.
4523
+ */
4524
+ 504: Error;
4275
4525
  };
4276
4526
  type MessagesUndoError = MessagesUndoErrors[keyof MessagesUndoErrors];
4277
4527
  type MessagesUndoResponses = {
@@ -4415,6 +4665,12 @@ type MessagesUpdateData = {
4415
4665
  is_starred?: boolean;
4416
4666
  folder?: 'inbox' | 'archive' | 'spam' | 'trash';
4417
4667
  };
4668
+ headers?: {
4669
+ /**
4670
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
4671
+ */
4672
+ 'Idempotency-Key'?: string;
4673
+ };
4418
4674
  path: {
4419
4675
  id: string;
4420
4676
  };
@@ -4439,7 +4695,7 @@ type MessagesUpdateErrors = {
4439
4695
  */
4440
4696
  404: Error;
4441
4697
  /**
4442
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
4698
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
4443
4699
  */
4444
4700
  409: Error;
4445
4701
  /**
@@ -4454,6 +4710,10 @@ type MessagesUpdateErrors = {
4454
4710
  * Something this needs is not answering right now. Retry in a moment.
4455
4711
  */
4456
4712
  503: Error;
4713
+ /**
4714
+ * 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.
4715
+ */
4716
+ 504: Error;
4457
4717
  };
4458
4718
  type MessagesUpdateError = MessagesUpdateErrors[keyof MessagesUpdateErrors];
4459
4719
  type MessagesUpdateResponses = {
@@ -4992,6 +5252,12 @@ type ThreadsUpdateData = {
4992
5252
  assignee_id?: string | null;
4993
5253
  reason?: string;
4994
5254
  };
5255
+ headers?: {
5256
+ /**
5257
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
5258
+ */
5259
+ 'Idempotency-Key'?: string;
5260
+ };
4995
5261
  path: {
4996
5262
  id: string;
4997
5263
  };
@@ -5016,7 +5282,7 @@ type ThreadsUpdateErrors = {
5016
5282
  */
5017
5283
  404: Error;
5018
5284
  /**
5019
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5285
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
5020
5286
  */
5021
5287
  409: Error;
5022
5288
  /**
@@ -5030,7 +5296,11 @@ type ThreadsUpdateErrors = {
5030
5296
  /**
5031
5297
  * Something this needs is not answering right now. Retry in a moment.
5032
5298
  */
5033
- 503: Error;
5299
+ 503: Error;
5300
+ /**
5301
+ * 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.
5302
+ */
5303
+ 504: Error;
5034
5304
  };
5035
5305
  type ThreadsUpdateError = ThreadsUpdateErrors[keyof ThreadsUpdateErrors];
5036
5306
  type ThreadsUpdateResponses = {
@@ -5282,6 +5552,12 @@ type DomainsGetSetupLinkResponses = {
5282
5552
  type DomainsGetSetupLinkResponse = DomainsGetSetupLinkResponses[keyof DomainsGetSetupLinkResponses];
5283
5553
  type DomainsVerifyData = {
5284
5554
  body?: never;
5555
+ headers?: {
5556
+ /**
5557
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
5558
+ */
5559
+ 'Idempotency-Key'?: string;
5560
+ };
5285
5561
  path: {
5286
5562
  id: string;
5287
5563
  };
@@ -5306,7 +5582,7 @@ type DomainsVerifyErrors = {
5306
5582
  */
5307
5583
  404: Error;
5308
5584
  /**
5309
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5585
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
5310
5586
  */
5311
5587
  409: Error;
5312
5588
  /**
@@ -5321,6 +5597,10 @@ type DomainsVerifyErrors = {
5321
5597
  * Something this needs is not answering right now. Retry in a moment.
5322
5598
  */
5323
5599
  503: Error;
5600
+ /**
5601
+ * 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.
5602
+ */
5603
+ 504: Error;
5324
5604
  };
5325
5605
  type DomainsVerifyError = DomainsVerifyErrors[keyof DomainsVerifyErrors];
5326
5606
  type DomainsVerifyResponses = {
@@ -5334,6 +5614,12 @@ type DomainsVerifyResponses = {
5334
5614
  type DomainsVerifyResponse = DomainsVerifyResponses[keyof DomainsVerifyResponses];
5335
5615
  type DomainsDeleteData = {
5336
5616
  body?: never;
5617
+ headers?: {
5618
+ /**
5619
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
5620
+ */
5621
+ 'Idempotency-Key'?: string;
5622
+ };
5337
5623
  path: {
5338
5624
  id: string;
5339
5625
  };
@@ -5358,7 +5644,7 @@ type DomainsDeleteErrors = {
5358
5644
  */
5359
5645
  404: Error;
5360
5646
  /**
5361
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5647
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
5362
5648
  */
5363
5649
  409: Error;
5364
5650
  /**
@@ -5373,6 +5659,10 @@ type DomainsDeleteErrors = {
5373
5659
  * Something this needs is not answering right now. Retry in a moment.
5374
5660
  */
5375
5661
  503: Error;
5662
+ /**
5663
+ * 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.
5664
+ */
5665
+ 504: Error;
5376
5666
  };
5377
5667
  type DomainsDeleteError = DomainsDeleteErrors[keyof DomainsDeleteErrors];
5378
5668
  type DomainsDeleteResponses = {
@@ -5440,6 +5730,12 @@ type DomainsUpdateData = {
5440
5730
  body: {
5441
5731
  catch_all_enabled: boolean;
5442
5732
  };
5733
+ headers?: {
5734
+ /**
5735
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
5736
+ */
5737
+ 'Idempotency-Key'?: string;
5738
+ };
5443
5739
  path: {
5444
5740
  id: string;
5445
5741
  };
@@ -5464,7 +5760,7 @@ type DomainsUpdateErrors = {
5464
5760
  */
5465
5761
  404: Error;
5466
5762
  /**
5467
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5763
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
5468
5764
  */
5469
5765
  409: Error;
5470
5766
  /**
@@ -5479,6 +5775,10 @@ type DomainsUpdateErrors = {
5479
5775
  * Something this needs is not answering right now. Retry in a moment.
5480
5776
  */
5481
5777
  503: Error;
5778
+ /**
5779
+ * 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.
5780
+ */
5781
+ 504: Error;
5482
5782
  };
5483
5783
  type DomainsUpdateError = DomainsUpdateErrors[keyof DomainsUpdateErrors];
5484
5784
  type DomainsUpdateResponses = {
@@ -5630,6 +5930,12 @@ type RoutingCreateResponses = {
5630
5930
  type RoutingCreateResponse = RoutingCreateResponses[keyof RoutingCreateResponses];
5631
5931
  type RoutingDeleteData = {
5632
5932
  body?: never;
5933
+ headers?: {
5934
+ /**
5935
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
5936
+ */
5937
+ 'Idempotency-Key'?: string;
5938
+ };
5633
5939
  path: {
5634
5940
  id: string;
5635
5941
  };
@@ -5654,7 +5960,7 @@ type RoutingDeleteErrors = {
5654
5960
  */
5655
5961
  404: Error;
5656
5962
  /**
5657
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
5963
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
5658
5964
  */
5659
5965
  409: Error;
5660
5966
  /**
@@ -5669,6 +5975,10 @@ type RoutingDeleteErrors = {
5669
5975
  * Something this needs is not answering right now. Retry in a moment.
5670
5976
  */
5671
5977
  503: Error;
5978
+ /**
5979
+ * 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.
5980
+ */
5981
+ 504: Error;
5672
5982
  };
5673
5983
  type RoutingDeleteError = RoutingDeleteErrors[keyof RoutingDeleteErrors];
5674
5984
  type RoutingDeleteResponses = {
@@ -5684,6 +5994,12 @@ type RoutingUpdateData = {
5684
5994
  body: {
5685
5995
  status: 'active' | 'disabled';
5686
5996
  };
5997
+ headers?: {
5998
+ /**
5999
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
6000
+ */
6001
+ 'Idempotency-Key'?: string;
6002
+ };
5687
6003
  path: {
5688
6004
  id: string;
5689
6005
  };
@@ -5708,7 +6024,7 @@ type RoutingUpdateErrors = {
5708
6024
  */
5709
6025
  404: Error;
5710
6026
  /**
5711
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6027
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
5712
6028
  */
5713
6029
  409: Error;
5714
6030
  /**
@@ -5723,6 +6039,10 @@ type RoutingUpdateErrors = {
5723
6039
  * Something this needs is not answering right now. Retry in a moment.
5724
6040
  */
5725
6041
  503: Error;
6042
+ /**
6043
+ * 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.
6044
+ */
6045
+ 504: Error;
5726
6046
  };
5727
6047
  type RoutingUpdateError = RoutingUpdateErrors[keyof RoutingUpdateErrors];
5728
6048
  type RoutingUpdateResponses = {
@@ -5856,6 +6176,12 @@ type MailboxesChangesResponses = {
5856
6176
  type MailboxesChangesResponse = MailboxesChangesResponses[keyof MailboxesChangesResponses];
5857
6177
  type MailboxesEmptyTrashData = {
5858
6178
  body?: never;
6179
+ headers?: {
6180
+ /**
6181
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
6182
+ */
6183
+ 'Idempotency-Key'?: string;
6184
+ };
5859
6185
  path: {
5860
6186
  folder: string;
5861
6187
  };
@@ -5882,7 +6208,7 @@ type MailboxesEmptyTrashErrors = {
5882
6208
  */
5883
6209
  404: Error;
5884
6210
  /**
5885
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6211
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
5886
6212
  */
5887
6213
  409: Error;
5888
6214
  /**
@@ -5897,6 +6223,10 @@ type MailboxesEmptyTrashErrors = {
5897
6223
  * Something this needs is not answering right now. Retry in a moment.
5898
6224
  */
5899
6225
  503: Error;
6226
+ /**
6227
+ * 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.
6228
+ */
6229
+ 504: Error;
5900
6230
  };
5901
6231
  type MailboxesEmptyTrashError = MailboxesEmptyTrashErrors[keyof MailboxesEmptyTrashErrors];
5902
6232
  type MailboxesEmptyTrashResponses = {
@@ -6135,6 +6465,12 @@ type KeysCreateResponses = {
6135
6465
  type KeysCreateResponse = KeysCreateResponses[keyof KeysCreateResponses];
6136
6466
  type KeysRevokeData = {
6137
6467
  body?: never;
6468
+ headers?: {
6469
+ /**
6470
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
6471
+ */
6472
+ 'Idempotency-Key'?: string;
6473
+ };
6138
6474
  path: {
6139
6475
  id: string;
6140
6476
  };
@@ -6159,7 +6495,7 @@ type KeysRevokeErrors = {
6159
6495
  */
6160
6496
  404: Error;
6161
6497
  /**
6162
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6498
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
6163
6499
  */
6164
6500
  409: Error;
6165
6501
  /**
@@ -6174,6 +6510,10 @@ type KeysRevokeErrors = {
6174
6510
  * Something this needs is not answering right now. Retry in a moment.
6175
6511
  */
6176
6512
  503: Error;
6513
+ /**
6514
+ * 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.
6515
+ */
6516
+ 504: Error;
6177
6517
  };
6178
6518
  type KeysRevokeError = KeysRevokeErrors[keyof KeysRevokeErrors];
6179
6519
  type KeysRevokeResponses = {
@@ -6241,6 +6581,12 @@ type KeysUpdateData = {
6241
6581
  body: {
6242
6582
  name: string;
6243
6583
  };
6584
+ headers?: {
6585
+ /**
6586
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
6587
+ */
6588
+ 'Idempotency-Key'?: string;
6589
+ };
6244
6590
  path: {
6245
6591
  id: string;
6246
6592
  };
@@ -6265,7 +6611,7 @@ type KeysUpdateErrors = {
6265
6611
  */
6266
6612
  404: Error;
6267
6613
  /**
6268
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6614
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
6269
6615
  */
6270
6616
  409: Error;
6271
6617
  /**
@@ -6280,6 +6626,10 @@ type KeysUpdateErrors = {
6280
6626
  * Something this needs is not answering right now. Retry in a moment.
6281
6627
  */
6282
6628
  503: Error;
6629
+ /**
6630
+ * 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.
6631
+ */
6632
+ 504: Error;
6283
6633
  };
6284
6634
  type KeysUpdateError = KeysUpdateErrors[keyof KeysUpdateErrors];
6285
6635
  type KeysUpdateResponses = {
@@ -6513,6 +6863,12 @@ type AppPasswordsCreateData = {
6513
6863
  identity_id: string;
6514
6864
  name: string;
6515
6865
  };
6866
+ headers?: {
6867
+ /**
6868
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
6869
+ */
6870
+ 'Idempotency-Key'?: string;
6871
+ };
6516
6872
  path?: never;
6517
6873
  query?: never;
6518
6874
  url: '/app-passwords';
@@ -6539,7 +6895,7 @@ type AppPasswordsCreateErrors = {
6539
6895
  */
6540
6896
  404: Error;
6541
6897
  /**
6542
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6898
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
6543
6899
  */
6544
6900
  409: Error;
6545
6901
  /**
@@ -6554,6 +6910,10 @@ type AppPasswordsCreateErrors = {
6554
6910
  * Something this needs is not answering right now. Retry in a moment.
6555
6911
  */
6556
6912
  503: Error;
6913
+ /**
6914
+ * 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.
6915
+ */
6916
+ 504: Error;
6557
6917
  };
6558
6918
  type AppPasswordsCreateError = AppPasswordsCreateErrors[keyof AppPasswordsCreateErrors];
6559
6919
  type AppPasswordsCreateResponses = {
@@ -6561,12 +6921,18 @@ type AppPasswordsCreateResponses = {
6561
6921
  * The credentials, once.
6562
6922
  */
6563
6923
  201: {
6564
- data: AppPassword;
6924
+ data: AppPasswordCreated;
6565
6925
  };
6566
6926
  };
6567
6927
  type AppPasswordsCreateResponse = AppPasswordsCreateResponses[keyof AppPasswordsCreateResponses];
6568
6928
  type AppPasswordsRevokeData = {
6569
6929
  body?: never;
6930
+ headers?: {
6931
+ /**
6932
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
6933
+ */
6934
+ 'Idempotency-Key'?: string;
6935
+ };
6570
6936
  path: {
6571
6937
  id: string;
6572
6938
  };
@@ -6591,7 +6957,7 @@ type AppPasswordsRevokeErrors = {
6591
6957
  */
6592
6958
  404: Error;
6593
6959
  /**
6594
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
6960
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
6595
6961
  */
6596
6962
  409: Error;
6597
6963
  /**
@@ -6606,6 +6972,10 @@ type AppPasswordsRevokeErrors = {
6606
6972
  * Something this needs is not answering right now. Retry in a moment.
6607
6973
  */
6608
6974
  503: Error;
6975
+ /**
6976
+ * 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.
6977
+ */
6978
+ 504: Error;
6609
6979
  };
6610
6980
  type AppPasswordsRevokeError = AppPasswordsRevokeErrors[keyof AppPasswordsRevokeErrors];
6611
6981
  type AppPasswordsRevokeResponses = {
@@ -7132,6 +7502,12 @@ type WebhooksCreateResponses = {
7132
7502
  type WebhooksCreateResponse = WebhooksCreateResponses[keyof WebhooksCreateResponses];
7133
7503
  type WebhooksDeleteData = {
7134
7504
  body?: never;
7505
+ headers?: {
7506
+ /**
7507
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
7508
+ */
7509
+ 'Idempotency-Key'?: string;
7510
+ };
7135
7511
  path: {
7136
7512
  id: string;
7137
7513
  };
@@ -7156,7 +7532,7 @@ type WebhooksDeleteErrors = {
7156
7532
  */
7157
7533
  404: Error;
7158
7534
  /**
7159
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7535
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
7160
7536
  */
7161
7537
  409: Error;
7162
7538
  /**
@@ -7171,6 +7547,10 @@ type WebhooksDeleteErrors = {
7171
7547
  * Something this needs is not answering right now. Retry in a moment.
7172
7548
  */
7173
7549
  503: Error;
7550
+ /**
7551
+ * 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.
7552
+ */
7553
+ 504: Error;
7174
7554
  };
7175
7555
  type WebhooksDeleteError = WebhooksDeleteErrors[keyof WebhooksDeleteErrors];
7176
7556
  type WebhooksDeleteResponses = {
@@ -7238,6 +7618,12 @@ type WebhooksUpdateData = {
7238
7618
  body: {
7239
7619
  status: 'active' | 'disabled';
7240
7620
  };
7621
+ headers?: {
7622
+ /**
7623
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
7624
+ */
7625
+ 'Idempotency-Key'?: string;
7626
+ };
7241
7627
  path: {
7242
7628
  id: string;
7243
7629
  };
@@ -7262,7 +7648,7 @@ type WebhooksUpdateErrors = {
7262
7648
  */
7263
7649
  404: Error;
7264
7650
  /**
7265
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7651
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
7266
7652
  */
7267
7653
  409: Error;
7268
7654
  /**
@@ -7277,6 +7663,10 @@ type WebhooksUpdateErrors = {
7277
7663
  * Something this needs is not answering right now. Retry in a moment.
7278
7664
  */
7279
7665
  503: Error;
7666
+ /**
7667
+ * 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.
7668
+ */
7669
+ 504: Error;
7280
7670
  };
7281
7671
  type WebhooksUpdateError = WebhooksUpdateErrors[keyof WebhooksUpdateErrors];
7282
7672
  type WebhooksUpdateResponses = {
@@ -7346,6 +7736,12 @@ type WebhooksUpdateHeadersData = {
7346
7736
  [key: string]: string;
7347
7737
  };
7348
7738
  };
7739
+ headers?: {
7740
+ /**
7741
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
7742
+ */
7743
+ 'Idempotency-Key'?: string;
7744
+ };
7349
7745
  path: {
7350
7746
  id: string;
7351
7747
  };
@@ -7370,7 +7766,7 @@ type WebhooksUpdateHeadersErrors = {
7370
7766
  */
7371
7767
  404: Error;
7372
7768
  /**
7373
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7769
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
7374
7770
  */
7375
7771
  409: Error;
7376
7772
  /**
@@ -7385,6 +7781,10 @@ type WebhooksUpdateHeadersErrors = {
7385
7781
  * Something this needs is not answering right now. Retry in a moment.
7386
7782
  */
7387
7783
  503: Error;
7784
+ /**
7785
+ * 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.
7786
+ */
7787
+ 504: Error;
7388
7788
  };
7389
7789
  type WebhooksUpdateHeadersError = WebhooksUpdateHeadersErrors[keyof WebhooksUpdateHeadersErrors];
7390
7790
  type WebhooksUpdateHeadersResponses = {
@@ -7402,6 +7802,10 @@ type WebhooksDeliveriesData = {
7402
7802
  query: {
7403
7803
  webhook_id: string;
7404
7804
  limit?: number;
7805
+ /**
7806
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
7807
+ */
7808
+ cursor?: string;
7405
7809
  };
7406
7810
  url: '/deliveries';
7407
7811
  };
@@ -7456,6 +7860,12 @@ type WebhooksDeliveriesResponses = {
7456
7860
  type WebhooksDeliveriesResponse = WebhooksDeliveriesResponses[keyof WebhooksDeliveriesResponses];
7457
7861
  type WebhooksReplayData = {
7458
7862
  body?: never;
7863
+ headers?: {
7864
+ /**
7865
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
7866
+ */
7867
+ 'Idempotency-Key'?: string;
7868
+ };
7459
7869
  path: {
7460
7870
  id: string;
7461
7871
  };
@@ -7480,7 +7890,7 @@ type WebhooksReplayErrors = {
7480
7890
  */
7481
7891
  404: Error;
7482
7892
  /**
7483
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
7893
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
7484
7894
  */
7485
7895
  409: Error;
7486
7896
  /**
@@ -7495,6 +7905,10 @@ type WebhooksReplayErrors = {
7495
7905
  * Something this needs is not answering right now. Retry in a moment.
7496
7906
  */
7497
7907
  503: Error;
7908
+ /**
7909
+ * 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.
7910
+ */
7911
+ 504: Error;
7498
7912
  };
7499
7913
  type WebhooksReplayError = WebhooksReplayErrors[keyof WebhooksReplayErrors];
7500
7914
  type WebhooksReplayResponses = {
@@ -7641,6 +8055,10 @@ type CalendarUpdateData = {
7641
8055
  * The `etag` you last read. A stale one is a `409` naming the current version — two agents on one mailbox is the case this product is for, and last-write-wins loses a meeting.
7642
8056
  */
7643
8057
  'If-Match'?: string;
8058
+ /**
8059
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
8060
+ */
8061
+ 'Idempotency-Key'?: string;
7644
8062
  };
7645
8063
  path: {
7646
8064
  id: string;
@@ -7666,7 +8084,7 @@ type CalendarUpdateErrors = {
7666
8084
  */
7667
8085
  404: Error;
7668
8086
  /**
7669
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
8087
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
7670
8088
  */
7671
8089
  409: Error;
7672
8090
  /**
@@ -7681,6 +8099,10 @@ type CalendarUpdateErrors = {
7681
8099
  * Something this needs is not answering right now. Retry in a moment.
7682
8100
  */
7683
8101
  503: Error;
8102
+ /**
8103
+ * 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.
8104
+ */
8105
+ 504: Error;
7684
8106
  };
7685
8107
  type CalendarUpdateError = CalendarUpdateErrors[keyof CalendarUpdateErrors];
7686
8108
  type CalendarUpdateResponses = {
@@ -7927,6 +8349,10 @@ type CalendarListEventInstancesData = {
7927
8349
  after?: string;
7928
8350
  before?: string;
7929
8351
  limit?: number;
8352
+ /**
8353
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
8354
+ */
8355
+ cursor?: string;
7930
8356
  };
7931
8357
  url: '/identities/{id}/calendar/events/{eventId}/instances';
7932
8358
  };
@@ -7993,6 +8419,10 @@ type CalendarGetAgendaData = {
7993
8419
  before?: string;
7994
8420
  include_overlapping?: 'true' | 'false';
7995
8421
  limit?: number;
8422
+ /**
8423
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
8424
+ */
8425
+ cursor?: string;
7996
8426
  };
7997
8427
  url: '/identities/{id}/calendar/agenda';
7998
8428
  };
@@ -8285,6 +8715,10 @@ type DraftsListData = {
8285
8715
  query: {
8286
8716
  identity_id: string;
8287
8717
  limit?: number;
8718
+ /**
8719
+ * From a previous page’s `next_cursor`. Opaque — do not parse it.
8720
+ */
8721
+ cursor?: string;
8288
8722
  };
8289
8723
  url: '/drafts';
8290
8724
  };
@@ -8453,6 +8887,12 @@ type DraftsCreateResponses = {
8453
8887
  type DraftsCreateResponse = DraftsCreateResponses[keyof DraftsCreateResponses];
8454
8888
  type DraftsDeleteData = {
8455
8889
  body?: never;
8890
+ headers?: {
8891
+ /**
8892
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
8893
+ */
8894
+ 'Idempotency-Key'?: string;
8895
+ };
8456
8896
  path: {
8457
8897
  id: string;
8458
8898
  };
@@ -8477,7 +8917,7 @@ type DraftsDeleteErrors = {
8477
8917
  */
8478
8918
  404: Error;
8479
8919
  /**
8480
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
8920
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
8481
8921
  */
8482
8922
  409: Error;
8483
8923
  /**
@@ -8492,6 +8932,10 @@ type DraftsDeleteErrors = {
8492
8932
  * Something this needs is not answering right now. Retry in a moment.
8493
8933
  */
8494
8934
  503: Error;
8935
+ /**
8936
+ * 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.
8937
+ */
8938
+ 504: Error;
8495
8939
  };
8496
8940
  type DraftsDeleteError = DraftsDeleteErrors[keyof DraftsDeleteErrors];
8497
8941
  type DraftsDeleteResponses = {
@@ -8599,6 +9043,12 @@ type DraftsUpdateData = {
8599
9043
  */
8600
9044
  attachment_ids?: Array<string>;
8601
9045
  };
9046
+ headers?: {
9047
+ /**
9048
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
9049
+ */
9050
+ 'Idempotency-Key'?: string;
9051
+ };
8602
9052
  path: {
8603
9053
  id: string;
8604
9054
  };
@@ -8623,7 +9073,7 @@ type DraftsUpdateErrors = {
8623
9073
  */
8624
9074
  404: Error;
8625
9075
  /**
8626
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
9076
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
8627
9077
  */
8628
9078
  409: Error;
8629
9079
  /**
@@ -8638,6 +9088,10 @@ type DraftsUpdateErrors = {
8638
9088
  * Something this needs is not answering right now. Retry in a moment.
8639
9089
  */
8640
9090
  503: Error;
9091
+ /**
9092
+ * 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.
9093
+ */
9094
+ 504: Error;
8641
9095
  };
8642
9096
  type DraftsUpdateError = DraftsUpdateErrors[keyof DraftsUpdateErrors];
8643
9097
  type DraftsUpdateResponses = {
@@ -8713,6 +9167,12 @@ type DraftsSendResponses = {
8713
9167
  type DraftsSendResponse = DraftsSendResponses[keyof DraftsSendResponses];
8714
9168
  type DraftsCancelScheduleData = {
8715
9169
  body?: never;
9170
+ headers?: {
9171
+ /**
9172
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
9173
+ */
9174
+ 'Idempotency-Key'?: string;
9175
+ };
8716
9176
  path: {
8717
9177
  id: string;
8718
9178
  };
@@ -8737,7 +9197,7 @@ type DraftsCancelScheduleErrors = {
8737
9197
  */
8738
9198
  404: Error;
8739
9199
  /**
8740
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
9200
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
8741
9201
  */
8742
9202
  409: Error;
8743
9203
  /**
@@ -8752,6 +9212,10 @@ type DraftsCancelScheduleErrors = {
8752
9212
  * Something this needs is not answering right now. Retry in a moment.
8753
9213
  */
8754
9214
  503: Error;
9215
+ /**
9216
+ * 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.
9217
+ */
9218
+ 504: Error;
8755
9219
  };
8756
9220
  type DraftsCancelScheduleError = DraftsCancelScheduleErrors[keyof DraftsCancelScheduleErrors];
8757
9221
  type DraftsCancelScheduleResponses = {
@@ -8829,6 +9293,12 @@ type DraftsScheduleResponses = {
8829
9293
  type DraftsScheduleResponse = DraftsScheduleResponses[keyof DraftsScheduleResponses];
8830
9294
  type DraftsRemoveAttachmentData = {
8831
9295
  body?: never;
9296
+ headers?: {
9297
+ /**
9298
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
9299
+ */
9300
+ 'Idempotency-Key'?: string;
9301
+ };
8832
9302
  path: {
8833
9303
  id: string;
8834
9304
  attachmentId: string;
@@ -8854,7 +9324,7 @@ type DraftsRemoveAttachmentErrors = {
8854
9324
  */
8855
9325
  404: Error;
8856
9326
  /**
8857
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
9327
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
8858
9328
  */
8859
9329
  409: Error;
8860
9330
  /**
@@ -8869,6 +9339,10 @@ type DraftsRemoveAttachmentErrors = {
8869
9339
  * Something this needs is not answering right now. Retry in a moment.
8870
9340
  */
8871
9341
  503: Error;
9342
+ /**
9343
+ * 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.
9344
+ */
9345
+ 504: Error;
8872
9346
  };
8873
9347
  type DraftsRemoveAttachmentError = DraftsRemoveAttachmentErrors[keyof DraftsRemoveAttachmentErrors];
8874
9348
  type DraftsRemoveAttachmentResponses = {
@@ -8939,6 +9413,12 @@ type AttachmentsUploadData = {
8939
9413
  identity_id: string;
8940
9414
  file: Blob | File;
8941
9415
  };
9416
+ headers?: {
9417
+ /**
9418
+ * Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing — no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.
9419
+ */
9420
+ 'Idempotency-Key'?: string;
9421
+ };
8942
9422
  path?: never;
8943
9423
  query?: never;
8944
9424
  url: '/attachments';
@@ -8961,7 +9441,7 @@ type AttachmentsUploadErrors = {
8961
9441
  */
8962
9442
  404: Error;
8963
9443
  /**
8964
- * It conflicts with what is there: it already exists, or the `etag` you sent is not the current one.
9444
+ * Nothing was done by this call. `error.code` says which: `idempotency_in_progress` when the first request with this `Idempotency-Key` has not answered yet (wait `Retry-After` seconds and send it again), `idempotency_mismatch` when the key was used with a different request (use a new key).
8965
9445
  */
8966
9446
  409: Error;
8967
9447
  /**
@@ -8976,6 +9456,10 @@ type AttachmentsUploadErrors = {
8976
9456
  * Something this needs is not answering right now. Retry in a moment.
8977
9457
  */
8978
9458
  503: Error;
9459
+ /**
9460
+ * 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.
9461
+ */
9462
+ 504: Error;
8979
9463
  };
8980
9464
  type AttachmentsUploadError = AttachmentsUploadErrors[keyof AttachmentsUploadErrors];
8981
9465
  type AttachmentsUploadResponses = {
@@ -9911,4 +10395,4 @@ interface StreamOptions {
9911
10395
  */
9912
10396
  declare function streamEvents(options: StreamOptions): AsyncGenerator<StreamedEvent>;
9913
10397
 
9914
- export { type Address, type AgentAttachHumanData, type AgentAttachHumanError, type AgentAttachHumanErrors, type AgentAttachHumanResponse, type AgentAttachHumanResponses, type AgentSignUpData, type AgentSignUpError, type AgentSignUpErrors, type AgentSignUpResponse, type AgentSignUpResponses, type AgentSignup, type AgentVerified, type AgentVerifyData, type AgentVerifyError, type AgentVerifyErrors, type AgentVerifyResponse, type AgentVerifyResponses, type ApiKey, type ApiKeyCreated, type AppPassword, type AppPasswordsCreateData, type AppPasswordsCreateError, type AppPasswordsCreateErrors, type AppPasswordsCreateResponse, type AppPasswordsCreateResponses, type AppPasswordsListData, type AppPasswordsListError, type AppPasswordsListErrors, type AppPasswordsListResponse, type AppPasswordsListResponses, type AppPasswordsRevokeData, type AppPasswordsRevokeError, type AppPasswordsRevokeErrors, type AppPasswordsRevokeResponse, type AppPasswordsRevokeResponses, type Attachment, type AttachmentText, type AttachmentUrl, type AttachmentsDownloadUrlData, type AttachmentsDownloadUrlError, type AttachmentsDownloadUrlErrors, type AttachmentsDownloadUrlResponse, type AttachmentsDownloadUrlResponses, type AttachmentsTextData, type AttachmentsTextError, type AttachmentsTextErrors, type AttachmentsTextResponse, type AttachmentsTextResponses, type AttachmentsUploadData, type AttachmentsUploadError, type AttachmentsUploadErrors, type AttachmentsUploadResponse, type AttachmentsUploadResponses, type AwaitedMessage, type Calendar, type CalendarCreateEventData, type CalendarCreateEventError, type CalendarCreateEventErrors, type CalendarCreateEventResponse, type CalendarCreateEventResponses, type CalendarDeleteEventData, type CalendarDeleteEventError, type CalendarDeleteEventErrors, type CalendarDeleteEventResponse, type CalendarDeleteEventResponses, type CalendarEvent, type CalendarGetAgendaData, type CalendarGetAgendaError, type CalendarGetAgendaErrors, type CalendarGetAgendaResponse, type CalendarGetAgendaResponses, type CalendarGetData, type CalendarGetError, type CalendarGetErrors, type CalendarGetEventData, type CalendarGetEventError, type CalendarGetEventErrors, type CalendarGetEventResponse, type CalendarGetEventResponses, type CalendarGetResponse, type CalendarGetResponses, type CalendarListEventInstancesData, type CalendarListEventInstancesError, type CalendarListEventInstancesErrors, type CalendarListEventInstancesResponse, type CalendarListEventInstancesResponses, type CalendarListEventsData, type CalendarListEventsError, type CalendarListEventsErrors, type CalendarListEventsResponse, type CalendarListEventsResponses, type CalendarRespondToEventData, type CalendarRespondToEventError, type CalendarRespondToEventErrors, type CalendarRespondToEventResponse, type CalendarRespondToEventResponses, type CalendarUpdateData, type CalendarUpdateError, type CalendarUpdateErrors, type CalendarUpdateEventData, type CalendarUpdateEventError, type CalendarUpdateEventErrors, type CalendarUpdateEventResponse, type CalendarUpdateEventResponses, type CalendarUpdateResponse, type CalendarUpdateResponses, type ClientOptions, type CreateClientConfig, type CreatedDomain, type Deleted, type Delivery, type DnsRecord, type Domain, type DomainDetail, type DomainsCreateData, type DomainsCreateError, type DomainsCreateErrors, type DomainsCreateResponse, type DomainsCreateResponses, type DomainsDeleteData, type DomainsDeleteError, type DomainsDeleteErrors, type DomainsDeleteResponse, type DomainsDeleteResponses, type DomainsGetData, type DomainsGetError, type DomainsGetErrors, type DomainsGetResponse, type DomainsGetResponses, type DomainsGetSetupLinkData, type DomainsGetSetupLinkError, type DomainsGetSetupLinkErrors, type DomainsGetSetupLinkResponse, type DomainsGetSetupLinkResponses, type DomainsListData, type DomainsListError, type DomainsListErrors, type DomainsListResponse, type DomainsListResponses, type DomainsUpdateData, type DomainsUpdateError, type DomainsUpdateErrors, type DomainsUpdateResponse, type DomainsUpdateResponses, type DomainsVerifyData, type DomainsVerifyError, type DomainsVerifyErrors, type DomainsVerifyResponse, type DomainsVerifyResponses, type DomainsZoneFileData, type DomainsZoneFileError, type DomainsZoneFileErrors, type DomainsZoneFileResponse, type DomainsZoneFileResponses, type Draft, type DraftsCancelScheduleData, type DraftsCancelScheduleError, type DraftsCancelScheduleErrors, type DraftsCancelScheduleResponse, type DraftsCancelScheduleResponses, type DraftsCreateData, type DraftsCreateError, type DraftsCreateErrors, type DraftsCreateResponse, type DraftsCreateResponses, type DraftsDeleteData, type DraftsDeleteError, type DraftsDeleteErrors, type DraftsDeleteResponse, type DraftsDeleteResponses, type DraftsGetData, type DraftsGetError, type DraftsGetErrors, type DraftsGetResponse, type DraftsGetResponses, type DraftsListData, type DraftsListError, type DraftsListErrors, type DraftsListResponse, type DraftsListResponses, type DraftsRemoveAttachmentData, type DraftsRemoveAttachmentError, type DraftsRemoveAttachmentErrors, type DraftsRemoveAttachmentResponse, type DraftsRemoveAttachmentResponses, type DraftsScheduleData, type DraftsScheduleError, type DraftsScheduleErrors, type DraftsScheduleResponse, type DraftsScheduleResponses, type DraftsSendData, type DraftsSendError, type DraftsSendErrors, type DraftsSendResponse, type DraftsSendResponses, type DraftsUpdateData, type DraftsUpdateError, type DraftsUpdateErrors, type DraftsUpdateResponse, type DraftsUpdateResponses, type Emptied, type Error, type Event, type EventResponse, type EventsGetData, type EventsGetError, type EventsGetErrors, type EventsGetResponse, type EventsGetResponses, type EventsListData, type EventsListError, type EventsListErrors, type EventsListResponse, type EventsListResponses, type EventsSocketData, type EventsSocketError, type EventsSocketErrors, type EventsStreamData, type EventsStreamError, type EventsStreamErrors, type EventsStreamResponse, type EventsStreamResponses, type ExportMailData, type ExportMailError, type ExportMailErrors, type ExportMailResponse, type ExportMailResponses, type IdentitiesAccessCreateData, type IdentitiesAccessCreateError, type IdentitiesAccessCreateErrors, type IdentitiesAccessCreateResponse, type IdentitiesAccessCreateResponses, type IdentitiesAccessDeleteData, type IdentitiesAccessDeleteError, type IdentitiesAccessDeleteErrors, type IdentitiesAccessDeleteResponse, type IdentitiesAccessDeleteResponses, type IdentitiesAccessGetData, type IdentitiesAccessGetError, type IdentitiesAccessGetErrors, type IdentitiesAccessGetResponse, type IdentitiesAccessGetResponses, type IdentitiesCreateData, type IdentitiesCreateError, type IdentitiesCreateErrors, type IdentitiesCreateResponse, type IdentitiesCreateResponses, type IdentitiesDeleteData, type IdentitiesDeleteError, type IdentitiesDeleteErrors, type IdentitiesDeleteResponse, type IdentitiesDeleteResponses, type IdentitiesGetData, type IdentitiesGetError, type IdentitiesGetErrors, type IdentitiesGetResponse, type IdentitiesGetResponses, type IdentitiesListData, type IdentitiesListError, type IdentitiesListErrors, type IdentitiesListResponse, type IdentitiesListResponses, type IdentitiesReceiveRulesCreateData, type IdentitiesReceiveRulesCreateError, type IdentitiesReceiveRulesCreateErrors, type IdentitiesReceiveRulesCreateResponse, type IdentitiesReceiveRulesCreateResponses, type IdentitiesReceiveRulesDeleteData, type IdentitiesReceiveRulesDeleteError, type IdentitiesReceiveRulesDeleteErrors, type IdentitiesReceiveRulesDeleteResponse, type IdentitiesReceiveRulesDeleteResponses, type IdentitiesReceiveRulesGetData, type IdentitiesReceiveRulesGetError, type IdentitiesReceiveRulesGetErrors, type IdentitiesReceiveRulesGetResponse, type IdentitiesReceiveRulesGetResponses, type IdentitiesSendRulesCreateData, type IdentitiesSendRulesCreateError, type IdentitiesSendRulesCreateErrors, type IdentitiesSendRulesCreateResponse, type IdentitiesSendRulesCreateResponses, type IdentitiesSendRulesDeleteData, type IdentitiesSendRulesDeleteError, type IdentitiesSendRulesDeleteErrors, type IdentitiesSendRulesDeleteResponse, type IdentitiesSendRulesDeleteResponses, type IdentitiesSendRulesGetData, type IdentitiesSendRulesGetError, type IdentitiesSendRulesGetErrors, type IdentitiesSendRulesGetResponse, type IdentitiesSendRulesGetResponses, type IdentitiesSuspendTenantData, type IdentitiesSuspendTenantError, type IdentitiesSuspendTenantErrors, type IdentitiesSuspendTenantResponse, type IdentitiesSuspendTenantResponses, type IdentitiesUpdateData, type IdentitiesUpdateError, type IdentitiesUpdateErrors, type IdentitiesUpdateResponse, type IdentitiesUpdateResponses, type Identity, type Invitation, type InvitationResponse, type KeysCreateData, type KeysCreateError, type KeysCreateErrors, type KeysCreateResponse, type KeysCreateResponses, type KeysGetData, type KeysGetError, type KeysGetErrors, type KeysGetResponse, type KeysGetResponses, type KeysListData, type KeysListError, type KeysListErrors, type KeysListResponse, type KeysListResponses, type KeysRevokeData, type KeysRevokeError, type KeysRevokeErrors, type KeysRevokeResponse, type KeysRevokeResponses, type KeysRotateData, type KeysRotateError, type KeysRotateErrors, type KeysRotateResponse, type KeysRotateResponses, type KeysUpdateData, type KeysUpdateError, type KeysUpdateErrors, type KeysUpdateResponse, type KeysUpdateResponses, type Label, type LabelRemoved, type LabelsCreateData, type LabelsCreateError, type LabelsCreateErrors, type LabelsCreateResponse, type LabelsCreateResponses, type LabelsDeleteData, type LabelsDeleteError, type LabelsDeleteErrors, type LabelsDeleteResponse, type LabelsDeleteResponses, type LabelsListData, type LabelsListError, type LabelsListErrors, type LabelsListResponse, type LabelsListResponses, type LabelsUpdateData, type LabelsUpdateError, type LabelsUpdateErrors, type LabelsUpdateResponse, type LabelsUpdateResponses, type Mailbox, type MailboxAccess, type MailboxChange, type MailboxesChangesData, type MailboxesChangesError, type MailboxesChangesErrors, type MailboxesChangesResponse, type MailboxesChangesResponses, type MailboxesEmptyTrashData, type MailboxesEmptyTrashError, type MailboxesEmptyTrashErrors, type MailboxesEmptyTrashResponse, type MailboxesEmptyTrashResponses, type MailboxesListData, type MailboxesListError, type MailboxesListErrors, type MailboxesListFolderData, type MailboxesListFolderError, type MailboxesListFolderErrors, type MailboxesListFolderResponse, type MailboxesListFolderResponses, type MailboxesListResponse, type MailboxesListResponses, type Me, type MeGetData, type MeGetError, type MeGetErrors, type MeGetResponse, type MeGetResponses, type Member, type Message, type MessageListItem, type MessagesActData, type MessagesActError, type MessagesActErrors, type MessagesActResponse, type MessagesActResponses, type MessagesAwaitData, type MessagesAwaitError, type MessagesAwaitErrors, type MessagesAwaitResponse, type MessagesAwaitResponses, type MessagesForwardData, type MessagesForwardError, type MessagesForwardErrors, type MessagesForwardResponse, type MessagesForwardResponses, type MessagesGetData, type MessagesGetError, type MessagesGetErrors, type MessagesGetResponse, type MessagesGetResponses, type MessagesListInThreadData, type MessagesListInThreadError, type MessagesListInThreadErrors, type MessagesListInThreadResponse, type MessagesListInThreadResponses, type MessagesRawData, type MessagesRawError, type MessagesRawErrors, type MessagesRawResponse, type MessagesRawResponses, type MessagesReplyAllData, type MessagesReplyAllError, type MessagesReplyAllErrors, type MessagesReplyAllResponse, type MessagesReplyAllResponses, type MessagesReplyData, type MessagesReplyError, type MessagesReplyErrors, type MessagesReplyResponse, type MessagesReplyResponses, type MessagesRespondToInvitationData, type MessagesRespondToInvitationError, type MessagesRespondToInvitationErrors, type MessagesRespondToInvitationResponse, type MessagesRespondToInvitationResponses, type MessagesSearchData, type MessagesSearchError, type MessagesSearchErrors, type MessagesSearchResponse, type MessagesSearchResponses, type MessagesSendData, type MessagesSendError, type MessagesSendErrors, type MessagesSendResponse, type MessagesSendResponses, type MessagesUndoData, type MessagesUndoError, type MessagesUndoErrors, type MessagesUndoResponse, type MessagesUndoResponses, type MessagesUpdateData, type MessagesUpdateError, type MessagesUpdateErrors, type MessagesUpdateResponse, type MessagesUpdateResponses, type Metrics, type MetricsQueryData, type MetricsQueryError, type MetricsQueryErrors, type MetricsQueryResponse, type MetricsQueryResponses, type Options, type Pod, type PodCreated, type PodDeleted, type PodsCreateData, type PodsCreateError, type PodsCreateErrors, type PodsCreateResponse, type PodsCreateResponses, type PodsDeleteData, type PodsDeleteError, type PodsDeleteErrors, type PodsDeleteResponse, type PodsDeleteResponses, type PodsGetData, type PodsGetError, type PodsGetErrors, type PodsGetResponse, type PodsGetResponses, type PodsListData, type PodsListError, type PodsListErrors, type PodsListResponse, type PodsListResponses, type PodsUpdateData, type PodsUpdateError, type PodsUpdateErrors, type PodsUpdateResponse, type PodsUpdateResponses, type ReceiveRuleRemoved, type ReceiveRules, type Replayed, type Restored, type Revoked, type RoutingCreateData, type RoutingCreateError, type RoutingCreateErrors, type RoutingCreateResponse, type RoutingCreateResponses, type RoutingDeleteData, type RoutingDeleteError, type RoutingDeleteErrors, type RoutingDeleteResponse, type RoutingDeleteResponses, type RoutingListData, type RoutingListError, type RoutingListErrors, type RoutingListResponse, type RoutingListResponses, type RoutingRule, type RoutingUpdateData, type RoutingUpdateError, type RoutingUpdateErrors, type RoutingUpdateResponse, type RoutingUpdateResponses, SIGNATURE_HEADER, type SearchHit, type SendRuleRemoved, type SendRules, type Sent, type SetupLink, type StreamOptions, type StreamedEvent, TIMESTAMP_HEADER, type TenantSuspended, type TestInboundData, type TestInboundDelivered, type TestInboundError, type TestInboundErrors, type TestInboundResponse, type TestInboundResponses, type Thread, type ThreadsGetData, type ThreadsGetError, type ThreadsGetErrors, type ThreadsGetResponse, type ThreadsGetResponses, type ThreadsLabelsCreateData, type ThreadsLabelsCreateError, type ThreadsLabelsCreateErrors, type ThreadsLabelsCreateResponse, type ThreadsLabelsCreateResponses, type ThreadsLabelsDeleteData, type ThreadsLabelsDeleteError, type ThreadsLabelsDeleteErrors, type ThreadsLabelsDeleteResponse, type ThreadsLabelsDeleteResponses, type ThreadsLabelsGetData, type ThreadsLabelsGetError, type ThreadsLabelsGetErrors, type ThreadsLabelsGetResponse, type ThreadsLabelsGetResponses, type ThreadsListData, type ThreadsListError, type ThreadsListErrors, type ThreadsListResponse, type ThreadsListResponses, type ThreadsUpdateData, type ThreadsUpdateError, type ThreadsUpdateErrors, type ThreadsUpdateResponse, type ThreadsUpdateResponses, type Undo, type UploadedAttachment, type Verification, type Webhook, type WebhookCreated, type WebhookEnvelope, type WebhookHeaders, type WebhooksCreateData, type WebhooksCreateError, type WebhooksCreateErrors, type WebhooksCreateResponse, type WebhooksCreateResponses, type WebhooksDeleteData, type WebhooksDeleteError, type WebhooksDeleteErrors, type WebhooksDeleteResponse, type WebhooksDeleteResponses, type WebhooksDeliveriesData, type WebhooksDeliveriesError, type WebhooksDeliveriesErrors, type WebhooksDeliveriesResponse, type WebhooksDeliveriesResponses, type WebhooksGetData, type WebhooksGetError, type WebhooksGetErrors, type WebhooksGetHeadersData, type WebhooksGetHeadersError, type WebhooksGetHeadersErrors, type WebhooksGetHeadersResponse, type WebhooksGetHeadersResponses, type WebhooksGetResponse, type WebhooksGetResponses, type WebhooksListData, type WebhooksListError, type WebhooksListErrors, type WebhooksListResponse, type WebhooksListResponses, type WebhooksReplayData, type WebhooksReplayError, type WebhooksReplayErrors, type WebhooksReplayResponse, type WebhooksReplayResponses, type WebhooksUpdateData, type WebhooksUpdateError, type WebhooksUpdateErrors, type WebhooksUpdateHeadersData, type WebhooksUpdateHeadersError, type WebhooksUpdateHeadersErrors, type WebhooksUpdateHeadersResponse, type WebhooksUpdateHeadersResponses, type WebhooksUpdateResponse, type WebhooksUpdateResponses, type Workspace, type WorkspaceGetData, type WorkspaceGetError, type WorkspaceGetErrors, type WorkspaceGetResponse, type WorkspaceGetResponses, type WorkspaceMembersData, type WorkspaceMembersError, type WorkspaceMembersErrors, type WorkspaceMembersResponse, type WorkspaceMembersResponses, agentAttachHuman, agentSignUp, agentVerify, appPasswordsCreate, appPasswordsList, appPasswordsRevoke, attachmentsDownloadUrl, attachmentsText, attachmentsUpload, calendarCreateEvent, calendarDeleteEvent, calendarGet, calendarGetAgenda, calendarGetEvent, calendarListEventInstances, calendarListEvents, calendarRespondToEvent, calendarUpdate, calendarUpdateEvent, client, createClient, createConfig, domainsCreate, domainsDelete, domainsGet, domainsGetSetupLink, domainsList, domainsUpdate, domainsVerify, domainsZoneFile, draftsCancelSchedule, draftsCreate, draftsDelete, draftsGet, draftsList, draftsRemoveAttachment, draftsSchedule, draftsSend, draftsUpdate, eventsGet, eventsList, eventsSocket, eventsStream, exportMail, identitiesAccessCreate, identitiesAccessDelete, identitiesAccessGet, identitiesCreate, identitiesDelete, identitiesGet, identitiesList, identitiesReceiveRulesCreate, identitiesReceiveRulesDelete, identitiesReceiveRulesGet, identitiesSendRulesCreate, identitiesSendRulesDelete, identitiesSendRulesGet, identitiesSuspendTenant, identitiesUpdate, keysCreate, keysGet, keysList, keysRevoke, keysRotate, keysUpdate, labelsCreate, labelsDelete, labelsList, labelsUpdate, mailboxesChanges, mailboxesEmptyTrash, mailboxesList, mailboxesListFolder, meGet, messagesAct, messagesAwait, messagesForward, messagesGet, messagesListInThread, messagesRaw, messagesReply, messagesReplyAll, messagesRespondToInvitation, messagesSearch, messagesSend, messagesUndo, messagesUpdate, metricsQuery, podsCreate, podsDelete, podsGet, podsList, podsUpdate, routingCreate, routingDelete, routingList, routingUpdate, streamEvents, testInbound, threadsGet, threadsLabelsCreate, threadsLabelsDelete, threadsLabelsGet, threadsList, threadsUpdate, verifyWebhook, webhooksCreate, webhooksDelete, webhooksDeliveries, webhooksGet, webhooksGetHeaders, webhooksList, webhooksReplay, webhooksUpdate, webhooksUpdateHeaders, workspaceGet, workspaceMembers };
10398
+ export { type Address, type AgentAttachHumanData, type AgentAttachHumanError, type AgentAttachHumanErrors, type AgentAttachHumanResponse, type AgentAttachHumanResponses, type AgentSignUpData, type AgentSignUpError, type AgentSignUpErrors, type AgentSignUpResponse, type AgentSignUpResponses, type AgentSignup, type AgentVerified, type AgentVerifyData, type AgentVerifyError, type AgentVerifyErrors, type AgentVerifyResponse, type AgentVerifyResponses, type ApiKey, type ApiKeyCreated, type AppPassword, type AppPasswordCreated, type AppPasswordsCreateData, type AppPasswordsCreateError, type AppPasswordsCreateErrors, type AppPasswordsCreateResponse, type AppPasswordsCreateResponses, type AppPasswordsListData, type AppPasswordsListError, type AppPasswordsListErrors, type AppPasswordsListResponse, type AppPasswordsListResponses, type AppPasswordsRevokeData, type AppPasswordsRevokeError, type AppPasswordsRevokeErrors, type AppPasswordsRevokeResponse, type AppPasswordsRevokeResponses, type Attachment, type AttachmentText, type AttachmentUrl, type AttachmentsDownloadUrlData, type AttachmentsDownloadUrlError, type AttachmentsDownloadUrlErrors, type AttachmentsDownloadUrlResponse, type AttachmentsDownloadUrlResponses, type AttachmentsTextData, type AttachmentsTextError, type AttachmentsTextErrors, type AttachmentsTextResponse, type AttachmentsTextResponses, type AttachmentsUploadData, type AttachmentsUploadError, type AttachmentsUploadErrors, type AttachmentsUploadResponse, type AttachmentsUploadResponses, type AwaitedMessage, type Calendar, type CalendarCreateEventData, type CalendarCreateEventError, type CalendarCreateEventErrors, type CalendarCreateEventResponse, type CalendarCreateEventResponses, type CalendarDeleteEventData, type CalendarDeleteEventError, type CalendarDeleteEventErrors, type CalendarDeleteEventResponse, type CalendarDeleteEventResponses, type CalendarEvent, type CalendarGetAgendaData, type CalendarGetAgendaError, type CalendarGetAgendaErrors, type CalendarGetAgendaResponse, type CalendarGetAgendaResponses, type CalendarGetData, type CalendarGetError, type CalendarGetErrors, type CalendarGetEventData, type CalendarGetEventError, type CalendarGetEventErrors, type CalendarGetEventResponse, type CalendarGetEventResponses, type CalendarGetResponse, type CalendarGetResponses, type CalendarListEventInstancesData, type CalendarListEventInstancesError, type CalendarListEventInstancesErrors, type CalendarListEventInstancesResponse, type CalendarListEventInstancesResponses, type CalendarListEventsData, type CalendarListEventsError, type CalendarListEventsErrors, type CalendarListEventsResponse, type CalendarListEventsResponses, type CalendarRespondToEventData, type CalendarRespondToEventError, type CalendarRespondToEventErrors, type CalendarRespondToEventResponse, type CalendarRespondToEventResponses, type CalendarUpdateData, type CalendarUpdateError, type CalendarUpdateErrors, type CalendarUpdateEventData, type CalendarUpdateEventError, type CalendarUpdateEventErrors, type CalendarUpdateEventResponse, type CalendarUpdateEventResponses, type CalendarUpdateResponse, type CalendarUpdateResponses, type ClientOptions, type CreateClientConfig, type CreatedDomain, type Deleted, type Delivery, type DnsRecord, type Domain, type DomainDetail, type DomainsCreateData, type DomainsCreateError, type DomainsCreateErrors, type DomainsCreateResponse, type DomainsCreateResponses, type DomainsDeleteData, type DomainsDeleteError, type DomainsDeleteErrors, type DomainsDeleteResponse, type DomainsDeleteResponses, type DomainsGetData, type DomainsGetError, type DomainsGetErrors, type DomainsGetResponse, type DomainsGetResponses, type DomainsGetSetupLinkData, type DomainsGetSetupLinkError, type DomainsGetSetupLinkErrors, type DomainsGetSetupLinkResponse, type DomainsGetSetupLinkResponses, type DomainsListData, type DomainsListError, type DomainsListErrors, type DomainsListResponse, type DomainsListResponses, type DomainsUpdateData, type DomainsUpdateError, type DomainsUpdateErrors, type DomainsUpdateResponse, type DomainsUpdateResponses, type DomainsVerifyData, type DomainsVerifyError, type DomainsVerifyErrors, type DomainsVerifyResponse, type DomainsVerifyResponses, type DomainsZoneFileData, type DomainsZoneFileError, type DomainsZoneFileErrors, type DomainsZoneFileResponse, type DomainsZoneFileResponses, type Draft, type DraftsCancelScheduleData, type DraftsCancelScheduleError, type DraftsCancelScheduleErrors, type DraftsCancelScheduleResponse, type DraftsCancelScheduleResponses, type DraftsCreateData, type DraftsCreateError, type DraftsCreateErrors, type DraftsCreateResponse, type DraftsCreateResponses, type DraftsDeleteData, type DraftsDeleteError, type DraftsDeleteErrors, type DraftsDeleteResponse, type DraftsDeleteResponses, type DraftsGetData, type DraftsGetError, type DraftsGetErrors, type DraftsGetResponse, type DraftsGetResponses, type DraftsListData, type DraftsListError, type DraftsListErrors, type DraftsListResponse, type DraftsListResponses, type DraftsRemoveAttachmentData, type DraftsRemoveAttachmentError, type DraftsRemoveAttachmentErrors, type DraftsRemoveAttachmentResponse, type DraftsRemoveAttachmentResponses, type DraftsScheduleData, type DraftsScheduleError, type DraftsScheduleErrors, type DraftsScheduleResponse, type DraftsScheduleResponses, type DraftsSendData, type DraftsSendError, type DraftsSendErrors, type DraftsSendResponse, type DraftsSendResponses, type DraftsUpdateData, type DraftsUpdateError, type DraftsUpdateErrors, type DraftsUpdateResponse, type DraftsUpdateResponses, type Emptied, type Error, type Event, type EventResponse, type EventsGetData, type EventsGetError, type EventsGetErrors, type EventsGetResponse, type EventsGetResponses, type EventsListData, type EventsListError, type EventsListErrors, type EventsListResponse, type EventsListResponses, type EventsSocketData, type EventsSocketError, type EventsSocketErrors, type EventsStreamData, type EventsStreamError, type EventsStreamErrors, type EventsStreamResponse, type EventsStreamResponses, type ExportMailData, type ExportMailError, type ExportMailErrors, type ExportMailResponse, type ExportMailResponses, type IdentitiesAccessCreateData, type IdentitiesAccessCreateError, type IdentitiesAccessCreateErrors, type IdentitiesAccessCreateResponse, type IdentitiesAccessCreateResponses, type IdentitiesAccessDeleteData, type IdentitiesAccessDeleteError, type IdentitiesAccessDeleteErrors, type IdentitiesAccessDeleteResponse, type IdentitiesAccessDeleteResponses, type IdentitiesAccessGetData, type IdentitiesAccessGetError, type IdentitiesAccessGetErrors, type IdentitiesAccessGetResponse, type IdentitiesAccessGetResponses, type IdentitiesCreateData, type IdentitiesCreateError, type IdentitiesCreateErrors, type IdentitiesCreateResponse, type IdentitiesCreateResponses, type IdentitiesDeleteData, type IdentitiesDeleteError, type IdentitiesDeleteErrors, type IdentitiesDeleteResponse, type IdentitiesDeleteResponses, type IdentitiesGetData, type IdentitiesGetError, type IdentitiesGetErrors, type IdentitiesGetResponse, type IdentitiesGetResponses, type IdentitiesListData, type IdentitiesListError, type IdentitiesListErrors, type IdentitiesListResponse, type IdentitiesListResponses, type IdentitiesReceiveRulesCreateData, type IdentitiesReceiveRulesCreateError, type IdentitiesReceiveRulesCreateErrors, type IdentitiesReceiveRulesCreateResponse, type IdentitiesReceiveRulesCreateResponses, type IdentitiesReceiveRulesDeleteData, type IdentitiesReceiveRulesDeleteError, type IdentitiesReceiveRulesDeleteErrors, type IdentitiesReceiveRulesDeleteResponse, type IdentitiesReceiveRulesDeleteResponses, type IdentitiesReceiveRulesGetData, type IdentitiesReceiveRulesGetError, type IdentitiesReceiveRulesGetErrors, type IdentitiesReceiveRulesGetResponse, type IdentitiesReceiveRulesGetResponses, type IdentitiesSendRulesCreateData, type IdentitiesSendRulesCreateError, type IdentitiesSendRulesCreateErrors, type IdentitiesSendRulesCreateResponse, type IdentitiesSendRulesCreateResponses, type IdentitiesSendRulesDeleteData, type IdentitiesSendRulesDeleteError, type IdentitiesSendRulesDeleteErrors, type IdentitiesSendRulesDeleteResponse, type IdentitiesSendRulesDeleteResponses, type IdentitiesSendRulesGetData, type IdentitiesSendRulesGetError, type IdentitiesSendRulesGetErrors, type IdentitiesSendRulesGetResponse, type IdentitiesSendRulesGetResponses, type IdentitiesSuspendTenantData, type IdentitiesSuspendTenantError, type IdentitiesSuspendTenantErrors, type IdentitiesSuspendTenantResponse, type IdentitiesSuspendTenantResponses, type IdentitiesUpdateData, type IdentitiesUpdateError, type IdentitiesUpdateErrors, type IdentitiesUpdateResponse, type IdentitiesUpdateResponses, type Identity, type Invitation, type InvitationResponse, type KeysCreateData, type KeysCreateError, type KeysCreateErrors, type KeysCreateResponse, type KeysCreateResponses, type KeysGetData, type KeysGetError, type KeysGetErrors, type KeysGetResponse, type KeysGetResponses, type KeysListData, type KeysListError, type KeysListErrors, type KeysListResponse, type KeysListResponses, type KeysRevokeData, type KeysRevokeError, type KeysRevokeErrors, type KeysRevokeResponse, type KeysRevokeResponses, type KeysRotateData, type KeysRotateError, type KeysRotateErrors, type KeysRotateResponse, type KeysRotateResponses, type KeysUpdateData, type KeysUpdateError, type KeysUpdateErrors, type KeysUpdateResponse, type KeysUpdateResponses, type Label, type LabelRemoved, type LabelsCreateData, type LabelsCreateError, type LabelsCreateErrors, type LabelsCreateResponse, type LabelsCreateResponses, type LabelsDeleteData, type LabelsDeleteError, type LabelsDeleteErrors, type LabelsDeleteResponse, type LabelsDeleteResponses, type LabelsListData, type LabelsListError, type LabelsListErrors, type LabelsListResponse, type LabelsListResponses, type LabelsUpdateData, type LabelsUpdateError, type LabelsUpdateErrors, type LabelsUpdateResponse, type LabelsUpdateResponses, type Mailbox, type MailboxAccess, type MailboxChange, type MailboxesChangesData, type MailboxesChangesError, type MailboxesChangesErrors, type MailboxesChangesResponse, type MailboxesChangesResponses, type MailboxesEmptyTrashData, type MailboxesEmptyTrashError, type MailboxesEmptyTrashErrors, type MailboxesEmptyTrashResponse, type MailboxesEmptyTrashResponses, type MailboxesListData, type MailboxesListError, type MailboxesListErrors, type MailboxesListFolderData, type MailboxesListFolderError, type MailboxesListFolderErrors, type MailboxesListFolderResponse, type MailboxesListFolderResponses, type MailboxesListResponse, type MailboxesListResponses, type Me, type MeGetData, type MeGetError, type MeGetErrors, type MeGetResponse, type MeGetResponses, type Member, type Message, type MessageListItem, type MessagesActData, type MessagesActError, type MessagesActErrors, type MessagesActResponse, type MessagesActResponses, type MessagesAwaitData, type MessagesAwaitError, type MessagesAwaitErrors, type MessagesAwaitResponse, type MessagesAwaitResponses, type MessagesForwardData, type MessagesForwardError, type MessagesForwardErrors, type MessagesForwardResponse, type MessagesForwardResponses, type MessagesGetData, type MessagesGetError, type MessagesGetErrors, type MessagesGetResponse, type MessagesGetResponses, type MessagesListInThreadData, type MessagesListInThreadError, type MessagesListInThreadErrors, type MessagesListInThreadResponse, type MessagesListInThreadResponses, type MessagesRawData, type MessagesRawError, type MessagesRawErrors, type MessagesRawResponse, type MessagesRawResponses, type MessagesReplyAllData, type MessagesReplyAllError, type MessagesReplyAllErrors, type MessagesReplyAllResponse, type MessagesReplyAllResponses, type MessagesReplyData, type MessagesReplyError, type MessagesReplyErrors, type MessagesReplyResponse, type MessagesReplyResponses, type MessagesRespondToInvitationData, type MessagesRespondToInvitationError, type MessagesRespondToInvitationErrors, type MessagesRespondToInvitationResponse, type MessagesRespondToInvitationResponses, type MessagesSearchData, type MessagesSearchError, type MessagesSearchErrors, type MessagesSearchResponse, type MessagesSearchResponses, type MessagesSendData, type MessagesSendError, type MessagesSendErrors, type MessagesSendResponse, type MessagesSendResponses, type MessagesUndoData, type MessagesUndoError, type MessagesUndoErrors, type MessagesUndoResponse, type MessagesUndoResponses, type MessagesUpdateData, type MessagesUpdateError, type MessagesUpdateErrors, type MessagesUpdateResponse, type MessagesUpdateResponses, type Metrics, type MetricsQueryData, type MetricsQueryError, type MetricsQueryErrors, type MetricsQueryResponse, type MetricsQueryResponses, type Options, type Pod, type PodCreated, type PodDeleted, type PodsCreateData, type PodsCreateError, type PodsCreateErrors, type PodsCreateResponse, type PodsCreateResponses, type PodsDeleteData, type PodsDeleteError, type PodsDeleteErrors, type PodsDeleteResponse, type PodsDeleteResponses, type PodsGetData, type PodsGetError, type PodsGetErrors, type PodsGetResponse, type PodsGetResponses, type PodsListData, type PodsListError, type PodsListErrors, type PodsListResponse, type PodsListResponses, type PodsUpdateData, type PodsUpdateError, type PodsUpdateErrors, type PodsUpdateResponse, type PodsUpdateResponses, type ReceiveRuleRemoved, type ReceiveRules, type Replayed, type Restored, type Revoked, type RoutingCreateData, type RoutingCreateError, type RoutingCreateErrors, type RoutingCreateResponse, type RoutingCreateResponses, type RoutingDeleteData, type RoutingDeleteError, type RoutingDeleteErrors, type RoutingDeleteResponse, type RoutingDeleteResponses, type RoutingListData, type RoutingListError, type RoutingListErrors, type RoutingListResponse, type RoutingListResponses, type RoutingRule, type RoutingUpdateData, type RoutingUpdateError, type RoutingUpdateErrors, type RoutingUpdateResponse, type RoutingUpdateResponses, SIGNATURE_HEADER, type SearchHit, type SendRuleRemoved, type SendRules, type Sent, type SetupLink, type StreamOptions, type StreamedEvent, TIMESTAMP_HEADER, type TenantSuspended, type TestInboundData, type TestInboundDelivered, type TestInboundError, type TestInboundErrors, type TestInboundResponse, type TestInboundResponses, type Thread, type ThreadsGetData, type ThreadsGetError, type ThreadsGetErrors, type ThreadsGetResponse, type ThreadsGetResponses, type ThreadsLabelsCreateData, type ThreadsLabelsCreateError, type ThreadsLabelsCreateErrors, type ThreadsLabelsCreateResponse, type ThreadsLabelsCreateResponses, type ThreadsLabelsDeleteData, type ThreadsLabelsDeleteError, type ThreadsLabelsDeleteErrors, type ThreadsLabelsDeleteResponse, type ThreadsLabelsDeleteResponses, type ThreadsLabelsGetData, type ThreadsLabelsGetError, type ThreadsLabelsGetErrors, type ThreadsLabelsGetResponse, type ThreadsLabelsGetResponses, type ThreadsListData, type ThreadsListError, type ThreadsListErrors, type ThreadsListResponse, type ThreadsListResponses, type ThreadsUpdateData, type ThreadsUpdateError, type ThreadsUpdateErrors, type ThreadsUpdateResponse, type ThreadsUpdateResponses, type Undo, type UploadedAttachment, type Verification, type Webhook, type WebhookCreated, type WebhookEnvelope, type WebhookHeaders, type WebhooksCreateData, type WebhooksCreateError, type WebhooksCreateErrors, type WebhooksCreateResponse, type WebhooksCreateResponses, type WebhooksDeleteData, type WebhooksDeleteError, type WebhooksDeleteErrors, type WebhooksDeleteResponse, type WebhooksDeleteResponses, type WebhooksDeliveriesData, type WebhooksDeliveriesError, type WebhooksDeliveriesErrors, type WebhooksDeliveriesResponse, type WebhooksDeliveriesResponses, type WebhooksGetData, type WebhooksGetError, type WebhooksGetErrors, type WebhooksGetHeadersData, type WebhooksGetHeadersError, type WebhooksGetHeadersErrors, type WebhooksGetHeadersResponse, type WebhooksGetHeadersResponses, type WebhooksGetResponse, type WebhooksGetResponses, type WebhooksListData, type WebhooksListError, type WebhooksListErrors, type WebhooksListResponse, type WebhooksListResponses, type WebhooksReplayData, type WebhooksReplayError, type WebhooksReplayErrors, type WebhooksReplayResponse, type WebhooksReplayResponses, type WebhooksUpdateData, type WebhooksUpdateError, type WebhooksUpdateErrors, type WebhooksUpdateHeadersData, type WebhooksUpdateHeadersError, type WebhooksUpdateHeadersErrors, type WebhooksUpdateHeadersResponse, type WebhooksUpdateHeadersResponses, type WebhooksUpdateResponse, type WebhooksUpdateResponses, type Workspace, type WorkspaceGetData, type WorkspaceGetError, type WorkspaceGetErrors, type WorkspaceGetResponse, type WorkspaceGetResponses, type WorkspaceMembersData, type WorkspaceMembersError, type WorkspaceMembersErrors, type WorkspaceMembersResponse, type WorkspaceMembersResponses, agentAttachHuman, agentSignUp, agentVerify, appPasswordsCreate, appPasswordsList, appPasswordsRevoke, attachmentsDownloadUrl, attachmentsText, attachmentsUpload, calendarCreateEvent, calendarDeleteEvent, calendarGet, calendarGetAgenda, calendarGetEvent, calendarListEventInstances, calendarListEvents, calendarRespondToEvent, calendarUpdate, calendarUpdateEvent, client, createClient, createConfig, domainsCreate, domainsDelete, domainsGet, domainsGetSetupLink, domainsList, domainsUpdate, domainsVerify, domainsZoneFile, draftsCancelSchedule, draftsCreate, draftsDelete, draftsGet, draftsList, draftsRemoveAttachment, draftsSchedule, draftsSend, draftsUpdate, eventsGet, eventsList, eventsSocket, eventsStream, exportMail, identitiesAccessCreate, identitiesAccessDelete, identitiesAccessGet, identitiesCreate, identitiesDelete, identitiesGet, identitiesList, identitiesReceiveRulesCreate, identitiesReceiveRulesDelete, identitiesReceiveRulesGet, identitiesSendRulesCreate, identitiesSendRulesDelete, identitiesSendRulesGet, identitiesSuspendTenant, identitiesUpdate, keysCreate, keysGet, keysList, keysRevoke, keysRotate, keysUpdate, labelsCreate, labelsDelete, labelsList, labelsUpdate, mailboxesChanges, mailboxesEmptyTrash, mailboxesList, mailboxesListFolder, meGet, messagesAct, messagesAwait, messagesForward, messagesGet, messagesListInThread, messagesRaw, messagesReply, messagesReplyAll, messagesRespondToInvitation, messagesSearch, messagesSend, messagesUndo, messagesUpdate, metricsQuery, podsCreate, podsDelete, podsGet, podsList, podsUpdate, routingCreate, routingDelete, routingList, routingUpdate, streamEvents, testInbound, threadsGet, threadsLabelsCreate, threadsLabelsDelete, threadsLabelsGet, threadsList, threadsUpdate, verifyWebhook, webhooksCreate, webhooksDelete, webhooksDeliveries, webhooksGet, webhooksGetHeaders, webhooksList, webhooksReplay, webhooksUpdate, webhooksUpdateHeaders, workspaceGet, workspaceMembers };