@remit/api-http-client 0.0.79 → 0.0.80

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.
@@ -586,14 +586,68 @@ export type RemitImapBulkUpdateFlagsInput = {
586
586
  * Whether an answered cancellation holds the calendar object this suggestion's answer wrote. A cancellation is terminal, so such an answer cannot be taken back.
587
587
  */
588
588
  export type RemitImapCalendarAnswerOvertaken = 'None' | 'Cancellation';
589
+ /**
590
+ * One person on an event's guest list, read from its ORGANIZER and ATTENDEE lines.
591
+ */
592
+ export type RemitImapCalendarAttendee = {
593
+ /**
594
+ * Mail address, lower-cased
595
+ */
596
+ email: String512;
597
+ /**
598
+ * The CN parameter. `""` when the line carries none.
599
+ */
600
+ displayName: String512;
601
+ role: RemitImapCalendarAttendeeRole;
602
+ /**
603
+ * The answer. The organizer reads as `Accepted`.
604
+ */
605
+ status: RemitImapCalendarAttendeeStatus;
606
+ };
607
+ /**
608
+ * How many people on the guest list gave each answer, the organizer counted as a yes.
609
+ */
610
+ export type RemitImapCalendarAttendeeCounts = {
611
+ accepted: number;
612
+ declined: number;
613
+ tentative: number;
614
+ needsAction: number;
615
+ };
616
+ /**
617
+ * A guest as the event editor sends one.
618
+ */
619
+ export type RemitImapCalendarAttendeeInput = {
620
+ /**
621
+ * The guest's mail address
622
+ */
623
+ email: String512;
624
+ /**
625
+ * The guest's name. The address itself when the contact has none.
626
+ */
627
+ displayName: String512;
628
+ };
629
+ /**
630
+ * What one person on an event's guest list is to it.
631
+ */
632
+ export type RemitImapCalendarAttendeeRole = 'Organizer' | 'Guest';
633
+ /**
634
+ * A guest's answer to an event, read from the ATTENDEE line's PARTSTAT (RFC 5545 3.2.12).
635
+ */
636
+ export type RemitImapCalendarAttendeeStatus = 'NeedsAction' | 'Accepted' | 'Tentative' | 'Declined';
589
637
  /**
590
638
  * Display color for a calendar collection. Positional rather than named: the palette is a client-side concern, so the store carries the slot and the client owns what it renders (issue #15).
591
639
  */
592
640
  export type RemitImapCalendarColor = 'Cal1' | 'Cal2' | 'Cal3' | 'Cal4' | 'Cal5' | 'Cal6';
593
641
  /**
594
- * Which iCalendar components a collection accepts (RFC 4791 supported-calendar-component-set). Only VEVENT is stored today; VTODO and VJOURNAL collections would be separate members, so the value is a property of the collection rather than of each object.
642
+ * Which iCalendar components a collection accepts (RFC 4791 supported-calendar-component-set). The value is a property of the collection rather than of each object, so an event collection and a task collection are separate collections.
595
643
  */
596
- export type RemitImapCalendarComponentSet = 'VeventOnly';
644
+ export type RemitImapCalendarComponentSet = 'VeventOnly' | 'VtodoOnly';
645
+ /**
646
+ * What deleting an event sent: one cancellation per guest when the reader organizes it, nothing otherwise.
647
+ */
648
+ export type RemitImapCalendarEventDeleteResponse = {
649
+ sends: Array<RemitImapCalendarSchedulingSend>;
650
+ };
597
651
  /**
598
652
  * One occurrence of an event, in the window the caller asked for (issue #15).
599
653
  *
@@ -654,6 +708,10 @@ export type RemitImapCalendarEventInstance = {
654
708
  * Whether the resource this occurrence came from expands to more than one instance. A client showing the recurrence-scope prompt gates on this.
655
709
  */
656
710
  hasRecurrence: boolean;
711
+ /**
712
+ * Where the reader stands on this occurrence. Only the reader's own answer: the guest list is on `getCalendarEvent`.
713
+ */
714
+ participation: RemitImapCalendarParticipation;
657
715
  };
658
716
  /**
659
717
  * Expanded occurrences in the requested window, in start order.
@@ -666,7 +724,9 @@ export type RemitImapCalendarEventListResponse = {
666
724
  items: Array<RemitImapCalendarEventInstance>;
667
725
  };
668
726
  /**
669
- * A stored calendar resource — the bytes behind one event, plus the columns projected from them. `icalData` is canonical; every other field is derived from it on write.
727
+ * A stored calendar resource — the bytes behind one event, plus the columns
728
+ * projected from them. `icalData` is canonical; every other field is derived
729
+ * from it on write or on this read.
670
730
  */
671
731
  export type RemitImapCalendarEventResponse = {
672
732
  /**
@@ -739,6 +799,23 @@ export type RemitImapCalendarEventResponse = {
739
799
  expandedThrough: String64;
740
800
  readonly createdAt: number;
741
801
  readonly updatedAt: number;
802
+ /**
803
+ * Where the reader stands on the event's master
804
+ */
805
+ participation: RemitImapCalendarParticipation;
806
+ /**
807
+ * Mail address of the ORGANIZER, lower-cased. `""` when the event names none.
808
+ */
809
+ organizer: String512;
810
+ /**
811
+ * Everyone on the guest list, organizer first. Empty when the event has no guests.
812
+ */
813
+ attendees: Array<RemitImapCalendarAttendee>;
814
+ attendeeCounts: RemitImapCalendarAttendeeCounts;
815
+ /**
816
+ * The scheduling messages about this event still in the outbox. A write answers with the ones it queued; a read with every one not yet sent and filed.
817
+ */
818
+ sends: Array<RemitImapCalendarSchedulingSend>;
742
819
  };
743
820
  /**
744
821
  * Projection of a VEVENT's STATUS property (RFC 5545 3.8.1.11). A VEVENT with no STATUS projects as `Confirmed`, which is the value RFC 5545 gives an event whose status is unstated.
@@ -809,9 +886,9 @@ export type RemitImapCalendarFreeBusySpan = {
809
886
  end: String64;
810
887
  };
811
888
  /**
812
- * The answer an invitation is added to a calendar with. It is written as the user's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12) and becomes the suggestion's state.
889
+ * The answer a guest gives an invitation. It is written as the reader's `ATTENDEE;PARTSTAT` on the stored event (RFC 5545 3.2.12).
813
890
  */
814
- export type RemitImapCalendarInviteAnswer = 'Accepted' | 'Tentative';
891
+ export type RemitImapCalendarInviteAnswer = 'Accepted' | 'Tentative' | 'Declined';
815
892
  /**
816
893
  * The iTIP method a scheduling message carries (RFC 5546 3.2), read from the VCALENDAR's METHOD property. It says what the sender is asking for, which is not derivable from the VEVENT: a cancellation and an invitation differ by this property alone.
817
894
  */
@@ -822,6 +899,10 @@ export type RemitImapCalendarInviteMethod = 'Request' | 'Reply' | 'Cancel' | 'Co
822
899
  export type RemitImapCalendarListResponse = {
823
900
  items: Array<RemitImapCalendarResponse>;
824
901
  };
902
+ /**
903
+ * Where the reader stands on one occurrence, projected from its ORGANIZER and ATTENDEE lines against the addresses of the reader's own accounts.
904
+ */
905
+ export type RemitImapCalendarParticipation = 'Unscheduled' | 'Organizer' | 'NeedsAction' | 'Accepted' | 'Tentative' | 'Declined';
825
906
  /**
826
907
  * A calendar collection as the API returns it.
827
908
  */
@@ -885,6 +966,21 @@ export type RemitImapCalendarResponse = {
885
966
  readonly createdAt: number;
886
967
  readonly updatedAt: number;
887
968
  };
969
+ /**
970
+ * One scheduling message an event write put in the outbox: an invitation, a cancellation or a reply. A client follows `outboxMessageId` to learn whether it went, and resends a failed one with `sendOutboxMessage`.
971
+ */
972
+ export type RemitImapCalendarSchedulingSend = {
973
+ /**
974
+ * The one address the message is to
975
+ */
976
+ email: String512;
977
+ outboxMessageId: Uuid;
978
+ method: RemitImapCalendarInviteMethod;
979
+ /**
980
+ * Where the message stood when this response was built
981
+ */
982
+ status: RemitImapOutboxMessageStatus;
983
+ };
888
984
  /**
889
985
  * Where a calendar collection came from. `Default` is the one provisioned per account config on first use and is never deleted; `UserCreated` is one a person made; `MailDerived` is one populated from mail rather than by a person; `Subscribed` is filled from a read-only iCalendar URL and refuses every write except its own refresh.
890
986
  */
@@ -988,6 +1084,67 @@ export type RemitImapCalendarSuggestionSource = 'IcalendarPart' | 'IcalendarAtta
988
1084
  * What has become of a suggestion. `Pending` is the only state that asks a person for anything; every other value is a decision already taken, and nothing but an explicit act moves a suggestion out of `Pending`.
989
1085
  */
990
1086
  export type RemitImapCalendarSuggestionState = 'Pending' | 'Accepted' | 'Declined' | 'Tentative' | 'Dismissed' | 'Superseded';
1087
+ /**
1088
+ * Tasks due in the requested window, in due order. Unpaginated: the window is the bound.
1089
+ */
1090
+ export type RemitImapCalendarTaskListResponse = {
1091
+ items: Array<RemitImapCalendarTaskResponse>;
1092
+ };
1093
+ /**
1094
+ * A stored task, as the API returns it.
1095
+ */
1096
+ export type RemitImapCalendarTaskResponse = {
1097
+ /**
1098
+ * Primary identifier, derived from calendarId + resourceName
1099
+ */
1100
+ calendarTaskId: Uuid;
1101
+ /**
1102
+ * Collection this task belongs to, a `VtodoOnly` one
1103
+ */
1104
+ calendarId: Uuid;
1105
+ /**
1106
+ * Last path segment of the resource's URL, e.g. "a1b2c3.ics"
1107
+ */
1108
+ resourceName: String256;
1109
+ /**
1110
+ * The VTODO's UID property
1111
+ */
1112
+ icalUid: String512;
1113
+ /**
1114
+ * The complete VCALENDAR text — CANONICAL
1115
+ */
1116
+ readonly icalData: string;
1117
+ /**
1118
+ * Strong entity tag over the stored `icalData` bytes, for If-Match
1119
+ */
1120
+ etag: String64;
1121
+ /**
1122
+ * Projection of the VTODO's SUMMARY. `""` when it carries none.
1123
+ */
1124
+ summary: String512;
1125
+ /**
1126
+ * Projection of the VTODO's DESCRIPTION. `""` when it carries none.
1127
+ */
1128
+ description: String2048;
1129
+ /**
1130
+ * Projection of the VTODO's DUE as an ISO 8601 date-time with zone offset, read in the collection's timezone — a business date. An all-day task carries midnight of its civil date.
1131
+ */
1132
+ due: String64;
1133
+ /**
1134
+ * The same moment as `due`, as an ISO 8601 UTC instant, so `byDue` orders across zones.
1135
+ */
1136
+ dueAt: String64;
1137
+ /**
1138
+ * Whether DUE is a DATE rather than a DATE-TIME: the task is due on a day, not at a time
1139
+ */
1140
+ readonly allDay: boolean;
1141
+ /**
1142
+ * Whether the VTODO is done: `STATUS:COMPLETED`
1143
+ */
1144
+ readonly completed: boolean;
1145
+ readonly createdAt: number;
1146
+ readonly updatedAt: number;
1147
+ };
991
1148
  /**
992
1149
  * Projection of a VEVENT's TRANSP property (RFC 5545 3.8.2.7) — whether the event consumes free/busy time. A VEVENT with no TRANSP projects as `Opaque`, the RFC default.
993
1150
  */
@@ -1261,6 +1418,14 @@ export type RemitImapCreateCalendarEventInput = {
1261
1418
  * RRULE value for a recurring event, e.g. "FREQ=WEEKLY;BYDAY=MO" (RFC 5545 3.8.5.3), without the property name. `""` creates a single event. Refused with 400 when it is not a rule this server can read.
1262
1419
  */
1263
1420
  recurrenceRule?: String512;
1421
+ /**
1422
+ * The guests. Each gets an invitation from the organizer's account, queued in the same write. Absent or empty creates an event nobody is invited to.
1423
+ */
1424
+ attendees?: Array<RemitImapCalendarAttendeeInput>;
1425
+ /**
1426
+ * The account the event is organized and its invitations sent from. Refused with 400 `unknown_organizer` when it is not an account of the caller's account config, or `organizer_cannot_send` when that account has Mail turned off. Absent, an event with guests is sent from the default invitation sender in effect (`getUserSettings`).
1427
+ */
1428
+ organizerAccountId?: Uuid;
1264
1429
  };
1265
1430
  /**
1266
1431
  * Input for creating a calendar collection (issue #15).
@@ -1294,6 +1459,35 @@ export type RemitImapCreateCalendarInput = {
1294
1459
  */
1295
1460
  subscriptionUrl?: String2048;
1296
1461
  };
1462
+ /**
1463
+ * Input for creating a task. The server builds the VTODO.
1464
+ */
1465
+ export type RemitImapCreateCalendarTaskInput = {
1466
+ /**
1467
+ * Collection to write the task into. Absent writes it into the account config's task collection. Refused with 400 when it names a collection that is not `VtodoOnly`.
1468
+ */
1469
+ calendarId?: Uuid;
1470
+ /**
1471
+ * SUMMARY of the task
1472
+ */
1473
+ summary: String512;
1474
+ /**
1475
+ * DESCRIPTION of the task. Absent writes none.
1476
+ */
1477
+ description?: String2048;
1478
+ /**
1479
+ * When the task is due: an ISO 8601 date-time with zone offset, or a `YYYY-MM-DD` date when `allDay` is set.
1480
+ */
1481
+ due: String64;
1482
+ /**
1483
+ * Whether the task is due on a day rather than at a time
1484
+ */
1485
+ allDay?: boolean;
1486
+ /**
1487
+ * IANA time zone the due time is anchored in. Absent anchors it in UTC.
1488
+ */
1489
+ timeZone?: String64;
1490
+ };
1297
1491
  /**
1298
1492
  * Response body for POST /me/export
1299
1493
  */
@@ -3377,6 +3571,18 @@ export type RemitImapUpdateCalendarEventInput = {
3377
3571
  * RRULE value, or `""` to drop the rule. Only meaningful with `scope=All` or `scope=Following`: an override is one occurrence and carries no rule of its own.
3378
3572
  */
3379
3573
  recurrenceRule?: String512;
3574
+ /**
3575
+ * The whole guest list after the edit. A new guest gets an invitation and a removed one a cancellation. Refused with 400 `not_organizer` on an event the reader does not organize.
3576
+ */
3577
+ attendees?: Array<RemitImapCalendarAttendeeInput>;
3578
+ /**
3579
+ * The account that organizes the event, for an event that names no organizer yet. Refused with 400 `not_organizer` when the event already names a different one: the organizer never changes.
3580
+ */
3581
+ organizerAccountId?: Uuid;
3582
+ /**
3583
+ * The reader's answer as a guest. Writes their PARTSTAT and queues a REPLY to the organizer. `scope` `This` answers one occurrence and `All` the series; `Following` is refused with 400. Refused with 400 `not_a_guest` when the reader organizes the event or is not on its guest list.
3584
+ */
3585
+ answer?: RemitImapCalendarInviteAnswer;
3380
3586
  };
3381
3587
  /**
3382
3588
  * Input for updating a calendar collection. The name, colour and timezone are the mutable overlay, and `subscriptionEnabled` turns a subscribed collection's refresh off and on. `urlSegment` is not among them, because it is the collection's identity and the path a client has bookmarked.
@@ -3399,6 +3605,20 @@ export type RemitImapUpdateCalendarInput = {
3399
3605
  */
3400
3606
  subscriptionEnabled?: boolean;
3401
3607
  };
3608
+ /**
3609
+ * Input for updating a task. Every field is optional and absence means untouched.
3610
+ */
3611
+ export type RemitImapUpdateCalendarTaskInput = {
3612
+ summary?: String512;
3613
+ description?: String2048;
3614
+ due?: String64;
3615
+ allDay?: boolean;
3616
+ timeZone?: String64;
3617
+ /**
3618
+ * Marks the task done (`STATUS:COMPLETED`) or not done again (`STATUS:NEEDS-ACTION`)
3619
+ */
3620
+ completed?: boolean;
3621
+ };
3402
3622
  /**
3403
3623
  * Input for updating a filter (RFC 034, reader #266). The name, predicate,
3404
3624
  * action, scope, and expiresAt are all updatable; `ttl` is always
@@ -3535,6 +3755,31 @@ export type RemitImapUpdateOutboxMessageInput = {
3535
3755
  */
3536
3756
  references?: Array<string>;
3537
3757
  };
3758
+ /**
3759
+ * A change to the caller's settings. Every field is optional and absence means untouched.
3760
+ */
3761
+ export type RemitImapUpdateUserSettingsInput = {
3762
+ /**
3763
+ * The account invitations go out from by default. Refused with 400 `unknown_sender` when it is not an account of the caller's account config that sends mail. Cleared with `clearDefaultInvitationSender`.
3764
+ */
3765
+ defaultInvitationSenderAccountId?: Uuid;
3766
+ };
3767
+ /**
3768
+ * The caller's own settings: choices that belong to the person rather than to
3769
+ * one mail account. Each field is stored as an `AccountSetting` row of the
3770
+ * account config and read back here, so a setting added later is one more
3771
+ * field on this resource rather than one more operation.
3772
+ */
3773
+ export type RemitImapUserSettingsResponse = {
3774
+ /**
3775
+ * The account calendar invitations, updates and cancellations go out from unless the event editor picks another: the one the reader chose while it still sends mail, otherwise the account an event is on — for a new event, the first account of the account config that sends mail, since a calendar belongs to the account config rather than to one account. Absent only when no account sends mail.
3776
+ */
3777
+ defaultInvitationSenderAccountId?: Uuid;
3778
+ /**
3779
+ * Whether `defaultInvitationSenderAccountId` is the reader's own choice rather than the account an event is on.
3780
+ */
3781
+ defaultInvitationSenderChosen: boolean;
3782
+ };
3538
3783
  /**
3539
3784
  * Sender is VIP: priority surface and push escalation
3540
3785
  */
@@ -3717,6 +3962,30 @@ export type RemitImapBodyPartResponseWritable = {
3717
3962
  */
3718
3963
  contentUrl: string;
3719
3964
  };
3965
+ /**
3966
+ * A stored calendar resource — the bytes behind one event, plus the columns
3967
+ * projected from them. `icalData` is canonical; every other field is derived
3968
+ * from it on write or on this read.
3969
+ */
3970
+ export type RemitImapCalendarEventResponseWritable = {
3971
+ /**
3972
+ * Where the reader stands on the event's master
3973
+ */
3974
+ participation: RemitImapCalendarParticipation;
3975
+ /**
3976
+ * Mail address of the ORGANIZER, lower-cased. `""` when the event names none.
3977
+ */
3978
+ organizer: String512;
3979
+ /**
3980
+ * Everyone on the guest list, organizer first. Empty when the event has no guests.
3981
+ */
3982
+ attendees: Array<RemitImapCalendarAttendee>;
3983
+ attendeeCounts: RemitImapCalendarAttendeeCounts;
3984
+ /**
3985
+ * The scheduling messages about this event still in the outbox. A write answers with the ones it queued; a read with every one not yet sent and filed.
3986
+ */
3987
+ sends: Array<RemitImapCalendarSchedulingSend>;
3988
+ };
3720
3989
  /**
3721
3990
  * Every calendar collection of the caller's account config, url segment first. Unpaginated: an account holds a handful of calendars, and a page boundary in a sidebar is a bug waiting to happen.
3722
3991
  */
@@ -3757,6 +4026,12 @@ export type RemitImapCalendarSuggestionResponseWritable = {
3757
4026
  */
3758
4027
  answerOvertakenBy: RemitImapCalendarAnswerOvertaken;
3759
4028
  };
4029
+ /**
4030
+ * Tasks due in the requested window, in due order. Unpaginated: the window is the bound.
4031
+ */
4032
+ export type RemitImapCalendarTaskListResponseWritable = {
4033
+ items: Array<unknown>;
4034
+ };
3760
4035
  /**
3761
4036
  * Full configuration description including accounts
3762
4037
  */
@@ -5414,9 +5689,9 @@ export type CalendarEventDetailOperationsDeleteCalendarEventErrors = {
5414
5689
  export type CalendarEventDetailOperationsDeleteCalendarEventError = CalendarEventDetailOperationsDeleteCalendarEventErrors[keyof CalendarEventDetailOperationsDeleteCalendarEventErrors];
5415
5690
  export type CalendarEventDetailOperationsDeleteCalendarEventResponses = {
5416
5691
  /**
5417
- * Nothing to return. The resource, or the occurrence, is gone.
5692
+ * What deleting an event sent: one cancellation per guest when the reader organizes it, nothing otherwise.
5418
5693
  */
5419
- 204: void;
5694
+ 200: RemitImapCalendarEventDeleteResponse;
5420
5695
  };
5421
5696
  export type CalendarEventDetailOperationsDeleteCalendarEventResponse = CalendarEventDetailOperationsDeleteCalendarEventResponses[keyof CalendarEventDetailOperationsDeleteCalendarEventResponses];
5422
5697
  export type CalendarEventDetailOperationsGetCalendarEventData = {
@@ -5830,6 +6105,245 @@ export type CalendarSuggestionActionOperationsReopenCalendarSuggestionResponses
5830
6105
  200: RemitImapCalendarSuggestionResponse;
5831
6106
  };
5832
6107
  export type CalendarSuggestionActionOperationsReopenCalendarSuggestionResponse = CalendarSuggestionActionOperationsReopenCalendarSuggestionResponses[keyof CalendarSuggestionActionOperationsReopenCalendarSuggestionResponses];
6108
+ export type CalendarTaskOperationsListCalendarTasksData = {
6109
+ body?: never;
6110
+ path?: never;
6111
+ query: {
6112
+ /**
6113
+ * Start of the window, an ISO 8601 date-time with zone offset. Inclusive.
6114
+ */
6115
+ from: string;
6116
+ /**
6117
+ * End of the window, an ISO 8601 date-time with zone offset. Exclusive.
6118
+ */
6119
+ to: string;
6120
+ /**
6121
+ * Restrict to these task collections, repeated once per calendar. Omitted means every one the caller holds.
6122
+ */
6123
+ calendarId?: Array<Uuid>;
6124
+ };
6125
+ url: '/calendar-tasks';
6126
+ };
6127
+ export type CalendarTaskOperationsListCalendarTasksErrors = {
6128
+ /**
6129
+ * The request was refused as malformed or contradictory. `code` is
6130
+ * `invalid_request` where nothing more specific is known, and the refusal's own
6131
+ * token where there is one.
6132
+ *
6133
+ * The calendar surface answers with the reason it read the request by:
6134
+ * `invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,
6135
+ * `unknown_time_zone` and `default_calendar_undeletable` on the collection and
6136
+ * the query, and, for a VCALENDAR it could not accept,
6137
+ * `malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,
6138
+ * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6139
+ * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6140
+ * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6141
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6142
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6143
+ * account in `details.accountId`.
6144
+ *
6145
+ * `errors` is present only when the request failed schema validation before any
6146
+ * handler ran, and names every field that was refused.
6147
+ */
6148
+ 400: ValidationError;
6149
+ /**
6150
+ * The request carried no usable credential. `code` is `unauthorized`.
6151
+ */
6152
+ 401: ApiError;
6153
+ /**
6154
+ * Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.
6155
+ */
6156
+ 404: ApiError;
6157
+ };
6158
+ export type CalendarTaskOperationsListCalendarTasksError = CalendarTaskOperationsListCalendarTasksErrors[keyof CalendarTaskOperationsListCalendarTasksErrors];
6159
+ export type CalendarTaskOperationsListCalendarTasksResponses = {
6160
+ /**
6161
+ * The request has succeeded.
6162
+ */
6163
+ 200: RemitImapCalendarTaskListResponse;
6164
+ };
6165
+ export type CalendarTaskOperationsListCalendarTasksResponse = CalendarTaskOperationsListCalendarTasksResponses[keyof CalendarTaskOperationsListCalendarTasksResponses];
6166
+ export type CalendarTaskOperationsCreateCalendarTaskData = {
6167
+ body: RemitImapCreateCalendarTaskInput;
6168
+ path?: never;
6169
+ query?: never;
6170
+ url: '/calendar-tasks';
6171
+ };
6172
+ export type CalendarTaskOperationsCreateCalendarTaskErrors = {
6173
+ /**
6174
+ * The request was refused as malformed or contradictory. `code` is
6175
+ * `invalid_request` where nothing more specific is known, and the refusal's own
6176
+ * token where there is one.
6177
+ *
6178
+ * The calendar surface answers with the reason it read the request by:
6179
+ * `invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,
6180
+ * `unknown_time_zone` and `default_calendar_undeletable` on the collection and
6181
+ * the query, and, for a VCALENDAR it could not accept,
6182
+ * `malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,
6183
+ * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6184
+ * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6185
+ * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6186
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6187
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6188
+ * account in `details.accountId`.
6189
+ *
6190
+ * `errors` is present only when the request failed schema validation before any
6191
+ * handler ran, and names every field that was refused.
6192
+ */
6193
+ 400: ValidationError;
6194
+ /**
6195
+ * The request carried no usable credential. `code` is `unauthorized`.
6196
+ */
6197
+ 401: ApiError;
6198
+ /**
6199
+ * Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.
6200
+ */
6201
+ 404: ApiError;
6202
+ };
6203
+ export type CalendarTaskOperationsCreateCalendarTaskError = CalendarTaskOperationsCreateCalendarTaskErrors[keyof CalendarTaskOperationsCreateCalendarTaskErrors];
6204
+ export type CalendarTaskOperationsCreateCalendarTaskResponses = {
6205
+ /**
6206
+ * The request has succeeded.
6207
+ */
6208
+ 200: RemitImapCalendarTaskResponse;
6209
+ };
6210
+ export type CalendarTaskOperationsCreateCalendarTaskResponse = CalendarTaskOperationsCreateCalendarTaskResponses[keyof CalendarTaskOperationsCreateCalendarTaskResponses];
6211
+ export type CalendarTaskDetailOperationsDeleteCalendarTaskData = {
6212
+ body?: never;
6213
+ headers?: {
6214
+ 'If-Match'?: string;
6215
+ };
6216
+ path: {
6217
+ calendarTaskId: Uuid;
6218
+ };
6219
+ query: {
6220
+ /**
6221
+ * Collection the task lives in
6222
+ */
6223
+ calendarId: Uuid;
6224
+ };
6225
+ url: '/calendar-tasks/{calendarTaskId}';
6226
+ };
6227
+ export type CalendarTaskDetailOperationsDeleteCalendarTaskErrors = {
6228
+ /**
6229
+ * The request carried no usable credential. `code` is `unauthorized`.
6230
+ */
6231
+ 401: ApiError;
6232
+ /**
6233
+ * Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.
6234
+ */
6235
+ 404: ApiError;
6236
+ /**
6237
+ * The condition the request stated is no longer true. Answered when an
6238
+ * `If-Match` names an etag the stored resource no longer carries: somebody else
6239
+ * wrote it in between, so applying this request would silently discard their
6240
+ * change. The client re-reads the resource and decides what to do with the
6241
+ * version it now has. `code` is `precondition_failed`.
6242
+ */
6243
+ 412: ApiError;
6244
+ };
6245
+ export type CalendarTaskDetailOperationsDeleteCalendarTaskError = CalendarTaskDetailOperationsDeleteCalendarTaskErrors[keyof CalendarTaskDetailOperationsDeleteCalendarTaskErrors];
6246
+ export type CalendarTaskDetailOperationsDeleteCalendarTaskResponses = {
6247
+ /**
6248
+ * Nothing to return. The resource, or the occurrence, is gone.
6249
+ */
6250
+ 204: void;
6251
+ };
6252
+ export type CalendarTaskDetailOperationsDeleteCalendarTaskResponse = CalendarTaskDetailOperationsDeleteCalendarTaskResponses[keyof CalendarTaskDetailOperationsDeleteCalendarTaskResponses];
6253
+ export type CalendarTaskDetailOperationsGetCalendarTaskData = {
6254
+ body?: never;
6255
+ path: {
6256
+ calendarTaskId: Uuid;
6257
+ };
6258
+ query?: {
6259
+ /**
6260
+ * Collection the task lives in. Omitted, it is looked for in every task collection the caller holds.
6261
+ */
6262
+ calendarId?: Uuid;
6263
+ };
6264
+ url: '/calendar-tasks/{calendarTaskId}';
6265
+ };
6266
+ export type CalendarTaskDetailOperationsGetCalendarTaskErrors = {
6267
+ /**
6268
+ * The request carried no usable credential. `code` is `unauthorized`.
6269
+ */
6270
+ 401: ApiError;
6271
+ /**
6272
+ * Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.
6273
+ */
6274
+ 404: ApiError;
6275
+ };
6276
+ export type CalendarTaskDetailOperationsGetCalendarTaskError = CalendarTaskDetailOperationsGetCalendarTaskErrors[keyof CalendarTaskDetailOperationsGetCalendarTaskErrors];
6277
+ export type CalendarTaskDetailOperationsGetCalendarTaskResponses = {
6278
+ /**
6279
+ * The request has succeeded.
6280
+ */
6281
+ 200: RemitImapCalendarTaskResponse;
6282
+ };
6283
+ export type CalendarTaskDetailOperationsGetCalendarTaskResponse = CalendarTaskDetailOperationsGetCalendarTaskResponses[keyof CalendarTaskDetailOperationsGetCalendarTaskResponses];
6284
+ export type CalendarTaskDetailOperationsUpdateCalendarTaskData = {
6285
+ body: RemitImapUpdateCalendarTaskInput;
6286
+ headers?: {
6287
+ 'If-Match'?: string;
6288
+ };
6289
+ path: {
6290
+ calendarTaskId: Uuid;
6291
+ };
6292
+ query: {
6293
+ /**
6294
+ * Collection the task lives in
6295
+ */
6296
+ calendarId: Uuid;
6297
+ };
6298
+ url: '/calendar-tasks/{calendarTaskId}';
6299
+ };
6300
+ export type CalendarTaskDetailOperationsUpdateCalendarTaskErrors = {
6301
+ /**
6302
+ * The request was refused as malformed or contradictory. `code` is
6303
+ * `invalid_request` where nothing more specific is known, and the refusal's own
6304
+ * token where there is one.
6305
+ *
6306
+ * The calendar surface answers with the reason it read the request by:
6307
+ * `invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,
6308
+ * `unknown_time_zone` and `default_calendar_undeletable` on the collection and
6309
+ * the query, and, for a VCALENDAR it could not accept,
6310
+ * `malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,
6311
+ * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
6312
+ * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
6313
+ * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
6314
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
6315
+ * send from an account whose `syncedServices` leave out `Mail`, with the
6316
+ * account in `details.accountId`.
6317
+ *
6318
+ * `errors` is present only when the request failed schema validation before any
6319
+ * handler ran, and names every field that was refused.
6320
+ */
6321
+ 400: ValidationError;
6322
+ /**
6323
+ * The request carried no usable credential. `code` is `unauthorized`.
6324
+ */
6325
+ 401: ApiError;
6326
+ /**
6327
+ * Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.
6328
+ */
6329
+ 404: ApiError;
6330
+ /**
6331
+ * The condition the request stated is no longer true. Answered when an
6332
+ * `If-Match` names an etag the stored resource no longer carries: somebody else
6333
+ * wrote it in between, so applying this request would silently discard their
6334
+ * change. The client re-reads the resource and decides what to do with the
6335
+ * version it now has. `code` is `precondition_failed`.
6336
+ */
6337
+ 412: ApiError;
6338
+ };
6339
+ export type CalendarTaskDetailOperationsUpdateCalendarTaskError = CalendarTaskDetailOperationsUpdateCalendarTaskErrors[keyof CalendarTaskDetailOperationsUpdateCalendarTaskErrors];
6340
+ export type CalendarTaskDetailOperationsUpdateCalendarTaskResponses = {
6341
+ /**
6342
+ * The request has succeeded.
6343
+ */
6344
+ 200: RemitImapCalendarTaskResponse;
6345
+ };
6346
+ export type CalendarTaskDetailOperationsUpdateCalendarTaskResponse = CalendarTaskDetailOperationsUpdateCalendarTaskResponses[keyof CalendarTaskDetailOperationsUpdateCalendarTaskResponses];
5833
6347
  export type CalendarOperationsListCalendarsData = {
5834
6348
  body?: never;
5835
6349
  path?: never;
@@ -7158,6 +7672,87 @@ export type OutboxDetailOperationsSendOutboxMessageResponses = {
7158
7672
  200: RemitImapOutboxMessageResponse;
7159
7673
  };
7160
7674
  export type OutboxDetailOperationsSendOutboxMessageResponse = OutboxDetailOperationsSendOutboxMessageResponses[keyof OutboxDetailOperationsSendOutboxMessageResponses];
7675
+ export type UserSettingsOperationsGetUserSettingsData = {
7676
+ body?: never;
7677
+ path?: never;
7678
+ query?: never;
7679
+ url: '/settings';
7680
+ };
7681
+ export type UserSettingsOperationsGetUserSettingsErrors = {
7682
+ /**
7683
+ * The request carried no usable credential. `code` is `unauthorized`.
7684
+ */
7685
+ 401: ApiError;
7686
+ };
7687
+ export type UserSettingsOperationsGetUserSettingsError = UserSettingsOperationsGetUserSettingsErrors[keyof UserSettingsOperationsGetUserSettingsErrors];
7688
+ export type UserSettingsOperationsGetUserSettingsResponses = {
7689
+ /**
7690
+ * The request has succeeded.
7691
+ */
7692
+ 200: RemitImapUserSettingsResponse;
7693
+ };
7694
+ export type UserSettingsOperationsGetUserSettingsResponse = UserSettingsOperationsGetUserSettingsResponses[keyof UserSettingsOperationsGetUserSettingsResponses];
7695
+ export type UserSettingsOperationsUpdateUserSettingsData = {
7696
+ body: RemitImapUpdateUserSettingsInput;
7697
+ path?: never;
7698
+ query?: never;
7699
+ url: '/settings';
7700
+ };
7701
+ export type UserSettingsOperationsUpdateUserSettingsErrors = {
7702
+ /**
7703
+ * The request was refused as malformed or contradictory. `code` is
7704
+ * `invalid_request` where nothing more specific is known, and the refusal's own
7705
+ * token where there is one.
7706
+ *
7707
+ * The calendar surface answers with the reason it read the request by:
7708
+ * `invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,
7709
+ * `unknown_time_zone` and `default_calendar_undeletable` on the collection and
7710
+ * the query, and, for a VCALENDAR it could not accept,
7711
+ * `malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,
7712
+ * `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
7713
+ * `missing_dt_start`, `backwards_end`, `invalid_date_time`,
7714
+ * `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,
7715
+ * `unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a
7716
+ * send from an account whose `syncedServices` leave out `Mail`, with the
7717
+ * account in `details.accountId`.
7718
+ *
7719
+ * `errors` is present only when the request failed schema validation before any
7720
+ * handler ran, and names every field that was refused.
7721
+ */
7722
+ 400: ValidationError;
7723
+ /**
7724
+ * The request carried no usable credential. `code` is `unauthorized`.
7725
+ */
7726
+ 401: ApiError;
7727
+ };
7728
+ export type UserSettingsOperationsUpdateUserSettingsError = UserSettingsOperationsUpdateUserSettingsErrors[keyof UserSettingsOperationsUpdateUserSettingsErrors];
7729
+ export type UserSettingsOperationsUpdateUserSettingsResponses = {
7730
+ /**
7731
+ * The request has succeeded.
7732
+ */
7733
+ 200: RemitImapUserSettingsResponse;
7734
+ };
7735
+ export type UserSettingsOperationsUpdateUserSettingsResponse = UserSettingsOperationsUpdateUserSettingsResponses[keyof UserSettingsOperationsUpdateUserSettingsResponses];
7736
+ export type UserSettingsOperationsClearDefaultInvitationSenderData = {
7737
+ body?: never;
7738
+ path?: never;
7739
+ query?: never;
7740
+ url: '/settings/default-invitation-sender';
7741
+ };
7742
+ export type UserSettingsOperationsClearDefaultInvitationSenderErrors = {
7743
+ /**
7744
+ * The request carried no usable credential. `code` is `unauthorized`.
7745
+ */
7746
+ 401: ApiError;
7747
+ };
7748
+ export type UserSettingsOperationsClearDefaultInvitationSenderError = UserSettingsOperationsClearDefaultInvitationSenderErrors[keyof UserSettingsOperationsClearDefaultInvitationSenderErrors];
7749
+ export type UserSettingsOperationsClearDefaultInvitationSenderResponses = {
7750
+ /**
7751
+ * The request has succeeded.
7752
+ */
7753
+ 200: RemitImapUserSettingsResponse;
7754
+ };
7755
+ export type UserSettingsOperationsClearDefaultInvitationSenderResponse = UserSettingsOperationsClearDefaultInvitationSenderResponses[keyof UserSettingsOperationsClearDefaultInvitationSenderResponses];
7161
7756
  export type SystemOperationsGetSystemUpdateData = {
7162
7757
  body?: never;
7163
7758
  path?: never;