@remit/api-http-client 0.0.78 → 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.
Files changed (47) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1363 -0
  2. package/{@tanstack/react-query.gen.ts → dist/@tanstack/react-query.gen.js} +298 -300
  3. package/dist/client/client.gen.d.ts +2 -0
  4. package/dist/client/client.gen.js +216 -0
  5. package/{client/index.ts → dist/client/index.d.ts} +2 -19
  6. package/dist/client/index.js +6 -0
  7. package/dist/client/types.gen.d.ts +120 -0
  8. package/dist/client/types.gen.js +2 -0
  9. package/dist/client/utils.gen.d.ts +37 -0
  10. package/dist/client/utils.gen.js +228 -0
  11. package/{client.gen.ts → dist/client.gen.d.ts} +2 -6
  12. package/dist/client.gen.js +3 -0
  13. package/dist/core/auth.gen.d.ts +25 -0
  14. package/dist/core/auth.gen.js +14 -0
  15. package/dist/core/bodySerializer.gen.d.ts +25 -0
  16. package/dist/core/bodySerializer.gen.js +57 -0
  17. package/dist/core/params.gen.d.ts +43 -0
  18. package/dist/core/params.gen.js +109 -0
  19. package/dist/core/pathSerializer.gen.d.ts +33 -0
  20. package/dist/core/pathSerializer.gen.js +106 -0
  21. package/dist/core/queryKeySerializer.gen.d.ts +18 -0
  22. package/dist/core/queryKeySerializer.gen.js +92 -0
  23. package/dist/core/serverSentEvents.gen.d.ts +71 -0
  24. package/dist/core/serverSentEvents.gen.js +132 -0
  25. package/dist/core/types.gen.d.ts +83 -0
  26. package/dist/core/types.gen.js +2 -0
  27. package/dist/core/utils.gen.d.ts +19 -0
  28. package/dist/core/utils.gen.js +87 -0
  29. package/{index.ts → dist/index.d.ts} +2 -4
  30. package/dist/index.js +2 -0
  31. package/dist/sdk.gen.d.ts +444 -0
  32. package/dist/sdk.gen.js +935 -0
  33. package/{types.gen.ts → dist/types.gen.d.ts} +602 -634
  34. package/dist/types.gen.js +2 -0
  35. package/package.json +19 -3
  36. package/client/client.gen.ts +0 -277
  37. package/client/types.gen.ts +0 -218
  38. package/client/utils.gen.ts +0 -316
  39. package/core/auth.gen.ts +0 -48
  40. package/core/bodySerializer.gen.ts +0 -82
  41. package/core/params.gen.ts +0 -178
  42. package/core/pathSerializer.gen.ts +0 -171
  43. package/core/queryKeySerializer.gen.ts +0 -117
  44. package/core/serverSentEvents.gen.ts +0 -242
  45. package/core/types.gen.ts +0 -110
  46. package/core/utils.gen.ts +0 -140
  47. package/sdk.gen.ts +0 -959
@@ -0,0 +1,444 @@
1
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
+ import type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountErrors, AccountDetailOperationsDeleteAccountResponses, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountErrors, AccountDetailOperationsUpdateAccountResponses, AccountOperationsCreateAccountData, AccountOperationsCreateAccountErrors, AccountOperationsCreateAccountResponses, AccountOperationsTestConnectionData, AccountOperationsTestConnectionErrors, AccountOperationsTestConnectionResponses, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressErrors, AddressDetailOperationsUpdateAddressResponses, AddressOperationsSearchAddressesData, AddressOperationsSearchAddressesErrors, AddressOperationsSearchAddressesResponses, CalendarDetailOperationsDeleteCalendarData, CalendarDetailOperationsDeleteCalendarErrors, CalendarDetailOperationsDeleteCalendarResponses, CalendarDetailOperationsGetCalendarData, CalendarDetailOperationsGetCalendarErrors, CalendarDetailOperationsGetCalendarFeedData, CalendarDetailOperationsGetCalendarFeedErrors, CalendarDetailOperationsGetCalendarFeedResponses, CalendarDetailOperationsGetCalendarResponses, CalendarDetailOperationsPutCalendarFeedData, CalendarDetailOperationsPutCalendarFeedErrors, CalendarDetailOperationsPutCalendarFeedResponses, CalendarDetailOperationsRevokeCalendarFeedData, CalendarDetailOperationsRevokeCalendarFeedErrors, CalendarDetailOperationsRevokeCalendarFeedResponses, CalendarDetailOperationsUpdateCalendarData, CalendarDetailOperationsUpdateCalendarErrors, CalendarDetailOperationsUpdateCalendarResponses, CalendarEventDetailOperationsDeleteCalendarEventData, CalendarEventDetailOperationsDeleteCalendarEventErrors, CalendarEventDetailOperationsDeleteCalendarEventResponses, CalendarEventDetailOperationsGetCalendarEventData, CalendarEventDetailOperationsGetCalendarEventErrors, CalendarEventDetailOperationsGetCalendarEventResponses, CalendarEventDetailOperationsUpdateCalendarEventData, CalendarEventDetailOperationsUpdateCalendarEventErrors, CalendarEventDetailOperationsUpdateCalendarEventResponses, CalendarEventOperationsCreateCalendarEventData, CalendarEventOperationsCreateCalendarEventErrors, CalendarEventOperationsCreateCalendarEventResponses, CalendarEventOperationsListCalendarEventsData, CalendarEventOperationsListCalendarEventsErrors, CalendarEventOperationsListCalendarEventsResponses, CalendarFeedOperationsGetCalendarFeedIcalData, CalendarFeedOperationsGetCalendarFeedIcalErrors, CalendarFeedOperationsGetCalendarFeedIcalResponses, CalendarFreeBusyOperationsListCalendarFreeBusyData, CalendarFreeBusyOperationsListCalendarFreeBusyErrors, CalendarFreeBusyOperationsListCalendarFreeBusyResponses, CalendarOperationsCreateCalendarData, CalendarOperationsCreateCalendarErrors, CalendarOperationsCreateCalendarResponses, CalendarOperationsListCalendarsData, CalendarOperationsListCalendarsErrors, CalendarOperationsListCalendarsResponses, CalendarSuggestionActionOperationsAcceptCalendarSuggestionData, CalendarSuggestionActionOperationsAcceptCalendarSuggestionErrors, CalendarSuggestionActionOperationsAcceptCalendarSuggestionResponses, CalendarSuggestionActionOperationsDeclineCalendarSuggestionData, CalendarSuggestionActionOperationsDeclineCalendarSuggestionErrors, CalendarSuggestionActionOperationsDeclineCalendarSuggestionResponses, CalendarSuggestionActionOperationsDismissCalendarSuggestionData, CalendarSuggestionActionOperationsDismissCalendarSuggestionErrors, CalendarSuggestionActionOperationsDismissCalendarSuggestionResponses, CalendarSuggestionActionOperationsReopenCalendarSuggestionData, CalendarSuggestionActionOperationsReopenCalendarSuggestionErrors, CalendarSuggestionActionOperationsReopenCalendarSuggestionResponses, CalendarSuggestionOperationsListCalendarSuggestionsData, CalendarSuggestionOperationsListCalendarSuggestionsErrors, CalendarSuggestionOperationsListCalendarSuggestionsResponses, CalendarTaskDetailOperationsDeleteCalendarTaskData, CalendarTaskDetailOperationsDeleteCalendarTaskErrors, CalendarTaskDetailOperationsDeleteCalendarTaskResponses, CalendarTaskDetailOperationsGetCalendarTaskData, CalendarTaskDetailOperationsGetCalendarTaskErrors, CalendarTaskDetailOperationsGetCalendarTaskResponses, CalendarTaskDetailOperationsUpdateCalendarTaskData, CalendarTaskDetailOperationsUpdateCalendarTaskErrors, CalendarTaskDetailOperationsUpdateCalendarTaskResponses, CalendarTaskOperationsCreateCalendarTaskData, CalendarTaskOperationsCreateCalendarTaskErrors, CalendarTaskOperationsCreateCalendarTaskResponses, CalendarTaskOperationsListCalendarTasksData, CalendarTaskOperationsListCalendarTasksErrors, CalendarTaskOperationsListCalendarTasksResponses, ConfigOperationsExportConfigData, ConfigOperationsExportConfigErrors, ConfigOperationsExportConfigResponses, ConfigOperationsGetConfigData, ConfigOperationsGetConfigErrors, ConfigOperationsGetConfigResponses, ConfigOperationsImportConfigData, ConfigOperationsImportConfigErrors, ConfigOperationsImportConfigResponses, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterErrors, FilterDetailOperationsDeleteFilterResponses, FilterDetailOperationsGetFilterData, FilterDetailOperationsGetFilterErrors, FilterDetailOperationsGetFilterResponses, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterErrors, FilterDetailOperationsUpdateFilterResponses, FilterOperationsCreateFilterData, FilterOperationsCreateFilterErrors, FilterOperationsCreateFilterResponses, FilterOperationsListFiltersData, FilterOperationsListFiltersErrors, FilterOperationsListFiltersResponses, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleErrors, FolderRoleOperationsAppointFolderRoleResponses, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelErrors, LabelDetailOperationsDeleteLabelResponses, LabelDetailOperationsGetLabelData, LabelDetailOperationsGetLabelErrors, LabelDetailOperationsGetLabelResponses, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelErrors, LabelDetailOperationsUpdateLabelResponses, LabelOperationsCreateLabelData, LabelOperationsCreateLabelErrors, LabelOperationsCreateLabelResponses, LabelOperationsListLabelsData, LabelOperationsListLabelsErrors, LabelOperationsListLabelsResponses, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxErrors, MailboxDetailOperationsDeleteMailboxResponses, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsGetMailboxErrors, MailboxDetailOperationsGetMailboxResponses, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxErrors, MailboxDetailOperationsRenameMailboxResponses, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxErrors, MailboxOperationsCreateMailboxResponses, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesErrors, MailboxOperationsListMailboxesResponses, MeOperationsCreateExportData, MeOperationsCreateExportErrors, MeOperationsCreateExportResponses, MeOperationsDeleteMeData, MeOperationsDeleteMeErrors, MeOperationsDeleteMeResponses, MeOperationsGetExportData, MeOperationsGetExportErrors, MeOperationsGetExportResponses, MeOperationsListQuarantineData, MeOperationsListQuarantineErrors, MeOperationsListQuarantineResponses, MeOperationsListVipSuggestionsData, MeOperationsListVipSuggestionsErrors, MeOperationsListVipSuggestionsResponses, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesErrors, MessageBulkOperationsCopyMessagesResponses, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesErrors, MessageBulkOperationsDeleteMessagesResponses, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesErrors, MessageBulkOperationsMoveMessagesResponses, MessageBulkOperationsNotSpamData, MessageBulkOperationsNotSpamErrors, MessageBulkOperationsNotSpamResponses, MessageBulkOperationsReportSpamData, MessageBulkOperationsReportSpamErrors, MessageBulkOperationsReportSpamResponses, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsErrors, MessageBulkOperationsUpdateFlagsResponses, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsErrors, MessageBulkOperationsUpdateMessageLabelsResponses, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsErrors, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsResponses, MessageOperationsDescribeMessageData, MessageOperationsDescribeMessageErrors, MessageOperationsDescribeMessageResponses, MessageOperationsGetRawMessageData, MessageOperationsGetRawMessageErrors, MessageOperationsGetRawMessageResponses, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsErrors, MessageOperationsUpdateMessageFlagsResponses, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartErrors, MicrosoftOAuthOperationsMicrosoftOAuthStartResponses, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeJobDetailOperationsGetOrganizeJobErrors, OrganizeJobDetailOperationsGetOrganizeJobResponses, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobErrors, OrganizeOperationsCreateOrganizeJobResponses, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeErrors, OrganizeOperationsPreviewOrganizeResponses, OutboxAttachmentOperationsCompleteOutboxAttachmentData, OutboxAttachmentOperationsCompleteOutboxAttachmentErrors, OutboxAttachmentOperationsCompleteOutboxAttachmentResponses, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageErrors, OutboxDetailOperationsDeleteOutboxMessageResponses, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsGetOutboxMessageErrors, OutboxDetailOperationsGetOutboxMessageResponses, OutboxDetailOperationsMintOutboxAttachmentData, OutboxDetailOperationsMintOutboxAttachmentErrors, OutboxDetailOperationsMintOutboxAttachmentResponses, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageErrors, OutboxDetailOperationsSendOutboxMessageResponses, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageErrors, OutboxDetailOperationsUpdateOutboxMessageResponses, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageErrors, OutboxOperationsCreateOutboxMessageResponses, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesErrors, OutboxOperationsListOutboxMessagesResponses, SyncOperationsGetSyncStatusData, SyncOperationsGetSyncStatusErrors, SyncOperationsGetSyncStatusResponses, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncErrors, SyncOperationsTriggerSyncResponses, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateErrors, SystemOperationsApplySystemUpdateResponses, SystemOperationsGetSystemUpdateData, SystemOperationsGetSystemUpdateErrors, SystemOperationsGetSystemUpdateResponses, ThreadDetailOperationsListThreadMessagesData, ThreadDetailOperationsListThreadMessagesErrors, ThreadDetailOperationsListThreadMessagesResponses, ThreadOperationsListThreadsData, ThreadOperationsListThreadsErrors, ThreadOperationsListThreadsResponses, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsErrors, ThreadOperationsSearchThreadsResponses, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashErrors, TrashOperationsEmptyTrashResponses, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsErrors, UnifiedThreadOperationsListAllThreadsResponses, UserSettingsOperationsClearDefaultInvitationSenderData, UserSettingsOperationsClearDefaultInvitationSenderErrors, UserSettingsOperationsClearDefaultInvitationSenderResponses, UserSettingsOperationsGetUserSettingsData, UserSettingsOperationsGetUserSettingsErrors, UserSettingsOperationsGetUserSettingsResponses, UserSettingsOperationsUpdateUserSettingsData, UserSettingsOperationsUpdateUserSettingsErrors, UserSettingsOperationsUpdateUserSettingsResponses } from './types.gen.js';
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
15
+ };
16
+ /**
17
+ * Create a new email account
18
+ */
19
+ export declare const accountOperationsCreateAccount: <ThrowOnError extends boolean = false>(options: Options<AccountOperationsCreateAccountData, ThrowOnError>) => RequestResult<AccountOperationsCreateAccountResponses, AccountOperationsCreateAccountErrors, ThrowOnError>;
20
+ /**
21
+ * Microsoft OAuth2 callback endpoint — receives the authorization code from Microsoft and exchanges it for tokens. This endpoint is intentionally unauthenticated: the browser is redirected here by Microsoft after the user grants consent, before any Cognito session is available. CSRF is prevented by an HMAC-signed state parameter.
22
+ */
23
+ export declare const microsoftOAuthOperationsMicrosoftOAuthCallback: <ThrowOnError extends boolean = false>(options?: Options<MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, ThrowOnError>) => RequestResult<unknown, unknown, ThrowOnError>;
24
+ /**
25
+ * Start Microsoft OAuth2 authorization flow
26
+ */
27
+ export declare const microsoftOAuthOperationsMicrosoftOAuthStart: <ThrowOnError extends boolean = false>(options: Options<MicrosoftOAuthOperationsMicrosoftOAuthStartData, ThrowOnError>) => RequestResult<MicrosoftOAuthOperationsMicrosoftOAuthStartResponses, MicrosoftOAuthOperationsMicrosoftOAuthStartErrors, ThrowOnError>;
28
+ /**
29
+ * Test IMAP/SMTP connection without saving
30
+ */
31
+ export declare const accountOperationsTestConnection: <ThrowOnError extends boolean = false>(options: Options<AccountOperationsTestConnectionData, ThrowOnError>) => RequestResult<AccountOperationsTestConnectionResponses, AccountOperationsTestConnectionErrors, ThrowOnError>;
32
+ /**
33
+ * Delete an account and all associated data
34
+ */
35
+ export declare const accountDetailOperationsDeleteAccount: <ThrowOnError extends boolean = false>(options: Options<AccountDetailOperationsDeleteAccountData, ThrowOnError>) => RequestResult<AccountDetailOperationsDeleteAccountResponses, AccountDetailOperationsDeleteAccountErrors, ThrowOnError>;
36
+ /**
37
+ * Update an existing account
38
+ */
39
+ export declare const accountDetailOperationsUpdateAccount: <ThrowOnError extends boolean = false>(options: Options<AccountDetailOperationsUpdateAccountData, ThrowOnError>) => RequestResult<AccountDetailOperationsUpdateAccountResponses, AccountDetailOperationsUpdateAccountErrors, ThrowOnError>;
40
+ export declare const filterOperationsListFilters: <ThrowOnError extends boolean = false>(options: Options<FilterOperationsListFiltersData, ThrowOnError>) => RequestResult<FilterOperationsListFiltersResponses, FilterOperationsListFiltersErrors, ThrowOnError>;
41
+ export declare const filterOperationsCreateFilter: <ThrowOnError extends boolean = false>(options: Options<FilterOperationsCreateFilterData, ThrowOnError>) => RequestResult<FilterOperationsCreateFilterResponses, FilterOperationsCreateFilterErrors, ThrowOnError>;
42
+ export declare const filterDetailOperationsDeleteFilter: <ThrowOnError extends boolean = false>(options: Options<FilterDetailOperationsDeleteFilterData, ThrowOnError>) => RequestResult<FilterDetailOperationsDeleteFilterResponses, FilterDetailOperationsDeleteFilterErrors, ThrowOnError>;
43
+ export declare const filterDetailOperationsGetFilter: <ThrowOnError extends boolean = false>(options: Options<FilterDetailOperationsGetFilterData, ThrowOnError>) => RequestResult<FilterDetailOperationsGetFilterResponses, FilterDetailOperationsGetFilterErrors, ThrowOnError>;
44
+ export declare const filterDetailOperationsUpdateFilter: <ThrowOnError extends boolean = false>(options: Options<FilterDetailOperationsUpdateFilterData, ThrowOnError>) => RequestResult<FilterDetailOperationsUpdateFilterResponses, FilterDetailOperationsUpdateFilterErrors, ThrowOnError>;
45
+ /**
46
+ * Appoint a canonical role to a mailbox, or clear it. Exclusive by construction: the role always resolves to exactly one mailbox, so appointing a new one silently replaces whichever mailbox previously held it — there is no second place a duplicate appointment could live. Returns the account with its refreshed folderAppointments.
47
+ */
48
+ export declare const folderRoleOperationsAppointFolderRole: <ThrowOnError extends boolean = false>(options: Options<FolderRoleOperationsAppointFolderRoleData, ThrowOnError>) => RequestResult<FolderRoleOperationsAppointFolderRoleResponses, FolderRoleOperationsAppointFolderRoleErrors, ThrowOnError>;
49
+ export declare const labelOperationsListLabels: <ThrowOnError extends boolean = false>(options: Options<LabelOperationsListLabelsData, ThrowOnError>) => RequestResult<LabelOperationsListLabelsResponses, LabelOperationsListLabelsErrors, ThrowOnError>;
50
+ export declare const labelOperationsCreateLabel: <ThrowOnError extends boolean = false>(options: Options<LabelOperationsCreateLabelData, ThrowOnError>) => RequestResult<LabelOperationsCreateLabelResponses, LabelOperationsCreateLabelErrors, ThrowOnError>;
51
+ /**
52
+ * Delete a label. Cascades in both directions (issue #26): every `MessageLabel` row for it is removed, and every filter whose `actionLabelId` is this label is deleted outright — never left dangling, never blocking the delete. The client is expected to confirm first, naming `LabelResponse.filterCount` as the number of filters that will go with it.
53
+ */
54
+ export declare const labelDetailOperationsDeleteLabel: <ThrowOnError extends boolean = false>(options: Options<LabelDetailOperationsDeleteLabelData, ThrowOnError>) => RequestResult<LabelDetailOperationsDeleteLabelResponses, LabelDetailOperationsDeleteLabelErrors, ThrowOnError>;
55
+ export declare const labelDetailOperationsGetLabel: <ThrowOnError extends boolean = false>(options: Options<LabelDetailOperationsGetLabelData, ThrowOnError>) => RequestResult<LabelDetailOperationsGetLabelResponses, LabelDetailOperationsGetLabelErrors, ThrowOnError>;
56
+ export declare const labelDetailOperationsUpdateLabel: <ThrowOnError extends boolean = false>(options: Options<LabelDetailOperationsUpdateLabelData, ThrowOnError>) => RequestResult<LabelDetailOperationsUpdateLabelResponses, LabelDetailOperationsUpdateLabelErrors, ThrowOnError>;
57
+ export declare const mailboxOperationsListMailboxes: <ThrowOnError extends boolean = false>(options: Options<MailboxOperationsListMailboxesData, ThrowOnError>) => RequestResult<MailboxOperationsListMailboxesResponses, MailboxOperationsListMailboxesErrors, ThrowOnError>;
58
+ /**
59
+ * Create a folder. Refused with 400 when the account already has a folder at that path.
60
+ */
61
+ export declare const mailboxOperationsCreateMailbox: <ThrowOnError extends boolean = false>(options: Options<MailboxOperationsCreateMailboxData, ThrowOnError>) => RequestResult<MailboxOperationsCreateMailboxResponses, MailboxOperationsCreateMailboxErrors, ThrowOnError>;
62
+ /**
63
+ * Record a delete intent for a folder. The folder stays listed, marked as being deleted, until the mail server confirms it and its mail goes with it. Refused with 400 for INBOX, for a folder with folders inside it, and for a folder a filter or a canonical role is bound to — the message names each binding; with 409 when a mutation is already in flight on it.
64
+ */
65
+ export declare const mailboxDetailOperationsDeleteMailbox: <ThrowOnError extends boolean = false>(options: Options<MailboxDetailOperationsDeleteMailboxData, ThrowOnError>) => RequestResult<MailboxDetailOperationsDeleteMailboxResponses, MailboxDetailOperationsDeleteMailboxErrors, ThrowOnError>;
66
+ export declare const mailboxDetailOperationsGetMailbox: <ThrowOnError extends boolean = false>(options: Options<MailboxDetailOperationsGetMailboxData, ThrowOnError>) => RequestResult<MailboxDetailOperationsGetMailboxResponses, MailboxDetailOperationsGetMailboxErrors, ThrowOnError>;
67
+ /**
68
+ * Rename a folder, or dismiss a folder mutation that failed. `fullPath` records the rename target over the folder and everything under it; the folder keeps the path the mail server holds until the rename lands. A `fullPath` equal to the folder's current one is a dismissal: it clears a failed rename or delete and enqueues nothing. Refused with 400 for INBOX at either end, a name reserved for a system folder, and a name another folder already has; with 409 when a mutation is already in flight on the folder or on anything inside it.
69
+ */
70
+ export declare const mailboxDetailOperationsRenameMailbox: <ThrowOnError extends boolean = false>(options: Options<MailboxDetailOperationsRenameMailboxData, ThrowOnError>) => RequestResult<MailboxDetailOperationsRenameMailboxResponses, MailboxDetailOperationsRenameMailboxErrors, ThrowOnError>;
71
+ /**
72
+ * Start a one-time "all like these" back-apply: match the corpus against the given predicate and apply the action to every match, in one pass. Returns immediately with an organizeJobId; poll GET /accounts/{accountId}/organize/{organizeJobId} for state and counts. Never creates a Filter row (RFC 034 recap).
73
+ */
74
+ export declare const organizeOperationsCreateOrganizeJob: <ThrowOnError extends boolean = false>(options: Options<OrganizeOperationsCreateOrganizeJobData, ThrowOnError>) => RequestResult<OrganizeOperationsCreateOrganizeJobResponses, OrganizeOperationsCreateOrganizeJobErrors, ThrowOnError>;
75
+ /**
76
+ * Preview an "all like these" back-apply: run the exact same matcher read-only and return the messages the action would be applied to, without applying it. The previewed set equals the set a job with the same input would apply to.
77
+ */
78
+ export declare const organizeOperationsPreviewOrganize: <ThrowOnError extends boolean = false>(options: Options<OrganizeOperationsPreviewOrganizeData, ThrowOnError>) => RequestResult<OrganizeOperationsPreviewOrganizeResponses, OrganizeOperationsPreviewOrganizeErrors, ThrowOnError>;
79
+ /**
80
+ * Get the status of a back-apply job, including matched/applied/failed counts. Terminal states are Complete and Failed.
81
+ */
82
+ export declare const organizeJobDetailOperationsGetOrganizeJob: <ThrowOnError extends boolean = false>(options: Options<OrganizeJobDetailOperationsGetOrganizeJobData, ThrowOnError>) => RequestResult<OrganizeJobDetailOperationsGetOrganizeJobResponses, OrganizeJobDetailOperationsGetOrganizeJobErrors, ThrowOnError>;
83
+ export declare const syncOperationsTriggerSync: <ThrowOnError extends boolean = false>(options: Options<SyncOperationsTriggerSyncData, ThrowOnError>) => RequestResult<SyncOperationsTriggerSyncResponses, SyncOperationsTriggerSyncErrors, ThrowOnError>;
84
+ /**
85
+ * Get the current sync status for an account, including per-mailbox progress computed from watermarks. Read-only — does not write or contend with the mailbox sync lock (RFC 023).
86
+ */
87
+ export declare const syncOperationsGetSyncStatus: <ThrowOnError extends boolean = false>(options: Options<SyncOperationsGetSyncStatusData, ThrowOnError>) => RequestResult<SyncOperationsGetSyncStatusResponses, SyncOperationsGetSyncStatusErrors, ThrowOnError>;
88
+ /**
89
+ * Permanently delete all messages in the Trash mailbox
90
+ */
91
+ export declare const trashOperationsEmptyTrash: <ThrowOnError extends boolean = false>(options: Options<TrashOperationsEmptyTrashData, ThrowOnError>) => RequestResult<TrashOperationsEmptyTrashResponses, TrashOperationsEmptyTrashErrors, ThrowOnError>;
92
+ /**
93
+ * Search addresses for autocomplete
94
+ */
95
+ export declare const addressOperationsSearchAddresses: <ThrowOnError extends boolean = false>(options: Options<AddressOperationsSearchAddressesData, ThrowOnError>) => RequestResult<AddressOperationsSearchAddressesResponses, AddressOperationsSearchAddressesErrors, ThrowOnError>;
96
+ /**
97
+ * Update an address (currently: per-sender flags). Pass `flags` to set flags and `clearFlags: ["<name>"]` to remove them. Other flags are untouched.
98
+ */
99
+ export declare const addressDetailOperationsUpdateAddress: <ThrowOnError extends boolean = false>(options: Options<AddressDetailOperationsUpdateAddressData, ThrowOnError>) => RequestResult<AddressDetailOperationsUpdateAddressResponses, AddressDetailOperationsUpdateAddressErrors, ThrowOnError>;
100
+ /**
101
+ * Expanded event occurrences in a window. The server does the recurrence
102
+ * expansion and the client renders instances — no RRULE is ever evaluated
103
+ * in a browser, so a week grid and a day strip agree with each other and
104
+ * with what a native client will later read over CalDAV.
105
+ *
106
+ * Occurrences are served from the stored occurrence index. A series whose
107
+ * index stops before `to` — an open-ended event older than the expansion
108
+ * horizon — is expanded live for this window instead, and nothing
109
+ * unbounded is written to serve a read.
110
+ *
111
+ * Refused with 400 when `from` and `to` are not ISO 8601 date-times, when
112
+ * `to` is not after `from`, or when the window is wider than a year.
113
+ */
114
+ export declare const calendarEventOperationsListCalendarEvents: <ThrowOnError extends boolean = false>(options: Options<CalendarEventOperationsListCalendarEventsData, ThrowOnError>) => RequestResult<CalendarEventOperationsListCalendarEventsResponses, CalendarEventOperationsListCalendarEventsErrors, ThrowOnError>;
115
+ /**
116
+ * Create an event. The server builds the VEVENT and writes it through the single calendar write path — the same one an accepted invitation and a later CalDAV PUT go through — so the object, its expanded occurrences and the collection's sync sequence land together or not at all. Refused with 400 `read_only_calendar` for a `Subscribed` collection, whose events belong to the feed.
117
+ */
118
+ export declare const calendarEventOperationsCreateCalendarEvent: <ThrowOnError extends boolean = false>(options: Options<CalendarEventOperationsCreateCalendarEventData, ThrowOnError>) => RequestResult<CalendarEventOperationsCreateCalendarEventResponses, CalendarEventOperationsCreateCalendarEventErrors, ThrowOnError>;
119
+ /**
120
+ * Delete an event. `All` removes the resource and every occurrence it
121
+ * produced; `This` writes an EXDATE for the named occurrence and keeps the
122
+ * rest of the series; `Following` truncates the series to end just before
123
+ * it.
124
+ *
125
+ * Same refusals and the same `If-Match` precondition as the update.
126
+ * An event in a `Subscribed` collection is refused with 400
127
+ * `read_only_calendar`, here and on the update.
128
+ *
129
+ * Answers 200 with the cancellations it queued: one per guest when the
130
+ * reader organizes the event, none otherwise.
131
+ */
132
+ export declare const calendarEventDetailOperationsDeleteCalendarEvent: <ThrowOnError extends boolean = false>(options: Options<CalendarEventDetailOperationsDeleteCalendarEventData, ThrowOnError>) => RequestResult<CalendarEventDetailOperationsDeleteCalendarEventResponses, CalendarEventDetailOperationsDeleteCalendarEventErrors, ThrowOnError>;
133
+ /**
134
+ * Get one stored event, including its canonical iCalendar text and its etag.
135
+ */
136
+ export declare const calendarEventDetailOperationsGetCalendarEvent: <ThrowOnError extends boolean = false>(options: Options<CalendarEventDetailOperationsGetCalendarEventData, ThrowOnError>) => RequestResult<CalendarEventDetailOperationsGetCalendarEventResponses, CalendarEventDetailOperationsGetCalendarEventErrors, ThrowOnError>;
137
+ /**
138
+ * Update an event. `scope` says what the caller meant by editing one
139
+ * drawing of a series: `All` rewrites the master, `This` writes a
140
+ * RECURRENCE-ID override for the named occurrence, and `Following` splits
141
+ * the series — the master's rule is truncated and a second resource carries
142
+ * the remainder under a UID of its own.
143
+ *
144
+ * `recurrenceId` is required for `This` and `Following` and is refused with
145
+ * 400 otherwise, along with a scope other than `All` on an event that does
146
+ * not recur, and a `recurrenceId` naming no occurrence of the series.
147
+ *
148
+ * `If-Match` makes the write conditional on the etag the caller read. A
149
+ * mismatch is 412: somebody replaced the resource in between, and applying
150
+ * this patch would discard their change without either of them seeing it.
151
+ */
152
+ export declare const calendarEventDetailOperationsUpdateCalendarEvent: <ThrowOnError extends boolean = false>(options: Options<CalendarEventDetailOperationsUpdateCalendarEventData, ThrowOnError>) => RequestResult<CalendarEventDetailOperationsUpdateCalendarEventResponses, CalendarEventDetailOperationsUpdateCalendarEventErrors, ThrowOnError>;
153
+ /**
154
+ * Busy spans over a window, merged across every calendar the caller holds. Backs the clash check beside a mail invitation and the free-stretch maths in the day strip, neither of which should have to fetch every event and merge them itself. Refused with 400 on the same window rules as the event listing.
155
+ */
156
+ export declare const calendarFreeBusyOperationsListCalendarFreeBusy: <ThrowOnError extends boolean = false>(options: Options<CalendarFreeBusyOperationsListCalendarFreeBusyData, ThrowOnError>) => RequestResult<CalendarFreeBusyOperationsListCalendarFreeBusyResponses, CalendarFreeBusyOperationsListCalendarFreeBusyErrors, ThrowOnError>;
157
+ /**
158
+ * List the caller's suggestions in one state, newest first. `Pending` is the set that is waiting on a person and the one a client normally asks for.
159
+ */
160
+ export declare const calendarSuggestionOperationsListCalendarSuggestions: <ThrowOnError extends boolean = false>(options: Options<CalendarSuggestionOperationsListCalendarSuggestionsData, ThrowOnError>) => RequestResult<CalendarSuggestionOperationsListCalendarSuggestionsResponses, CalendarSuggestionOperationsListCalendarSuggestionsErrors, ThrowOnError>;
161
+ /**
162
+ * Add the suggested event to a calendar. One transaction: a VCALENDAR is
163
+ * built from the invitation's own bytes, keeping its UID and SEQUENCE and
164
+ * marking the user `ATTENDEE;PARTSTAT=ACCEPTED`, and written through the
165
+ * same service function every other calendar write goes through — so a web
166
+ * edit and a native edit of that event cannot diverge. Accepting a `Cancel`
167
+ * suggestion writes `STATUS:CANCELLED` on the resource the same way.
168
+ *
169
+ * `answer: Tentative` writes the same resource with `PARTSTAT=TENTATIVE`
170
+ * and moves the suggestion to `Tentative` instead of `Accepted`.
171
+ *
172
+ * No reply is sent to the organizer. This endpoint sends no mail at all,
173
+ * and the card says so.
174
+ *
175
+ * Idempotent: accepting an already-accepted suggestion rewrites the same
176
+ * resource and returns the same suggestion, because both the resource id
177
+ * and the suggestion id are derived rather than minted.
178
+ *
179
+ * 400 when the suggestion is not one that can be accepted — already
180
+ * answered otherwise, dismissed or superseded — when a `Cancel` suggestion
181
+ * is answered `Tentative`, or when its iCalendar will not parse.
182
+ */
183
+ export declare const calendarSuggestionActionOperationsAcceptCalendarSuggestion: <ThrowOnError extends boolean = false>(options: Options<CalendarSuggestionActionOperationsAcceptCalendarSuggestionData, ThrowOnError>) => RequestResult<CalendarSuggestionActionOperationsAcceptCalendarSuggestionResponses, CalendarSuggestionActionOperationsAcceptCalendarSuggestionErrors, ThrowOnError>;
184
+ /**
185
+ * Say no. Writes no calendar object and sends no reply to the organizer. Idempotent; 400 when the suggestion was already accepted, since a resource exists and declining would not remove it.
186
+ */
187
+ export declare const calendarSuggestionActionOperationsDeclineCalendarSuggestion: <ThrowOnError extends boolean = false>(options: Options<CalendarSuggestionActionOperationsDeclineCalendarSuggestionData, ThrowOnError>) => RequestResult<CalendarSuggestionActionOperationsDeclineCalendarSuggestionResponses, CalendarSuggestionActionOperationsDeclineCalendarSuggestionErrors, ThrowOnError>;
188
+ /**
189
+ * Wave the card away. Writes no calendar object. With `muteSender`, also writes a standing `Filter` rule on the message's sender so their invitations stop being offered. Idempotent; 400 when the suggestion was already accepted.
190
+ */
191
+ export declare const calendarSuggestionActionOperationsDismissCalendarSuggestion: <ThrowOnError extends boolean = false>(options: Options<CalendarSuggestionActionOperationsDismissCalendarSuggestionData, ThrowOnError>) => RequestResult<CalendarSuggestionActionOperationsDismissCalendarSuggestionResponses, CalendarSuggestionActionOperationsDismissCalendarSuggestionErrors, ThrowOnError>;
192
+ /**
193
+ * Take an answer back. An accepted, tentative, declined or dismissed
194
+ * suggestion returns to `Pending`, so the card asks again. One
195
+ * transaction: the suggestion is settled `Pending` with
196
+ * `acceptedCalendarObjectId: ""`, and the calendar object an accept or a
197
+ * maybe wrote is removed with its occurrences and every remainder a
198
+ * this-and-following edit split off it in that calendar, unless another
199
+ * suggestion is still answered into that object; then the object stays with
200
+ * that answer. A sender rule written by
201
+ * `dismiss{muteSender}` stays; it is a rule of its own, edited where rules
202
+ * are.
203
+ *
204
+ * No mail is sent. Idempotent: a `Pending` suggestion is returned as it is.
205
+ *
206
+ * 400 when the suggestion is `Superseded`, which a later revision retired,
207
+ * a `Cancel`, whose answer rewrote an event it cannot restore, or its
208
+ * `answerOvertakenBy` is `Cancellation`, because a cancellation is terminal.
209
+ */
210
+ export declare const calendarSuggestionActionOperationsReopenCalendarSuggestion: <ThrowOnError extends boolean = false>(options: Options<CalendarSuggestionActionOperationsReopenCalendarSuggestionData, ThrowOnError>) => RequestResult<CalendarSuggestionActionOperationsReopenCalendarSuggestionResponses, CalendarSuggestionActionOperationsReopenCalendarSuggestionErrors, ThrowOnError>;
211
+ /**
212
+ * Tasks due in a window, across every task collection the caller holds, in due order. Refused with 400 on the same window rules as the event listing.
213
+ */
214
+ export declare const calendarTaskOperationsListCalendarTasks: <ThrowOnError extends boolean = false>(options: Options<CalendarTaskOperationsListCalendarTasksData, ThrowOnError>) => RequestResult<CalendarTaskOperationsListCalendarTasksResponses, CalendarTaskOperationsListCalendarTasksErrors, ThrowOnError>;
215
+ /**
216
+ * Create a task. Refused with 400 `not_a_task_calendar` when `calendarId` names an event collection.
217
+ */
218
+ export declare const calendarTaskOperationsCreateCalendarTask: <ThrowOnError extends boolean = false>(options: Options<CalendarTaskOperationsCreateCalendarTaskData, ThrowOnError>) => RequestResult<CalendarTaskOperationsCreateCalendarTaskResponses, CalendarTaskOperationsCreateCalendarTaskErrors, ThrowOnError>;
219
+ /**
220
+ * Delete a task. Same `If-Match` precondition as the update.
221
+ */
222
+ export declare const calendarTaskDetailOperationsDeleteCalendarTask: <ThrowOnError extends boolean = false>(options: Options<CalendarTaskDetailOperationsDeleteCalendarTaskData, ThrowOnError>) => RequestResult<CalendarTaskDetailOperationsDeleteCalendarTaskResponses, CalendarTaskDetailOperationsDeleteCalendarTaskErrors, ThrowOnError>;
223
+ export declare const calendarTaskDetailOperationsGetCalendarTask: <ThrowOnError extends boolean = false>(options: Options<CalendarTaskDetailOperationsGetCalendarTaskData, ThrowOnError>) => RequestResult<CalendarTaskDetailOperationsGetCalendarTaskResponses, CalendarTaskDetailOperationsGetCalendarTaskErrors, ThrowOnError>;
224
+ /**
225
+ * Update a task. `If-Match` makes the write conditional on the etag the caller read; a mismatch is 412.
226
+ */
227
+ export declare const calendarTaskDetailOperationsUpdateCalendarTask: <ThrowOnError extends boolean = false>(options: Options<CalendarTaskDetailOperationsUpdateCalendarTaskData, ThrowOnError>) => RequestResult<CalendarTaskDetailOperationsUpdateCalendarTaskResponses, CalendarTaskDetailOperationsUpdateCalendarTaskErrors, ThrowOnError>;
228
+ /**
229
+ * List the caller's calendar collections. Provisions the account config's default collection when it has none, so a first read never comes back empty and no client has to know how a calendar gets made.
230
+ */
231
+ export declare const calendarOperationsListCalendars: <ThrowOnError extends boolean = false>(options?: Options<CalendarOperationsListCalendarsData, ThrowOnError>) => RequestResult<CalendarOperationsListCalendarsResponses, CalendarOperationsListCalendarsErrors, ThrowOnError>;
232
+ /**
233
+ * Create a calendar collection. Refused with 400 when `urlSegment` is empty or already taken in this account config — the segment is the collection's identity, so a second create under the same one would otherwise silently return the collection that already exists. With `subscriptionUrl` the feed is fetched first and a fetch that fails is refused with 400 `subscription_unreachable`, naming why and never the URL.
234
+ */
235
+ export declare const calendarOperationsCreateCalendar: <ThrowOnError extends boolean = false>(options: Options<CalendarOperationsCreateCalendarData, ThrowOnError>) => RequestResult<CalendarOperationsCreateCalendarResponses, CalendarOperationsCreateCalendarErrors, ThrowOnError>;
236
+ /**
237
+ * Delete a calendar collection and every event in it. Refused with 400 for the account's default collection: it is the one place an accepted invitation or a first event can land, and an account with no calendar has nowhere to put an event.
238
+ */
239
+ export declare const calendarDetailOperationsDeleteCalendar: <ThrowOnError extends boolean = false>(options: Options<CalendarDetailOperationsDeleteCalendarData, ThrowOnError>) => RequestResult<CalendarDetailOperationsDeleteCalendarResponses, CalendarDetailOperationsDeleteCalendarErrors, ThrowOnError>;
240
+ export declare const calendarDetailOperationsGetCalendar: <ThrowOnError extends boolean = false>(options: Options<CalendarDetailOperationsGetCalendarData, ThrowOnError>) => RequestResult<CalendarDetailOperationsGetCalendarResponses, CalendarDetailOperationsGetCalendarErrors, ThrowOnError>;
241
+ /**
242
+ * Update a calendar collection. `subscriptionEnabled` is refused with 400 `not_subscribed` on a collection that is not `Subscribed`. Turning it off stops the refresh and removes nothing.
243
+ */
244
+ export declare const calendarDetailOperationsUpdateCalendar: <ThrowOnError extends boolean = false>(options: Options<CalendarDetailOperationsUpdateCalendarData, ThrowOnError>) => RequestResult<CalendarDetailOperationsUpdateCalendarResponses, CalendarDetailOperationsUpdateCalendarErrors, ThrowOnError>;
245
+ /**
246
+ * Revoke the calendar's feed address. Every subscribed client starts getting 404 on its next poll. Answered 404 when the calendar has no feed, so a revoke is never reported as having taken something away that was not there.
247
+ */
248
+ export declare const calendarDetailOperationsRevokeCalendarFeed: <ThrowOnError extends boolean = false>(options: Options<CalendarDetailOperationsRevokeCalendarFeedData, ThrowOnError>) => RequestResult<CalendarDetailOperationsRevokeCalendarFeedResponses, CalendarDetailOperationsRevokeCalendarFeedErrors, ThrowOnError>;
249
+ /**
250
+ * Read whether this calendar has a feed address. Absent (404) until one is
251
+ * minted. The token is not here: it is stored as a hash, so the only
252
+ * moment it exists in the clear is the answer to the write below.
253
+ */
254
+ export declare const calendarDetailOperationsGetCalendarFeed: <ThrowOnError extends boolean = false>(options: Options<CalendarDetailOperationsGetCalendarFeedData, ThrowOnError>) => RequestResult<CalendarDetailOperationsGetCalendarFeedResponses, CalendarDetailOperationsGetCalendarFeedErrors, ThrowOnError>;
255
+ /**
256
+ * Mint the calendar's feed address, or replace the one it has, and answer
257
+ * with the token in the clear. Idempotent in address rather than in value:
258
+ * one calendar holds one token, so a second call rotates — the previous
259
+ * URL stops resolving, which is how a subscription handed to the wrong
260
+ * person is taken back.
261
+ *
262
+ * This is the only response that ever carries the plaintext. A client that
263
+ * does not keep it rotates again.
264
+ */
265
+ export declare const calendarDetailOperationsPutCalendarFeed: <ThrowOnError extends boolean = false>(options: Options<CalendarDetailOperationsPutCalendarFeedData, ThrowOnError>) => RequestResult<CalendarDetailOperationsPutCalendarFeedResponses, CalendarDetailOperationsPutCalendarFeedErrors, ThrowOnError>;
266
+ /**
267
+ * Get the current user's configuration including accounts and addresses
268
+ */
269
+ export declare const configOperationsGetConfig: <ThrowOnError extends boolean = false>(options?: Options<ConfigOperationsGetConfigData, ThrowOnError>) => RequestResult<ConfigOperationsGetConfigResponses, ConfigOperationsGetConfigErrors, ThrowOnError>;
270
+ /**
271
+ * Export every configured setting for the caller as one versioned JSON document. Contains no credentials: no IMAP/SMTP password and no OAuth token, encrypted or otherwise, and the credential fields are structurally absent rather than blank. The document's own shape is not defined here - it is defined by the published JSON Schema for its `schemaVersion` (build/config-schema/reader-config.v<N>.schema.json), so a file keeps validating independent of this API's models.
272
+ */
273
+ export declare const configOperationsExportConfig: <ThrowOnError extends boolean = false>(options?: Options<ConfigOperationsExportConfigData, ThrowOnError>) => RequestResult<ConfigOperationsExportConfigResponses, ConfigOperationsExportConfigErrors, ThrowOnError>;
274
+ /**
275
+ * Validate, or validate and apply, a config document. `mode: validate` (the default) writes nothing and returns the same report an apply would. `onExisting: abort` (the default) refuses with 409 when this configuration already holds accounts, labels, filters or address flags. Nothing is written until the whole document has validated; a write failure after that aborts the remainder and the report names exactly what landed. Imported accounts arrive inactive with `connectionState: credentials_missing` (or `reauth_required` for OAuth) - the credentials the file deliberately omits are re-entered per account afterwards.
276
+ */
277
+ export declare const configOperationsImportConfig: <ThrowOnError extends boolean = false>(options: Options<ConfigOperationsImportConfigData, ThrowOnError>) => RequestResult<ConfigOperationsImportConfigResponses, ConfigOperationsImportConfigErrors, ThrowOnError>;
278
+ /**
279
+ * Serve a calendar as iCalendar text to whoever holds its secret address
280
+ * (issue #1067).
281
+ *
282
+ * Outside the session-auth surface on purpose: Apple Calendar, Google
283
+ * Calendar, Outlook and Thunderbird subscribe to a URL and never sign in,
284
+ * so the token in the path is the credential and the only one. It is
285
+ * compared against the stored hash rather than looked up in the clear, and
286
+ * an unknown, revoked or malformed token is the same 404 with the same body
287
+ * — a subscriber learns whether it still has access, and nothing else.
288
+ */
289
+ export declare const calendarFeedOperationsGetCalendarFeedIcal: <ThrowOnError extends boolean = false>(options: Options<CalendarFeedOperationsGetCalendarFeedIcalData, ThrowOnError>) => RequestResult<CalendarFeedOperationsGetCalendarFeedIcalResponses, CalendarFeedOperationsGetCalendarFeedIcalErrors, ThrowOnError>;
290
+ export declare const threadOperationsListThreads: <ThrowOnError extends boolean = false>(options: Options<ThreadOperationsListThreadsData, ThrowOnError>) => RequestResult<ThreadOperationsListThreadsResponses, ThreadOperationsListThreadsErrors, ThrowOnError>;
291
+ export declare const threadOperationsSearchThreads: <ThrowOnError extends boolean = false>(options: Options<ThreadOperationsSearchThreadsData, ThrowOnError>) => RequestResult<ThreadOperationsSearchThreadsResponses, ThreadOperationsSearchThreadsErrors, ThrowOnError>;
292
+ /**
293
+ * Request full erasure of the current user's account and all associated data
294
+ */
295
+ export declare const meOperationsDeleteMe: <ThrowOnError extends boolean = false>(options: Options<MeOperationsDeleteMeData, ThrowOnError>) => RequestResult<MeOperationsDeleteMeResponses, MeOperationsDeleteMeErrors, ThrowOnError>;
296
+ /**
297
+ * Request an export of all account data as a ZIP archive of .eml files. Returns immediately with an exportId; check GET /me/export/{exportId} for status and downloadUrl.
298
+ */
299
+ export declare const meOperationsCreateExport: <ThrowOnError extends boolean = false>(options?: Options<MeOperationsCreateExportData, ThrowOnError>) => RequestResult<MeOperationsCreateExportResponses, MeOperationsCreateExportErrors, ThrowOnError>;
300
+ /**
301
+ * Get the status of a previously requested data export. When state is Ready, downloadUrl holds a 30-day presigned S3 URL.
302
+ */
303
+ export declare const meOperationsGetExport: <ThrowOnError extends boolean = false>(options: Options<MeOperationsGetExportData, ThrowOnError>) => RequestResult<MeOperationsGetExportResponses, MeOperationsGetExportErrors, ThrowOnError>;
304
+ /**
305
+ * List every message the sync path could not read, for the current user across all of their mail accounts (issue #72). Backs the quarantine section in settings. Unpaginated: the list is small by design, and an entry is a defect waiting to be reported rather than a page of mail.
306
+ */
307
+ export declare const meOperationsListQuarantine: <ThrowOnError extends boolean = false>(options?: Options<MeOperationsListQuarantineData, ThrowOnError>) => RequestResult<MeOperationsListQuarantineResponses, MeOperationsListQuarantineErrors, ThrowOnError>;
308
+ /**
309
+ * List wellknown senders the user has not yet promoted to VIP. Ranked by `replyCount + inboundCount` desc with `lastInboundAt` desc as the tie-breaker. Capped at 10.
310
+ */
311
+ export declare const meOperationsListVipSuggestions: <ThrowOnError extends boolean = false>(options?: Options<MeOperationsListVipSuggestionsData, ThrowOnError>) => RequestResult<MeOperationsListVipSuggestionsResponses, MeOperationsListVipSuggestionsErrors, ThrowOnError>;
312
+ /**
313
+ * Copy messages to a destination mailbox
314
+ */
315
+ export declare const messageBulkOperationsCopyMessages: <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsCopyMessagesData, ThrowOnError>) => RequestResult<MessageBulkOperationsCopyMessagesResponses, MessageBulkOperationsCopyMessagesErrors, ThrowOnError>;
316
+ /**
317
+ * Delete messages (move to Trash or permanent delete)
318
+ */
319
+ export declare const messageBulkOperationsDeleteMessages: <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsDeleteMessagesData, ThrowOnError>) => RequestResult<MessageBulkOperationsDeleteMessagesResponses, MessageBulkOperationsDeleteMessagesErrors, ThrowOnError>;
320
+ /**
321
+ * Update flags on multiple messages
322
+ */
323
+ export declare const messageBulkOperationsUpdateFlags: <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsUpdateFlagsData, ThrowOnError>) => RequestResult<MessageBulkOperationsUpdateFlagsResponses, MessageBulkOperationsUpdateFlagsErrors, ThrowOnError>;
324
+ /**
325
+ * Apply or remove a label on multiple messages — the manual "just these" scope (RFC 034 recap, issue #26). `appliedByFilterId` stays absent on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies.
326
+ */
327
+ export declare const messageBulkOperationsUpdateMessageLabels: <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsUpdateMessageLabelsData, ThrowOnError>) => RequestResult<MessageBulkOperationsUpdateMessageLabelsResponses, MessageBulkOperationsUpdateMessageLabelsErrors, ThrowOnError>;
328
+ export declare const messageBulkOperationsMoveMessages: <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsMoveMessagesData, ThrowOnError>) => RequestResult<MessageBulkOperationsMoveMessagesResponses, MessageBulkOperationsMoveMessagesErrors, ThrowOnError>;
329
+ /**
330
+ * Undo a spam report: clear the sender's `blocked` flag (never promotes to trusted/wellknown) and move each message back to `Message.originalMailboxId`. Idempotent under a repeated call. Each message is processed independently and concurrently, so the request's total wait is bounded by one message's settle timeout rather than accumulating across the batch.
331
+ */
332
+ export declare const messageBulkOperationsNotSpam: <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsNotSpamData, ThrowOnError>) => RequestResult<MessageBulkOperationsNotSpamResponses, MessageBulkOperationsNotSpamErrors, ThrowOnError>;
333
+ /**
334
+ * Report messages as spam: block the sender (Address.flags.blocked) and move each message to the account's Junk folder. Skips the block (but still moves the message) when the sender is the account's own address. One call replaces composing the old separate `Block` and `Mark spam` actions — a single user intent, a single failure story. The sender block is written first and does not wait on the move; a failed move never rolls it back. Idempotent under a repeated call.
335
+ */
336
+ export declare const messageBulkOperationsReportSpam: <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsReportSpamData, ThrowOnError>) => RequestResult<MessageBulkOperationsReportSpamResponses, MessageBulkOperationsReportSpamErrors, ThrowOnError>;
337
+ export declare const messageOperationsDescribeMessage: <ThrowOnError extends boolean = false>(options: Options<MessageOperationsDescribeMessageData, ThrowOnError>) => RequestResult<MessageOperationsDescribeMessageResponses, MessageOperationsDescribeMessageErrors, ThrowOnError>;
338
+ /**
339
+ * Every suggestion read out of one message, in whatever state each has reached — a superseded revision included, so the card can say which revision replaced it.
340
+ */
341
+ export declare const messageCalendarSuggestionOperationsListMessageCalendarSuggestions: <ThrowOnError extends boolean = false>(options: Options<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData, ThrowOnError>) => RequestResult<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsResponses, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsErrors, ThrowOnError>;
342
+ export declare const messageOperationsUpdateMessageFlags: <ThrowOnError extends boolean = false>(options: Options<MessageOperationsUpdateMessageFlagsData, ThrowOnError>) => RequestResult<MessageOperationsUpdateMessageFlagsResponses, MessageOperationsUpdateMessageFlagsErrors, ThrowOnError>;
343
+ /**
344
+ * Get the raw RFC822/MIME source of a message (headers and body) for inspection.
345
+ */
346
+ export declare const messageOperationsGetRawMessage: <ThrowOnError extends boolean = false>(options: Options<MessageOperationsGetRawMessageData, ThrowOnError>) => RequestResult<MessageOperationsGetRawMessageResponses, MessageOperationsGetRawMessageErrors, ThrowOnError>;
347
+ /**
348
+ * List outbox messages for the current account
349
+ */
350
+ export declare const outboxOperationsListOutboxMessages: <ThrowOnError extends boolean = false>(options?: Options<OutboxOperationsListOutboxMessagesData, ThrowOnError>) => RequestResult<OutboxOperationsListOutboxMessagesResponses, OutboxOperationsListOutboxMessagesErrors, ThrowOnError>;
351
+ /**
352
+ * 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`.
353
+ */
354
+ export declare const outboxOperationsCreateOutboxMessage: <ThrowOnError extends boolean = false>(options: Options<OutboxOperationsCreateOutboxMessageData, ThrowOnError>) => RequestResult<OutboxOperationsCreateOutboxMessageResponses, OutboxOperationsCreateOutboxMessageErrors, ThrowOnError>;
355
+ /**
356
+ * Delete a draft or failed outbox message
357
+ */
358
+ export declare const outboxDetailOperationsDeleteOutboxMessage: <ThrowOnError extends boolean = false>(options: Options<OutboxDetailOperationsDeleteOutboxMessageData, ThrowOnError>) => RequestResult<OutboxDetailOperationsDeleteOutboxMessageResponses, OutboxDetailOperationsDeleteOutboxMessageErrors, ThrowOnError>;
359
+ /**
360
+ * Get an outbox message by ID
361
+ */
362
+ export declare const outboxDetailOperationsGetOutboxMessage: <ThrowOnError extends boolean = false>(options: Options<OutboxDetailOperationsGetOutboxMessageData, ThrowOnError>) => RequestResult<OutboxDetailOperationsGetOutboxMessageResponses, OutboxDetailOperationsGetOutboxMessageErrors, ThrowOnError>;
363
+ /**
364
+ * Update a draft outbox message
365
+ */
366
+ export declare const outboxDetailOperationsUpdateOutboxMessage: <ThrowOnError extends boolean = false>(options: Options<OutboxDetailOperationsUpdateOutboxMessageData, ThrowOnError>) => RequestResult<OutboxDetailOperationsUpdateOutboxMessageResponses, OutboxDetailOperationsUpdateOutboxMessageErrors, ThrowOnError>;
367
+ /**
368
+ * Reserve room on a draft for a file, and get somewhere to put it
369
+ */
370
+ export declare const outboxDetailOperationsMintOutboxAttachment: <ThrowOnError extends boolean = false>(options: Options<OutboxDetailOperationsMintOutboxAttachmentData, ThrowOnError>) => RequestResult<OutboxDetailOperationsMintOutboxAttachmentResponses, OutboxDetailOperationsMintOutboxAttachmentErrors, ThrowOnError>;
371
+ /**
372
+ * Confirm an uploaded file against the object storage now holds
373
+ */
374
+ export declare const outboxAttachmentOperationsCompleteOutboxAttachment: <ThrowOnError extends boolean = false>(options: Options<OutboxAttachmentOperationsCompleteOutboxAttachmentData, ThrowOnError>) => RequestResult<OutboxAttachmentOperationsCompleteOutboxAttachmentResponses, OutboxAttachmentOperationsCompleteOutboxAttachmentErrors, ThrowOnError>;
375
+ /**
376
+ * 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.
377
+ */
378
+ export declare const outboxDetailOperationsSendOutboxMessage: <ThrowOnError extends boolean = false>(options: Options<OutboxDetailOperationsSendOutboxMessageData, ThrowOnError>) => RequestResult<OutboxDetailOperationsSendOutboxMessageResponses, OutboxDetailOperationsSendOutboxMessageErrors, ThrowOnError>;
379
+ /**
380
+ * Read the caller's settings.
381
+ */
382
+ export declare const userSettingsOperationsGetUserSettings: <ThrowOnError extends boolean = false>(options?: Options<UserSettingsOperationsGetUserSettingsData, ThrowOnError>) => RequestResult<UserSettingsOperationsGetUserSettingsResponses, UserSettingsOperationsGetUserSettingsErrors, ThrowOnError>;
383
+ /**
384
+ * Change the caller's settings. Answers with every setting as it now stands.
385
+ */
386
+ export declare const userSettingsOperationsUpdateUserSettings: <ThrowOnError extends boolean = false>(options: Options<UserSettingsOperationsUpdateUserSettingsData, ThrowOnError>) => RequestResult<UserSettingsOperationsUpdateUserSettingsResponses, UserSettingsOperationsUpdateUserSettingsErrors, ThrowOnError>;
387
+ /**
388
+ * Clear the chosen default invitation sender. Invitations then go out from the account an event is on. Answers with every setting as it now stands.
389
+ */
390
+ export declare const userSettingsOperationsClearDefaultInvitationSender: <ThrowOnError extends boolean = false>(options?: Options<UserSettingsOperationsClearDefaultInvitationSenderData, ThrowOnError>) => RequestResult<UserSettingsOperationsClearDefaultInvitationSenderResponses, UserSettingsOperationsClearDefaultInvitationSenderErrors, ThrowOnError>;
391
+ /**
392
+ * Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. With `refresh=true`, records a check request on the control volume for the updater to pick up and answers with the stored state as it stands; the caller watches `check.lastCheckedAt` for the updater's answer. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
393
+ */
394
+ export declare const systemOperationsGetSystemUpdate: <ThrowOnError extends boolean = false>(options?: Options<SystemOperationsGetSystemUpdateData, ThrowOnError>) => RequestResult<SystemOperationsGetSystemUpdateResponses, SystemOperationsGetSystemUpdateErrors, ThrowOnError>;
395
+ /**
396
+ * Request installation of a specific release. Writes the request to the control seam and returns 202 with the same resource, including a runId. 409 when a run is in flight, 422 when the target is not the manifest's version. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
397
+ */
398
+ export declare const systemOperationsApplySystemUpdate: <ThrowOnError extends boolean = false>(options: Options<SystemOperationsApplySystemUpdateData, ThrowOnError>) => RequestResult<SystemOperationsApplySystemUpdateResponses, SystemOperationsApplySystemUpdateErrors, ThrowOnError>;
399
+ /**
400
+ * List threads across all non-muted accounts of the caller, ordered by sentDate desc (search mode ranks sender matches first, see below). Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
401
+ *
402
+ * INBOX scope: results are filtered to each account's top-level INBOX, matched by exact path `fullPath === "INBOX"` (RFC 6154 defines no Inbox special-use). By design this excludes namespaced sub-paths like `INBOX/Receipts` and non-English server primaries — the unified inbox is each account's primary INBOX, not its sub-folders. Soft-deleted rows are also excluded.
403
+ *
404
+ * Mute exclusion: muted accounts and muted mailboxes are excluded. The inbox/mute filter set is rebuilt per page from live state, so muting/unmuting a mailbox mid-pagination takes effect on the next page (never retroactively).
405
+ *
406
+ * Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent. In the default (INBOX) mode the INBOX/deleted filter is applied after the index read with a bounded read window per request, so a page may return FEWER than `limit` rows while still carrying a `continuationToken` — treat the presence of the token (not a full page) as the "more results" signal. No rows are skipped or duplicated across pages.
407
+ *
408
+ * Starred mode (`starred=true`): served by the `byStarred` LSI4 instead. A star is a marker on the mail rather than on its placement, so the INBOX scope does not apply and a starred thread in Archive is still returned. Excluded are muted and soft-deleted rows as usual, plus the folders a star never surfaces from: Junk, Trash, and Gmail's All Mail (a second copy of everything, whose rows would otherwise double every starred message). All filtering happens in the query, so a page is short only when the results are exhausted. Rows are per mailbox: the same mail filed in two folders is two rows sharing a `threadId`, and a client rendering one row per conversation collapses by `threadId` across the pages it has accumulated.
409
+ *
410
+ * Search mode (`query=<text>`): the listing widens past the INBOX scope to every non-muted mailbox of every non-muted account, and returns only rows whose subject, From address or body text matches the text. This is the unscoped search of the daily brief: one query reaching every folder of every account. Whitespace splits the text into terms and every term must match (AND), each against subject OR From OR body. Matching is case-insensitive substring, not tokenized full-text, so it does not stem. Rows come in two tiers: a row whose From matches any term ranks above a row that only mentions the terms in its subject or body text, and each tier runs in date order.
411
+ *
412
+ * Body text is the stored preview the row carries — the first prose of the message with quoted replies removed, which is the same text the row renders under its subject. A term further into a long message is not reached; a term the reader can see on the row is.
413
+ *
414
+ * Search scope: every non-muted mailbox EXCEPT Trash. The scope is defined by what it excludes, so anything a server offers that is not on that list is searched — Spam, Drafts and Gmail's virtual folders (All Mail, Starred, Important) included. Spam is deliberately in scope: the point of an unscoped search is that it reaches the folders the user did not think to look in. Combining `query` with `starred=true` searches the starred scope instead.
415
+ *
416
+ * Duplicates: a virtual folder holds a second copy of mail that also lives in a real folder, so a backend keying a row by its mailbox returns the same message several times — a starred, Important Gmail inbox message four times. The extras are dropped from the response by message identity, keeping the copy in a real folder, so one message is one row. This is done after the read rather than by barring those folders from the scope, because a message whose only stored row sits in one of them would otherwise become unfindable. De-duplication is per page: a duplicate split across a page boundary survives, the same caveat that applies to collapsing by `threadId`. A page may therefore return fewer rows than `limit` while still carrying a `continuationToken`.
417
+ *
418
+ * Search mode and pagination: `limit` is a page size over MATCHES, capped server-side at 500. A page may be shorter than `limit` for two reasons — the matches ran out, or duplicates were dropped from it — so treat the presence of a `continuationToken` as the "more results" signal rather than a full page. There is no total match count; page until the token is absent.
419
+ *
420
+ * What a row is in search mode: one per message, not one per mailbox. This differs from the starred mode above, where the same mail filed in two folders is two rows sharing a `threadId`. Collapsing by `threadId` is still a client's job if it renders one row per CONVERSATION, since distinct messages in one thread remain distinct rows here.
421
+ *
422
+ * Callers that omit `query` are unaffected: the INBOX (and starred) listings behave exactly as before.
423
+ *
424
+ * Row filters: `category`, `unread` and `attachments` are columns on the ThreadMessage row, so each is a predicate inside the query rather than a pass over what a page returned. They compose with every mode above — INBOX, starred and search alike — and a page therefore comes back full of matches however rare the criterion is. This is what the cross-account collections need: filtering the pages a client happens to have loaded shows an empty list whenever the matching mail sits below the newest page (#308).
425
+ *
426
+ * Field filters: `from` and `subject` each match one field, which the single `query` cannot express — it matches both at once. They compose with `query` and with each other as further AND terms.
427
+ *
428
+ * Account scope: `accountId` narrows every mode to the mailboxes of one account. The scope is built from the account's own mailboxes, so the listing, the count and the search all answer over the same set. Without it the listing is the cross-account aggregate.
429
+ *
430
+ * Folder scope: `mailboxId` narrows the same scope to one folder, and composes with `accountId` as a further AND — a folder of another account leaves the scope empty and matches nothing. It is how a caller asks what one folder holds of a cross-account search, counted in the same conversations the unscoped listing renders. A folder the scope already excludes — Trash, a muted one, one of a muted account — stays excluded.
431
+ *
432
+ * Muted senders: `muted=false` excludes rows whose From address is muted, `muted=true` returns only those, and omitting it filters nothing. Muting is a property of the address rather than a column on the row, so this is the one predicate that reaches outside the ThreadMessage table; it applies to the listing and the `count` alike, which is what lets a caller that hides muted mail state a number that is the size of what it renders.
433
+ *
434
+ * Counting: `count=true` answers how many CONVERSATIONS match, over the whole scope and independent of `limit`. `results=false` omits the rows, which is how a header total is read without also paying for a page of mail. Conversations rather than rows because that is what this listing renders: a row is per mailbox, so the same mail filed in two folders is two rows sharing a `threadId`, and clients collapse by it. Counting rows would put a third number beside a list that shows a second one.
435
+ */
436
+ export declare const unifiedThreadOperationsListAllThreads: <ThrowOnError extends boolean = false>(options?: Options<UnifiedThreadOperationsListAllThreadsData, ThrowOnError>) => RequestResult<UnifiedThreadOperationsListAllThreadsResponses, UnifiedThreadOperationsListAllThreadsErrors, ThrowOnError>;
437
+ /**
438
+ * Get all messages in a thread, across every mailbox of the account — a conversation spans INBOX, Sent, Archive and any folder the user filed a message in, so it is never scoped to one mailbox. Soft-deleted messages (including anything moved to Trash) are excluded.
439
+ *
440
+ * One entry per piece of mail. A message synced from several folders is stored once, and where a second row exists for the same Message-ID — a copy taken with `copyMessages`, which gives its copy a fresh message id — the oldest is returned and the rest are dropped.
441
+ *
442
+ * Ordering: oldest first, by the date the message was sent, with `threadMessageId` breaking ties. A conversation is read in the order it happened, so a reply always follows the message it answers. Pass `order=desc` for the reverse.
443
+ */
444
+ export declare const threadDetailOperationsListThreadMessages: <ThrowOnError extends boolean = false>(options: Options<ThreadDetailOperationsListThreadMessagesData, ThrowOnError>) => RequestResult<ThreadDetailOperationsListThreadMessagesResponses, ThreadDetailOperationsListThreadMessagesErrors, ThrowOnError>;