@remit/api-http-client 0.0.64 → 0.0.66

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.
@@ -1279,7 +1279,7 @@ export const outboxOperationsListOutboxMessagesOptions = (options?: Options<Outb
1279
1279
  });
1280
1280
 
1281
1281
  /**
1282
- * Create a new outbox message (draft or send immediately)
1282
+ * Create a new outbox message (draft or send immediately). A send-immediately create from an account whose syncedServices leave out Mail is refused with 400 `mail_sync_off`.
1283
1283
  */
1284
1284
  export const outboxOperationsCreateOutboxMessageMutation = (options?: Partial<Options<OutboxOperationsCreateOutboxMessageData>>): UseMutationOptions<OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageError, Options<OutboxOperationsCreateOutboxMessageData>> => {
1285
1285
  const mutationOptions: UseMutationOptions<OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageError, Options<OutboxOperationsCreateOutboxMessageData>> = {
@@ -1382,7 +1382,7 @@ export const outboxAttachmentOperationsCompleteOutboxAttachmentMutation = (optio
1382
1382
  };
1383
1383
 
1384
1384
  /**
1385
- * Queue a draft message for sending
1385
+ * Queue a draft message for sending. A draft on an account whose syncedServices leave out Mail is refused with 400 `mail_sync_off`, and stays a draft.
1386
1386
  */
1387
1387
  export const outboxDetailOperationsSendOutboxMessageMutation = (options?: Partial<Options<OutboxDetailOperationsSendOutboxMessageData>>): UseMutationOptions<OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsSendOutboxMessageError, Options<OutboxDetailOperationsSendOutboxMessageData>> => {
1388
1388
  const mutationOptions: UseMutationOptions<OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsSendOutboxMessageError, Options<OutboxDetailOperationsSendOutboxMessageData>> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-http-client",
3
- "version": "0.0.64",
3
+ "version": "0.0.66",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts",
package/sdk.gen.ts CHANGED
@@ -773,7 +773,7 @@ export const outboxOperationsListOutboxMessages = <ThrowOnError extends boolean
773
773
  });
774
774
 
775
775
  /**
776
- * Create a new outbox message (draft or send immediately)
776
+ * Create a new outbox message (draft or send immediately). A send-immediately create from an account whose syncedServices leave out Mail is refused with 400 `mail_sync_off`.
777
777
  */
778
778
  export const outboxOperationsCreateOutboxMessage = <ThrowOnError extends boolean = false>(options: Options<OutboxOperationsCreateOutboxMessageData, ThrowOnError>): RequestResult<OutboxOperationsCreateOutboxMessageResponses, OutboxOperationsCreateOutboxMessageErrors, ThrowOnError> => (options.client ?? client).post<OutboxOperationsCreateOutboxMessageResponses, OutboxOperationsCreateOutboxMessageErrors, ThrowOnError>({
779
779
  security: [{ name: 'Authorization', type: 'apiKey' }],
@@ -839,7 +839,7 @@ export const outboxAttachmentOperationsCompleteOutboxAttachment = <ThrowOnError
839
839
  });
840
840
 
841
841
  /**
842
- * Queue a draft message for sending
842
+ * Queue a draft message for sending. A draft on an account whose syncedServices leave out Mail is refused with 400 `mail_sync_off`, and stays a draft.
843
843
  */
844
844
  export const outboxDetailOperationsSendOutboxMessage = <ThrowOnError extends boolean = false>(options: Options<OutboxDetailOperationsSendOutboxMessageData, ThrowOnError>): RequestResult<OutboxDetailOperationsSendOutboxMessageResponses, OutboxDetailOperationsSendOutboxMessageErrors, ThrowOnError> => (options.client ?? client).post<OutboxDetailOperationsSendOutboxMessageResponses, OutboxDetailOperationsSendOutboxMessageErrors, ThrowOnError>({
845
845
  security: [{ name: 'Authorization', type: 'apiKey' }],
package/types.gen.ts CHANGED
@@ -1890,6 +1890,10 @@ export type RemitImapMailboxResponse = {
1890
1890
  * The path a recorded rename is moving this folder to. Absent unless a rename is in flight or has just failed, which is what tells a create in flight from a rename in flight (D2, D3). `fullPath` stays the path the server holds throughout, so a failed rename is this field cleared rather than a subtree of paths restored. Invariant: non-null only while `syncStatus` is `pending` or `failed`.
1891
1891
  */
1892
1892
  pendingPath?: String512;
1893
+ /**
1894
+ * What the mail server said when it refused the last folder mutation, verbatim, so a folder in `failed` can say why. Total: the empty string whenever `syncStatus` is not `failed`, and on a failure the server gave no text for.
1895
+ */
1896
+ readonly syncFailureReason: string;
1893
1897
  /**
1894
1898
  * Denormalized list of IMAP SPECIAL-USE designations (RFC 6154). Populated from the same `\Sent`, `\Drafts`, etc. attributes the server reports during LIST. Stored on the row to avoid an N+1 join when listing mailboxes.
1895
1899
  */
@@ -3672,7 +3676,9 @@ export type Uuid = string;
3672
3676
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
3673
3677
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
3674
3678
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
3675
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
3679
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
3680
+ * send from an account whose `syncedServices` leave out `Mail`, with the
3681
+ * account in `details.accountId`.
3676
3682
  *
3677
3683
  * `errors` is present only when the request failed schema validation before any
3678
3684
  * handler ran, and names every field that was refused.
@@ -4060,7 +4066,9 @@ export type AccountOperationsCreateAccountErrors = {
4060
4066
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4061
4067
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4062
4068
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4063
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4069
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4070
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4071
+ * account in `details.accountId`.
4064
4072
  *
4065
4073
  * `errors` is present only when the request failed schema validation before any
4066
4074
  * handler ran, and names every field that was refused.
@@ -4121,7 +4129,9 @@ export type MicrosoftOAuthOperationsMicrosoftOAuthStartErrors = {
4121
4129
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4122
4130
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4123
4131
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4124
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4132
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4133
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4134
+ * account in `details.accountId`.
4125
4135
  *
4126
4136
  * `errors` is present only when the request failed schema validation before any
4127
4137
  * handler ran, and names every field that was refused.
@@ -4268,7 +4278,9 @@ export type FilterOperationsListFiltersErrors = {
4268
4278
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4269
4279
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4270
4280
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4271
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4281
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4282
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4283
+ * account in `details.accountId`.
4272
4284
  *
4273
4285
  * `errors` is present only when the request failed schema validation before any
4274
4286
  * handler ran, and names every field that was refused.
@@ -4324,7 +4336,9 @@ export type FilterOperationsCreateFilterErrors = {
4324
4336
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4325
4337
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4326
4338
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4327
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4339
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4340
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4341
+ * account in `details.accountId`.
4328
4342
  *
4329
4343
  * `errors` is present only when the request failed schema validation before any
4330
4344
  * handler ran, and names every field that was refused.
@@ -4550,7 +4564,9 @@ export type LabelOperationsListLabelsErrors = {
4550
4564
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4551
4565
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4552
4566
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4553
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4567
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4568
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4569
+ * account in `details.accountId`.
4554
4570
  *
4555
4571
  * `errors` is present only when the request failed schema validation before any
4556
4572
  * handler ran, and names every field that was refused.
@@ -4747,7 +4763,9 @@ export type MailboxOperationsListMailboxesErrors = {
4747
4763
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4748
4764
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4749
4765
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4750
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4766
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4767
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4768
+ * account in `details.accountId`.
4751
4769
  *
4752
4770
  * `errors` is present only when the request failed schema validation before any
4753
4771
  * handler ran, and names every field that was refused.
@@ -4803,7 +4821,9 @@ export type MailboxOperationsCreateMailboxErrors = {
4803
4821
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4804
4822
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4805
4823
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4806
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4824
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4825
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4826
+ * account in `details.accountId`.
4807
4827
  *
4808
4828
  * `errors` is present only when the request failed schema validation before any
4809
4829
  * handler ran, and names every field that was refused.
@@ -4858,7 +4878,9 @@ export type MailboxDetailOperationsDeleteMailboxErrors = {
4858
4878
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4859
4879
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4860
4880
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4861
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4881
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4882
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4883
+ * account in `details.accountId`.
4862
4884
  *
4863
4885
  * `errors` is present only when the request failed schema validation before any
4864
4886
  * handler ran, and names every field that was refused.
@@ -4951,7 +4973,9 @@ export type MailboxDetailOperationsRenameMailboxErrors = {
4951
4973
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
4952
4974
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
4953
4975
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
4954
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
4976
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
4977
+ * send from an account whose `syncedServices` leave out `Mail`, with the
4978
+ * account in `details.accountId`.
4955
4979
  *
4956
4980
  * `errors` is present only when the request failed schema validation before any
4957
4981
  * handler ran, and names every field that was refused.
@@ -5011,7 +5035,9 @@ export type OrganizeOperationsCreateOrganizeJobErrors = {
5011
5035
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5012
5036
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5013
5037
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5014
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5038
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5039
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5040
+ * account in `details.accountId`.
5015
5041
  *
5016
5042
  * `errors` is present only when the request failed schema validation before any
5017
5043
  * handler ran, and names every field that was refused.
@@ -5065,7 +5091,9 @@ export type OrganizeOperationsPreviewOrganizeErrors = {
5065
5091
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5066
5092
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5067
5093
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5068
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5094
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5095
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5096
+ * account in `details.accountId`.
5069
5097
  *
5070
5098
  * `errors` is present only when the request failed schema validation before any
5071
5099
  * handler ran, and names every field that was refused.
@@ -5334,7 +5362,9 @@ export type CalendarEventOperationsListCalendarEventsErrors = {
5334
5362
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5335
5363
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5336
5364
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5337
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5365
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5366
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5367
+ * account in `details.accountId`.
5338
5368
  *
5339
5369
  * `errors` is present only when the request failed schema validation before any
5340
5370
  * handler ran, and names every field that was refused.
@@ -5382,7 +5412,9 @@ export type CalendarEventOperationsCreateCalendarEventErrors = {
5382
5412
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5383
5413
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5384
5414
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5385
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5415
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5416
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5417
+ * account in `details.accountId`.
5386
5418
  *
5387
5419
  * `errors` is present only when the request failed schema validation before any
5388
5420
  * handler ran, and names every field that was refused.
@@ -5448,7 +5480,9 @@ export type CalendarEventDetailOperationsDeleteCalendarEventErrors = {
5448
5480
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5449
5481
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5450
5482
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5451
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5483
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5484
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5485
+ * account in `details.accountId`.
5452
5486
  *
5453
5487
  * `errors` is present only when the request failed schema validation before any
5454
5488
  * handler ran, and names every field that was refused.
@@ -5511,7 +5545,9 @@ export type CalendarEventDetailOperationsGetCalendarEventErrors = {
5511
5545
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5512
5546
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5513
5547
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5514
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5548
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5549
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5550
+ * account in `details.accountId`.
5515
5551
  *
5516
5552
  * `errors` is present only when the request failed schema validation before any
5517
5553
  * handler ran, and names every field that was refused.
@@ -5577,7 +5613,9 @@ export type CalendarEventDetailOperationsUpdateCalendarEventErrors = {
5577
5613
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5578
5614
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5579
5615
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5580
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5616
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5617
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5618
+ * account in `details.accountId`.
5581
5619
  *
5582
5620
  * `errors` is present only when the request failed schema validation before any
5583
5621
  * handler ran, and names every field that was refused.
@@ -5642,7 +5680,9 @@ export type CalendarFreeBusyOperationsListCalendarFreeBusyErrors = {
5642
5680
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5643
5681
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5644
5682
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5645
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5683
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5684
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5685
+ * account in `details.accountId`.
5646
5686
  *
5647
5687
  * `errors` is present only when the request failed schema validation before any
5648
5688
  * handler ran, and names every field that was refused.
@@ -5689,7 +5729,9 @@ export type CalendarSuggestionOperationsListCalendarSuggestionsErrors = {
5689
5729
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5690
5730
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5691
5731
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5692
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5732
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5733
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5734
+ * account in `details.accountId`.
5693
5735
  *
5694
5736
  * `errors` is present only when the request failed schema validation before any
5695
5737
  * handler ran, and names every field that was refused.
@@ -5741,7 +5783,9 @@ export type CalendarSuggestionActionOperationsAcceptCalendarSuggestionErrors = {
5741
5783
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5742
5784
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5743
5785
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5744
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5786
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5787
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5788
+ * account in `details.accountId`.
5745
5789
  *
5746
5790
  * `errors` is present only when the request failed schema validation before any
5747
5791
  * handler ran, and names every field that was refused.
@@ -5791,7 +5835,9 @@ export type CalendarSuggestionActionOperationsDeclineCalendarSuggestionErrors =
5791
5835
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5792
5836
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5793
5837
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5794
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5838
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5839
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5840
+ * account in `details.accountId`.
5795
5841
  *
5796
5842
  * `errors` is present only when the request failed schema validation before any
5797
5843
  * handler ran, and names every field that was refused.
@@ -5841,7 +5887,9 @@ export type CalendarSuggestionActionOperationsDismissCalendarSuggestionErrors =
5841
5887
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5842
5888
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5843
5889
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5844
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5890
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5891
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5892
+ * account in `details.accountId`.
5845
5893
  *
5846
5894
  * `errors` is present only when the request failed schema validation before any
5847
5895
  * handler ran, and names every field that was refused.
@@ -5914,7 +5962,9 @@ export type CalendarOperationsCreateCalendarErrors = {
5914
5962
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5915
5963
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5916
5964
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5917
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
5965
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
5966
+ * send from an account whose `syncedServices` leave out `Mail`, with the
5967
+ * account in `details.accountId`.
5918
5968
  *
5919
5969
  * `errors` is present only when the request failed schema validation before any
5920
5970
  * handler ran, and names every field that was refused.
@@ -5960,7 +6010,9 @@ export type CalendarDetailOperationsDeleteCalendarErrors = {
5960
6010
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
5961
6011
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
5962
6012
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
5963
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
6013
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6014
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6015
+ * account in `details.accountId`.
5964
6016
  *
5965
6017
  * `errors` is present only when the request failed schema validation before any
5966
6018
  * handler ran, and names every field that was refused.
@@ -6041,7 +6093,9 @@ export type CalendarDetailOperationsUpdateCalendarErrors = {
6041
6093
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6042
6094
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6043
6095
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6044
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
6096
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6097
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6098
+ * account in `details.accountId`.
6045
6099
  *
6046
6100
  * `errors` is present only when the request failed schema validation before any
6047
6101
  * handler ran, and names every field that was refused.
@@ -6232,7 +6286,9 @@ export type ConfigOperationsImportConfigErrors = {
6232
6286
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6233
6287
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6234
6288
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6235
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
6289
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6290
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6291
+ * account in `details.accountId`.
6236
6292
  *
6237
6293
  * `errors` is present only when the request failed schema validation before any
6238
6294
  * handler ran, and names every field that was refused.
@@ -6337,7 +6393,9 @@ export type ThreadOperationsListThreadsErrors = {
6337
6393
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6338
6394
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6339
6395
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6340
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
6396
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6397
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6398
+ * account in `details.accountId`.
6341
6399
  *
6342
6400
  * `errors` is present only when the request failed schema validation before any
6343
6401
  * handler ran, and names every field that was refused.
@@ -6431,7 +6489,9 @@ export type ThreadOperationsSearchThreadsErrors = {
6431
6489
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6432
6490
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6433
6491
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6434
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
6492
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6493
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6494
+ * account in `details.accountId`.
6435
6495
  *
6436
6496
  * `errors` is present only when the request failed schema validation before any
6437
6497
  * handler ran, and names every field that was refused.
@@ -6475,7 +6535,9 @@ export type MeOperationsDeleteMeErrors = {
6475
6535
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6476
6536
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6477
6537
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6478
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
6538
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6539
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6540
+ * account in `details.accountId`.
6479
6541
  *
6480
6542
  * `errors` is present only when the request failed schema validation before any
6481
6543
  * handler ran, and names every field that was refused.
@@ -6929,7 +6991,9 @@ export type MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsErr
6929
6991
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6930
6992
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6931
6993
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6932
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
6994
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6995
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6996
+ * account in `details.accountId`.
6933
6997
  *
6934
6998
  * `errors` is present only when the request failed schema validation before any
6935
6999
  * handler ran, and names every field that was refused.
@@ -7051,7 +7115,9 @@ export type OutboxOperationsListOutboxMessagesErrors = {
7051
7115
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
7052
7116
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
7053
7117
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
7054
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
7118
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
7119
+ * send from an account whose `syncedServices` leave out `Mail`, with the
7120
+ * account in `details.accountId`.
7055
7121
  *
7056
7122
  * `errors` is present only when the request failed schema validation before any
7057
7123
  * handler ran, and names every field that was refused.
@@ -7088,6 +7154,27 @@ export type OutboxOperationsCreateOutboxMessageData = {
7088
7154
  };
7089
7155
 
7090
7156
  export type OutboxOperationsCreateOutboxMessageErrors = {
7157
+ /**
7158
+ * The request was refused as malformed or contradictory. `code` is
7159
+ * `invalid_request` where nothing more specific is known, and the refusal's own
7160
+ * token where there is one.
7161
+ *
7162
+ * The calendar surface answers with the reason it read the request by:
7163
+ * `invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,
7164
+ * `unknown_time_zone` and `default_calendar_undeletable` on the collection and
7165
+ * the query, and, for a VCALENDAR it could not accept,
7166
+ * `malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,
7167
+ * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
7168
+ * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
7169
+ * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
7170
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
7171
+ * send from an account whose `syncedServices` leave out `Mail`, with the
7172
+ * account in `details.accountId`.
7173
+ *
7174
+ * `errors` is present only when the request failed schema validation before any
7175
+ * handler ran, and names every field that was refused.
7176
+ */
7177
+ 400: ValidationError;
7091
7178
  /**
7092
7179
  * The request carried no usable credential. `code` is `unauthorized`.
7093
7180
  */
@@ -7295,6 +7382,27 @@ export type OutboxDetailOperationsSendOutboxMessageData = {
7295
7382
  };
7296
7383
 
7297
7384
  export type OutboxDetailOperationsSendOutboxMessageErrors = {
7385
+ /**
7386
+ * The request was refused as malformed or contradictory. `code` is
7387
+ * `invalid_request` where nothing more specific is known, and the refusal's own
7388
+ * token where there is one.
7389
+ *
7390
+ * The calendar surface answers with the reason it read the request by:
7391
+ * `invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,
7392
+ * `unknown_time_zone` and `default_calendar_undeletable` on the collection and
7393
+ * the query, and, for a VCALENDAR it could not accept,
7394
+ * `malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,
7395
+ * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
7396
+ * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
7397
+ * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
7398
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
7399
+ * send from an account whose `syncedServices` leave out `Mail`, with the
7400
+ * account in `details.accountId`.
7401
+ *
7402
+ * `errors` is present only when the request failed schema validation before any
7403
+ * handler ran, and names every field that was refused.
7404
+ */
7405
+ 400: ValidationError;
7298
7406
  /**
7299
7407
  * The request carried no usable credential. `code` is `unauthorized`.
7300
7408
  */
@@ -7527,7 +7635,9 @@ export type UnifiedThreadOperationsListAllThreadsErrors = {
7527
7635
  * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
7528
7636
  * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
7529
7637
  * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
7530
- * `unknown_occurrence` and `unmovable_recurrence_rule`.
7638
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
7639
+ * send from an account whose `syncedServices` leave out `Mail`, with the
7640
+ * account in `details.accountId`.
7531
7641
  *
7532
7642
  * `errors` is present only when the request failed schema validation before any
7533
7643
  * handler ran, and names every field that was refused.