@remit/api-http-client 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@tanstack/react-query.gen.ts +36 -2
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk.gen.ts +27 -1
- package/types.gen.ts +112 -0
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { type DefaultError, queryOptions, type UseMutationOptions } from '@tanstack/react-query';
|
|
4
4
|
|
|
5
5
|
import { client } from '../client.gen.js';
|
|
6
|
-
import { accountDetailOperationsDeleteAccount, accountDetailOperationsUpdateAccount, accountOperationsCreateAccount, accountOperationsTestConnection, addressDetailOperationsUpdateAddress, addressOperationsSearchAddresses, configOperationsGetConfig, filterDetailOperationsDeleteFilter, filterDetailOperationsGetFilter, filterDetailOperationsUpdateFilter, filterOperationsCreateFilter, filterOperationsListFilters, folderRoleOperationsAppointFolderRole, labelDetailOperationsDeleteLabel, labelDetailOperationsGetLabel, labelDetailOperationsUpdateLabel, labelOperationsCreateLabel, labelOperationsListLabels, mailboxDetailOperationsDeleteMailbox, mailboxDetailOperationsGetMailbox, mailboxDetailOperationsRenameMailbox, mailboxOperationsCreateMailbox, mailboxOperationsListMailboxes, meOperationsCreateExport, meOperationsDeleteMe, meOperationsGetExport, meOperationsListQuarantine, meOperationsListVipSuggestions, messageBulkOperationsCopyMessages, messageBulkOperationsDeleteMessages, messageBulkOperationsMoveMessages, messageBulkOperationsUpdateFlags, messageBulkOperationsUpdateMessageLabels, messageOperationsDescribeMessage, messageOperationsGetRawMessage, messageOperationsUpdateMessageFlags, microsoftOAuthOperationsMicrosoftOAuthCallback, microsoftOAuthOperationsMicrosoftOAuthStart, type Options, organizeJobDetailOperationsGetOrganizeJob, organizeOperationsCreateOrganizeJob, organizeOperationsPreviewOrganize, outboxDetailOperationsDeleteOutboxMessage, outboxDetailOperationsGetOutboxMessage, outboxDetailOperationsSendOutboxMessage, outboxDetailOperationsUpdateOutboxMessage, outboxOperationsCreateOutboxMessage, outboxOperationsListOutboxMessages, semanticSearchOperationsSemanticSearch, syncOperationsGetSyncStatus, syncOperationsTriggerSync, systemOperationsApplySystemUpdate, systemOperationsGetSystemUpdate, threadDetailOperationsListThreadMessages, threadOperationsListThreads, threadOperationsSearchThreads, trashOperationsEmptyTrash, unifiedThreadOperationsListAllThreads } from '../sdk.gen.js';
|
|
7
|
-
import type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountResponse, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountResponse, AccountOperationsCreateAccountData, AccountOperationsCreateAccountResponse, AccountOperationsTestConnectionData, AccountOperationsTestConnectionResponse, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressResponse, AddressOperationsSearchAddressesData, AddressOperationsSearchAddressesResponse, ConfigOperationsGetConfigData, ConfigOperationsGetConfigResponse, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterResponse, FilterDetailOperationsGetFilterData, FilterDetailOperationsGetFilterResponse, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterResponse, FilterOperationsCreateFilterData, FilterOperationsCreateFilterResponse, FilterOperationsListFiltersData, FilterOperationsListFiltersResponse, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleResponse, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelResponse, LabelDetailOperationsGetLabelData, LabelDetailOperationsGetLabelResponse, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelResponse, LabelOperationsCreateLabelData, LabelOperationsCreateLabelResponse, LabelOperationsListLabelsData, LabelOperationsListLabelsResponse, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxResponse, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsGetMailboxResponse, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxResponse, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxResponse, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesResponse, MeOperationsCreateExportData, MeOperationsCreateExportResponse, MeOperationsDeleteMeData, MeOperationsDeleteMeError, MeOperationsDeleteMeResponse, MeOperationsGetExportData, MeOperationsGetExportResponse, MeOperationsListQuarantineData, MeOperationsListQuarantineResponse, MeOperationsListVipSuggestionsData, MeOperationsListVipSuggestionsResponse, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesResponse, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesResponse, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesResponse, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsResponse, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsResponse, MessageOperationsDescribeMessageData, MessageOperationsDescribeMessageResponse, MessageOperationsGetRawMessageData, MessageOperationsGetRawMessageResponse, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsResponse, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartResponse, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeJobDetailOperationsGetOrganizeJobResponse, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobResponse, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeResponse, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageResponse, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsGetOutboxMessageResponse, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesResponse, SemanticSearchOperationsSemanticSearchData, SemanticSearchOperationsSemanticSearchResponse, SyncOperationsGetSyncStatusData, SyncOperationsGetSyncStatusResponse, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncResponse, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateResponse, SystemOperationsGetSystemUpdateData, SystemOperationsGetSystemUpdateResponse, ThreadDetailOperationsListThreadMessagesData, ThreadDetailOperationsListThreadMessagesResponse, ThreadOperationsListThreadsData, ThreadOperationsListThreadsResponse, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsResponse, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashResponse, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsResponse } from '../types.gen.js';
|
|
6
|
+
import { accountDetailOperationsDeleteAccount, accountDetailOperationsUpdateAccount, accountOperationsCreateAccount, accountOperationsTestConnection, addressDetailOperationsUpdateAddress, addressOperationsSearchAddresses, configOperationsGetConfig, filterDetailOperationsDeleteFilter, filterDetailOperationsGetFilter, filterDetailOperationsUpdateFilter, filterOperationsCreateFilter, filterOperationsListFilters, folderRoleOperationsAppointFolderRole, labelDetailOperationsDeleteLabel, labelDetailOperationsGetLabel, labelDetailOperationsUpdateLabel, labelOperationsCreateLabel, labelOperationsListLabels, mailboxDetailOperationsDeleteMailbox, mailboxDetailOperationsGetMailbox, mailboxDetailOperationsRenameMailbox, mailboxOperationsCreateMailbox, mailboxOperationsListMailboxes, meOperationsCreateExport, meOperationsDeleteMe, meOperationsGetExport, meOperationsListQuarantine, meOperationsListVipSuggestions, messageBulkOperationsCopyMessages, messageBulkOperationsDeleteMessages, messageBulkOperationsMoveMessages, messageBulkOperationsNotSpam, messageBulkOperationsReportSpam, messageBulkOperationsUpdateFlags, messageBulkOperationsUpdateMessageLabels, messageOperationsDescribeMessage, messageOperationsGetRawMessage, messageOperationsUpdateMessageFlags, microsoftOAuthOperationsMicrosoftOAuthCallback, microsoftOAuthOperationsMicrosoftOAuthStart, type Options, organizeJobDetailOperationsGetOrganizeJob, organizeOperationsCreateOrganizeJob, organizeOperationsPreviewOrganize, outboxDetailOperationsDeleteOutboxMessage, outboxDetailOperationsGetOutboxMessage, outboxDetailOperationsSendOutboxMessage, outboxDetailOperationsUpdateOutboxMessage, outboxOperationsCreateOutboxMessage, outboxOperationsListOutboxMessages, semanticSearchOperationsSemanticSearch, syncOperationsGetSyncStatus, syncOperationsTriggerSync, systemOperationsApplySystemUpdate, systemOperationsGetSystemUpdate, threadDetailOperationsListThreadMessages, threadOperationsListThreads, threadOperationsSearchThreads, trashOperationsEmptyTrash, unifiedThreadOperationsListAllThreads } from '../sdk.gen.js';
|
|
7
|
+
import type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountResponse, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountResponse, AccountOperationsCreateAccountData, AccountOperationsCreateAccountResponse, AccountOperationsTestConnectionData, AccountOperationsTestConnectionResponse, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressResponse, AddressOperationsSearchAddressesData, AddressOperationsSearchAddressesResponse, ConfigOperationsGetConfigData, ConfigOperationsGetConfigResponse, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterResponse, FilterDetailOperationsGetFilterData, FilterDetailOperationsGetFilterResponse, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterResponse, FilterOperationsCreateFilterData, FilterOperationsCreateFilterResponse, FilterOperationsListFiltersData, FilterOperationsListFiltersResponse, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleResponse, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelResponse, LabelDetailOperationsGetLabelData, LabelDetailOperationsGetLabelResponse, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelResponse, LabelOperationsCreateLabelData, LabelOperationsCreateLabelResponse, LabelOperationsListLabelsData, LabelOperationsListLabelsResponse, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxResponse, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsGetMailboxResponse, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxResponse, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxResponse, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesResponse, MeOperationsCreateExportData, MeOperationsCreateExportResponse, MeOperationsDeleteMeData, MeOperationsDeleteMeError, MeOperationsDeleteMeResponse, MeOperationsGetExportData, MeOperationsGetExportResponse, MeOperationsListQuarantineData, MeOperationsListQuarantineResponse, MeOperationsListVipSuggestionsData, MeOperationsListVipSuggestionsResponse, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesResponse, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesResponse, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesResponse, MessageBulkOperationsNotSpamData, MessageBulkOperationsNotSpamResponse, MessageBulkOperationsReportSpamData, MessageBulkOperationsReportSpamResponse, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsResponse, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsResponse, MessageOperationsDescribeMessageData, MessageOperationsDescribeMessageResponse, MessageOperationsGetRawMessageData, MessageOperationsGetRawMessageResponse, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsResponse, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartResponse, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeJobDetailOperationsGetOrganizeJobResponse, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobResponse, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeResponse, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageResponse, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsGetOutboxMessageResponse, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesResponse, SemanticSearchOperationsSemanticSearchData, SemanticSearchOperationsSemanticSearchResponse, SyncOperationsGetSyncStatusData, SyncOperationsGetSyncStatusResponse, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncResponse, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateResponse, SystemOperationsGetSystemUpdateData, SystemOperationsGetSystemUpdateResponse, ThreadDetailOperationsListThreadMessagesData, ThreadDetailOperationsListThreadMessagesResponse, ThreadOperationsListThreadsData, ThreadOperationsListThreadsResponse, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsResponse, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashResponse, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsResponse } from '../types.gen.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Create a new email account
|
|
@@ -732,6 +732,40 @@ export const messageBulkOperationsMoveMessagesMutation = (options?: Partial<Opti
|
|
|
732
732
|
return mutationOptions;
|
|
733
733
|
};
|
|
734
734
|
|
|
735
|
+
/**
|
|
736
|
+
* 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.
|
|
737
|
+
*/
|
|
738
|
+
export const messageBulkOperationsNotSpamMutation = (options?: Partial<Options<MessageBulkOperationsNotSpamData>>): UseMutationOptions<MessageBulkOperationsNotSpamResponse, DefaultError, Options<MessageBulkOperationsNotSpamData>> => {
|
|
739
|
+
const mutationOptions: UseMutationOptions<MessageBulkOperationsNotSpamResponse, DefaultError, Options<MessageBulkOperationsNotSpamData>> = {
|
|
740
|
+
mutationFn: async (fnOptions) => {
|
|
741
|
+
const { data } = await messageBulkOperationsNotSpam({
|
|
742
|
+
...options,
|
|
743
|
+
...fnOptions,
|
|
744
|
+
throwOnError: true
|
|
745
|
+
});
|
|
746
|
+
return data;
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
return mutationOptions;
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* 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.
|
|
754
|
+
*/
|
|
755
|
+
export const messageBulkOperationsReportSpamMutation = (options?: Partial<Options<MessageBulkOperationsReportSpamData>>): UseMutationOptions<MessageBulkOperationsReportSpamResponse, DefaultError, Options<MessageBulkOperationsReportSpamData>> => {
|
|
756
|
+
const mutationOptions: UseMutationOptions<MessageBulkOperationsReportSpamResponse, DefaultError, Options<MessageBulkOperationsReportSpamData>> = {
|
|
757
|
+
mutationFn: async (fnOptions) => {
|
|
758
|
+
const { data } = await messageBulkOperationsReportSpam({
|
|
759
|
+
...options,
|
|
760
|
+
...fnOptions,
|
|
761
|
+
throwOnError: true
|
|
762
|
+
});
|
|
763
|
+
return data;
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
return mutationOptions;
|
|
767
|
+
};
|
|
768
|
+
|
|
735
769
|
export const messageOperationsDescribeMessageQueryKey = (options: Options<MessageOperationsDescribeMessageData>) => createQueryKey('messageOperationsDescribeMessage', options);
|
|
736
770
|
|
|
737
771
|
export const messageOperationsDescribeMessageOptions = (options: Options<MessageOperationsDescribeMessageData>) => queryOptions<MessageOperationsDescribeMessageResponse, DefaultError, MessageOperationsDescribeMessageResponse, ReturnType<typeof messageOperationsDescribeMessageQueryKey>>({
|
package/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export { accountDetailOperationsDeleteAccount, accountDetailOperationsUpdateAccount, accountOperationsCreateAccount, accountOperationsTestConnection, addressDetailOperationsUpdateAddress, addressOperationsSearchAddresses, configOperationsGetConfig, filterDetailOperationsDeleteFilter, filterDetailOperationsGetFilter, filterDetailOperationsUpdateFilter, filterOperationsCreateFilter, filterOperationsListFilters, folderRoleOperationsAppointFolderRole, labelDetailOperationsDeleteLabel, labelDetailOperationsGetLabel, labelDetailOperationsUpdateLabel, labelOperationsCreateLabel, labelOperationsListLabels, mailboxDetailOperationsDeleteMailbox, mailboxDetailOperationsGetMailbox, mailboxDetailOperationsRenameMailbox, mailboxOperationsCreateMailbox, mailboxOperationsListMailboxes, meOperationsCreateExport, meOperationsDeleteMe, meOperationsGetExport, meOperationsListQuarantine, meOperationsListVipSuggestions, messageBulkOperationsCopyMessages, messageBulkOperationsDeleteMessages, messageBulkOperationsMoveMessages, messageBulkOperationsUpdateFlags, messageBulkOperationsUpdateMessageLabels, messageOperationsDescribeMessage, messageOperationsGetRawMessage, messageOperationsUpdateMessageFlags, microsoftOAuthOperationsMicrosoftOAuthCallback, microsoftOAuthOperationsMicrosoftOAuthStart, type Options, organizeJobDetailOperationsGetOrganizeJob, organizeOperationsCreateOrganizeJob, organizeOperationsPreviewOrganize, outboxDetailOperationsDeleteOutboxMessage, outboxDetailOperationsGetOutboxMessage, outboxDetailOperationsSendOutboxMessage, outboxDetailOperationsUpdateOutboxMessage, outboxOperationsCreateOutboxMessage, outboxOperationsListOutboxMessages, semanticSearchOperationsSemanticSearch, syncOperationsGetSyncStatus, syncOperationsTriggerSync, systemOperationsApplySystemUpdate, systemOperationsGetSystemUpdate, threadDetailOperationsListThreadMessages, threadOperationsListThreads, threadOperationsSearchThreads, trashOperationsEmptyTrash, unifiedThreadOperationsListAllThreads } from './sdk.gen.js';
|
|
4
|
-
export type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountResponse, AccountDetailOperationsDeleteAccountResponses, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountResponse, AccountDetailOperationsUpdateAccountResponses, AccountOperationsCreateAccountData, AccountOperationsCreateAccountResponse, AccountOperationsCreateAccountResponses, AccountOperationsTestConnectionData, AccountOperationsTestConnectionResponse, AccountOperationsTestConnectionResponses, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressResponse, AddressDetailOperationsUpdateAddressResponses, AddressOperationsSearchAddressesData, AddressOperationsSearchAddressesResponse, AddressOperationsSearchAddressesResponses, ApiError, ClientOptions, ConfigOperationsGetConfigData, ConfigOperationsGetConfigResponse, ConfigOperationsGetConfigResponses, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterResponse, FilterDetailOperationsDeleteFilterResponses, FilterDetailOperationsGetFilterData, FilterDetailOperationsGetFilterResponse, FilterDetailOperationsGetFilterResponses, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterResponse, FilterDetailOperationsUpdateFilterResponses, FilterOperationsCreateFilterData, FilterOperationsCreateFilterResponse, FilterOperationsCreateFilterResponses, FilterOperationsListFiltersData, FilterOperationsListFiltersResponse, FilterOperationsListFiltersResponses, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleResponse, FolderRoleOperationsAppointFolderRoleResponses, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelResponse, LabelDetailOperationsDeleteLabelResponses, LabelDetailOperationsGetLabelData, LabelDetailOperationsGetLabelResponse, LabelDetailOperationsGetLabelResponses, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelResponse, LabelDetailOperationsUpdateLabelResponses, LabelOperationsCreateLabelData, LabelOperationsCreateLabelResponse, LabelOperationsCreateLabelResponses, LabelOperationsListLabelsData, LabelOperationsListLabelsResponse, LabelOperationsListLabelsResponses, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxResponse, MailboxDetailOperationsDeleteMailboxResponses, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsGetMailboxResponse, MailboxDetailOperationsGetMailboxResponses, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxResponse, MailboxDetailOperationsRenameMailboxResponses, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxResponse, MailboxOperationsCreateMailboxResponses, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesResponse, MailboxOperationsListMailboxesResponses, MeOperationsCreateExportData, MeOperationsCreateExportResponse, MeOperationsCreateExportResponses, MeOperationsDeleteMeData, MeOperationsDeleteMeError, MeOperationsDeleteMeErrors, MeOperationsDeleteMeResponse, MeOperationsDeleteMeResponses, MeOperationsGetExportData, MeOperationsGetExportResponse, MeOperationsGetExportResponses, MeOperationsListQuarantineData, MeOperationsListQuarantineResponse, MeOperationsListQuarantineResponses, MeOperationsListVipSuggestionsData, MeOperationsListVipSuggestionsResponse, MeOperationsListVipSuggestionsResponses, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesResponse, MessageBulkOperationsCopyMessagesResponses, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesResponse, MessageBulkOperationsDeleteMessagesResponses, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesResponse, MessageBulkOperationsMoveMessagesResponses, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsResponse, MessageBulkOperationsUpdateFlagsResponses, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsResponse, MessageBulkOperationsUpdateMessageLabelsResponses, MessageOperationsDescribeMessageData, MessageOperationsDescribeMessageResponse, MessageOperationsDescribeMessageResponses, MessageOperationsGetRawMessageData, MessageOperationsGetRawMessageResponse, MessageOperationsGetRawMessageResponses, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsResponse, MessageOperationsUpdateMessageFlagsResponses, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartResponse, MicrosoftOAuthOperationsMicrosoftOAuthStartResponses, MicrosoftOAuthStartRequest, MicrosoftOAuthStartResponse, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeJobDetailOperationsGetOrganizeJobResponse, OrganizeJobDetailOperationsGetOrganizeJobResponses, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobResponse, OrganizeOperationsCreateOrganizeJobResponses, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeResponse, OrganizeOperationsPreviewOrganizeResponses, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageResponse, OutboxDetailOperationsDeleteOutboxMessageResponses, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsGetOutboxMessageResponse, OutboxDetailOperationsGetOutboxMessageResponses, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsSendOutboxMessageResponses, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageResponse, OutboxDetailOperationsUpdateOutboxMessageResponses, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageResponses, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesResponse, OutboxOperationsListOutboxMessagesResponses, RemitImapAccountAuthType, RemitImapAccountConfigResponse, RemitImapAccountConfigState, RemitImapAccountExportRequestResponse, RemitImapAccountExportState, RemitImapAccountResponse, RemitImapAccountResponseWritable, RemitImapAccountSyncStatusResponse, RemitImapAddressFlagBase, RemitImapAddressFlagBaseUpdate, RemitImapAddressFlags, RemitImapAddressResponse, RemitImapAddressResponseWritable, RemitImapAddressRole, RemitImapApplyUpdateInput, RemitImapAppointFolderRoleInput, RemitImapAutoArchiveFlag, RemitImapAutoArchiveFlagUpdate, RemitImapAutoMovedInfo, RemitImapBlockedFlag, RemitImapBlockedFlagUpdate, RemitImapBodyPartResponse, RemitImapBodyPartResponseWritable, RemitImapBulkUpdateFlagsInput, RemitImapCanonicalMailboxRole, RemitImapCategoryFlag, RemitImapCategoryFlagUpdate, RemitImapConfigDescriptionResponse, RemitImapConfigDescriptionResponseWritable, RemitImapConnectionState, RemitImapContentDisposition, RemitImapCopyMessagesInput, RemitImapCreateAccountInput, RemitImapCreateExportResponse, RemitImapCreateFilterInput, RemitImapCreateLabelInput, RemitImapCreateMailboxInput, RemitImapCreateOrganizeJobResponse, RemitImapCreateOutboxMessageInput, RemitImapDeleteAccountConfigResponse, RemitImapDeleteAccountResponse, RemitImapDeleteMeInput, RemitImapDeleteMessagesInput, RemitImapDescribeMessageResponse, RemitImapDescribeMessageResponseWritable, RemitImapDisplayNameCorrespondence, RemitImapEmptyTrashResponse, RemitImapEnvelopeAddressResponse, RemitImapEnvelopeResponse, RemitImapFilterClause, RemitImapFilterClauseField, RemitImapFilterMatchOperator, RemitImapFilterResponse, RemitImapFilterResponseWritable, RemitImapFilterScope, RemitImapFilterState, RemitImapFolderAppointment, RemitImapLabelAction, RemitImapLabelColor, RemitImapLabelResponse, RemitImapLabelResponseWritable, RemitImapLabelSummaryResponse, RemitImapMailboxResponse, RemitImapMailboxResponseWritable, RemitImapMailboxSpecialUse, RemitImapMailboxSyncProgress, RemitImapMailboxSyncStatus, RemitImapMediaType, RemitImapMessageAuthenticity, RemitImapMessageBulkOperationResult, RemitImapMessageCategory, RemitImapMessageReferenceResponse, RemitImapMessageSummaryResponse, RemitImapMessageSummaryResponseWritable, RemitImapMoveMessagesInput, RemitImapMutedFlag, RemitImapMutedFlagUpdate, RemitImapNamespaceType, RemitImapOrganizeInput, RemitImapOrganizeJobResponse, RemitImapOrganizeJobResponseWritable, RemitImapOrganizeJobState, RemitImapOrganizePreviewResponse, RemitImapOutboxMessageResponse, RemitImapOutboxMessageStatus, RemitImapPlacementAction, RemitImapQuarantineFailureCode, RemitImapQuarantineFailureStage, RemitImapQuarantineListResponse, RemitImapQuarantineListResponseWritable, RemitImapQuarantineMimeNode, RemitImapQuarantineResponse, RemitImapQuarantineResponseWritable, RemitImapRawMessageResponse, RemitImapReferenceType, RemitImapRenameMailboxInput, RemitImapSemanticSearchChunkType, RemitImapSemanticSearchResult, RemitImapSenderTrust, RemitImapSortOrder, RemitImapStarColor, RemitImapSyncPhase, RemitImapSyncTriggerResponse, RemitImapSystemUpdateCheck, RemitImapSystemUpdateCheckStatus, RemitImapSystemUpdateOutcome, RemitImapSystemUpdatePhase, RemitImapSystemUpdateResponse, RemitImapSystemUpdateRun, RemitImapTestConnectionInput, RemitImapTestConnectionResponse, RemitImapThreadMessageResponse, RemitImapThreadMessageResponseWritable, RemitImapThreadSearchResponse, RemitImapThreadSearchResponseWritable, RemitImapTrustedFlag, RemitImapTrustedFlagUpdate, RemitImapUnsubscribedFlag, RemitImapUnsubscribedFlagUpdate, RemitImapUpdateAccountInput, RemitImapUpdateAddressFlagsInput, RemitImapUpdateAddressInput, RemitImapUpdateFilterInput, RemitImapUpdateFlagsInput, RemitImapUpdateLabelInput, RemitImapUpdateMessageLabelsInput, RemitImapUpdateOutboxMessageInput, RemitImapVipFlag, RemitImapVipFlagUpdate, RemitImapVipSuggestionEntry, RemitImapVipSuggestionsResponse, RemitImapWellknownFlag, RemitImapWellknownFlagUpdate, SemanticSearchOperationsSemanticSearchData, SemanticSearchOperationsSemanticSearchResponse, SemanticSearchOperationsSemanticSearchResponses, String140, String256, String512, String64, String800, SyncOperationsGetSyncStatusData, SyncOperationsGetSyncStatusResponse, SyncOperationsGetSyncStatusResponses, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncResponse, SyncOperationsTriggerSyncResponses, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateResponse, SystemOperationsApplySystemUpdateResponses, SystemOperationsGetSystemUpdateData, SystemOperationsGetSystemUpdateResponse, SystemOperationsGetSystemUpdateResponses, ThreadDetailOperationsListThreadMessagesData, ThreadDetailOperationsListThreadMessagesResponse, ThreadDetailOperationsListThreadMessagesResponses, ThreadOperationsListThreadsData, ThreadOperationsListThreadsResponse, ThreadOperationsListThreadsResponses, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsResponse, ThreadOperationsSearchThreadsResponses, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashResponse, TrashOperationsEmptyTrashResponses, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsResponse, UnifiedThreadOperationsListAllThreadsResponses, Uuid } from './types.gen.js';
|
|
3
|
+
export { accountDetailOperationsDeleteAccount, accountDetailOperationsUpdateAccount, accountOperationsCreateAccount, accountOperationsTestConnection, addressDetailOperationsUpdateAddress, addressOperationsSearchAddresses, configOperationsGetConfig, filterDetailOperationsDeleteFilter, filterDetailOperationsGetFilter, filterDetailOperationsUpdateFilter, filterOperationsCreateFilter, filterOperationsListFilters, folderRoleOperationsAppointFolderRole, labelDetailOperationsDeleteLabel, labelDetailOperationsGetLabel, labelDetailOperationsUpdateLabel, labelOperationsCreateLabel, labelOperationsListLabels, mailboxDetailOperationsDeleteMailbox, mailboxDetailOperationsGetMailbox, mailboxDetailOperationsRenameMailbox, mailboxOperationsCreateMailbox, mailboxOperationsListMailboxes, meOperationsCreateExport, meOperationsDeleteMe, meOperationsGetExport, meOperationsListQuarantine, meOperationsListVipSuggestions, messageBulkOperationsCopyMessages, messageBulkOperationsDeleteMessages, messageBulkOperationsMoveMessages, messageBulkOperationsNotSpam, messageBulkOperationsReportSpam, messageBulkOperationsUpdateFlags, messageBulkOperationsUpdateMessageLabels, messageOperationsDescribeMessage, messageOperationsGetRawMessage, messageOperationsUpdateMessageFlags, microsoftOAuthOperationsMicrosoftOAuthCallback, microsoftOAuthOperationsMicrosoftOAuthStart, type Options, organizeJobDetailOperationsGetOrganizeJob, organizeOperationsCreateOrganizeJob, organizeOperationsPreviewOrganize, outboxDetailOperationsDeleteOutboxMessage, outboxDetailOperationsGetOutboxMessage, outboxDetailOperationsSendOutboxMessage, outboxDetailOperationsUpdateOutboxMessage, outboxOperationsCreateOutboxMessage, outboxOperationsListOutboxMessages, semanticSearchOperationsSemanticSearch, syncOperationsGetSyncStatus, syncOperationsTriggerSync, systemOperationsApplySystemUpdate, systemOperationsGetSystemUpdate, threadDetailOperationsListThreadMessages, threadOperationsListThreads, threadOperationsSearchThreads, trashOperationsEmptyTrash, unifiedThreadOperationsListAllThreads } from './sdk.gen.js';
|
|
4
|
+
export type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountResponse, AccountDetailOperationsDeleteAccountResponses, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountResponse, AccountDetailOperationsUpdateAccountResponses, AccountOperationsCreateAccountData, AccountOperationsCreateAccountResponse, AccountOperationsCreateAccountResponses, AccountOperationsTestConnectionData, AccountOperationsTestConnectionResponse, AccountOperationsTestConnectionResponses, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressResponse, AddressDetailOperationsUpdateAddressResponses, AddressOperationsSearchAddressesData, AddressOperationsSearchAddressesResponse, AddressOperationsSearchAddressesResponses, ApiError, ClientOptions, ConfigOperationsGetConfigData, ConfigOperationsGetConfigResponse, ConfigOperationsGetConfigResponses, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterResponse, FilterDetailOperationsDeleteFilterResponses, FilterDetailOperationsGetFilterData, FilterDetailOperationsGetFilterResponse, FilterDetailOperationsGetFilterResponses, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterResponse, FilterDetailOperationsUpdateFilterResponses, FilterOperationsCreateFilterData, FilterOperationsCreateFilterResponse, FilterOperationsCreateFilterResponses, FilterOperationsListFiltersData, FilterOperationsListFiltersResponse, FilterOperationsListFiltersResponses, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleResponse, FolderRoleOperationsAppointFolderRoleResponses, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelResponse, LabelDetailOperationsDeleteLabelResponses, LabelDetailOperationsGetLabelData, LabelDetailOperationsGetLabelResponse, LabelDetailOperationsGetLabelResponses, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelResponse, LabelDetailOperationsUpdateLabelResponses, LabelOperationsCreateLabelData, LabelOperationsCreateLabelResponse, LabelOperationsCreateLabelResponses, LabelOperationsListLabelsData, LabelOperationsListLabelsResponse, LabelOperationsListLabelsResponses, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxResponse, MailboxDetailOperationsDeleteMailboxResponses, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsGetMailboxResponse, MailboxDetailOperationsGetMailboxResponses, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxResponse, MailboxDetailOperationsRenameMailboxResponses, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxResponse, MailboxOperationsCreateMailboxResponses, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesResponse, MailboxOperationsListMailboxesResponses, MeOperationsCreateExportData, MeOperationsCreateExportResponse, MeOperationsCreateExportResponses, MeOperationsDeleteMeData, MeOperationsDeleteMeError, MeOperationsDeleteMeErrors, MeOperationsDeleteMeResponse, MeOperationsDeleteMeResponses, MeOperationsGetExportData, MeOperationsGetExportResponse, MeOperationsGetExportResponses, MeOperationsListQuarantineData, MeOperationsListQuarantineResponse, MeOperationsListQuarantineResponses, MeOperationsListVipSuggestionsData, MeOperationsListVipSuggestionsResponse, MeOperationsListVipSuggestionsResponses, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesResponse, MessageBulkOperationsCopyMessagesResponses, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesResponse, MessageBulkOperationsDeleteMessagesResponses, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesResponse, MessageBulkOperationsMoveMessagesResponses, MessageBulkOperationsNotSpamData, MessageBulkOperationsNotSpamResponse, MessageBulkOperationsNotSpamResponses, MessageBulkOperationsReportSpamData, MessageBulkOperationsReportSpamResponse, MessageBulkOperationsReportSpamResponses, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsResponse, MessageBulkOperationsUpdateFlagsResponses, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsResponse, MessageBulkOperationsUpdateMessageLabelsResponses, MessageOperationsDescribeMessageData, MessageOperationsDescribeMessageResponse, MessageOperationsDescribeMessageResponses, MessageOperationsGetRawMessageData, MessageOperationsGetRawMessageResponse, MessageOperationsGetRawMessageResponses, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsResponse, MessageOperationsUpdateMessageFlagsResponses, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartResponse, MicrosoftOAuthOperationsMicrosoftOAuthStartResponses, MicrosoftOAuthStartRequest, MicrosoftOAuthStartResponse, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeJobDetailOperationsGetOrganizeJobResponse, OrganizeJobDetailOperationsGetOrganizeJobResponses, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobResponse, OrganizeOperationsCreateOrganizeJobResponses, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeResponse, OrganizeOperationsPreviewOrganizeResponses, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageResponse, OutboxDetailOperationsDeleteOutboxMessageResponses, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsGetOutboxMessageResponse, OutboxDetailOperationsGetOutboxMessageResponses, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsSendOutboxMessageResponses, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageResponse, OutboxDetailOperationsUpdateOutboxMessageResponses, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageResponses, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesResponse, OutboxOperationsListOutboxMessagesResponses, RemitImapAccountAuthType, RemitImapAccountConfigResponse, RemitImapAccountConfigState, RemitImapAccountExportRequestResponse, RemitImapAccountExportState, RemitImapAccountResponse, RemitImapAccountResponseWritable, RemitImapAccountSyncStatusResponse, RemitImapAddressFlagBase, RemitImapAddressFlagBaseUpdate, RemitImapAddressFlags, RemitImapAddressResponse, RemitImapAddressResponseWritable, RemitImapAddressRole, RemitImapApplyUpdateInput, RemitImapAppointFolderRoleInput, RemitImapAutoArchiveFlag, RemitImapAutoArchiveFlagUpdate, RemitImapAutoMovedInfo, RemitImapBlockedFlag, RemitImapBlockedFlagUpdate, RemitImapBodyPartResponse, RemitImapBodyPartResponseWritable, RemitImapBulkMessageInput, RemitImapBulkUpdateFlagsInput, RemitImapCanonicalMailboxRole, RemitImapCategoryFlag, RemitImapCategoryFlagUpdate, RemitImapConfigDescriptionResponse, RemitImapConfigDescriptionResponseWritable, RemitImapConnectionState, RemitImapContentDisposition, RemitImapCopyMessagesInput, RemitImapCreateAccountInput, RemitImapCreateExportResponse, RemitImapCreateFilterInput, RemitImapCreateLabelInput, RemitImapCreateMailboxInput, RemitImapCreateOrganizeJobResponse, RemitImapCreateOutboxMessageInput, RemitImapDeleteAccountConfigResponse, RemitImapDeleteAccountResponse, RemitImapDeleteMeInput, RemitImapDeleteMessagesInput, RemitImapDescribeMessageResponse, RemitImapDescribeMessageResponseWritable, RemitImapDisplayNameCorrespondence, RemitImapEmptyTrashResponse, RemitImapEnvelopeAddressResponse, RemitImapEnvelopeResponse, RemitImapFilterClause, RemitImapFilterClauseField, RemitImapFilterMatchOperator, RemitImapFilterResponse, RemitImapFilterResponseWritable, RemitImapFilterScope, RemitImapFilterState, RemitImapFolderAppointment, RemitImapLabelAction, RemitImapLabelColor, RemitImapLabelResponse, RemitImapLabelResponseWritable, RemitImapLabelSummaryResponse, RemitImapMailboxResponse, RemitImapMailboxResponseWritable, RemitImapMailboxSpecialUse, RemitImapMailboxSyncProgress, RemitImapMailboxSyncStatus, RemitImapMediaType, RemitImapMessageAuthenticity, RemitImapMessageBulkOperationResult, RemitImapMessageCategory, RemitImapMessageReferenceResponse, RemitImapMessageSpamReport, RemitImapMessageSummaryResponse, RemitImapMessageSummaryResponseWritable, RemitImapMoveMessagesInput, RemitImapMutedFlag, RemitImapMutedFlagUpdate, RemitImapNamespaceType, RemitImapOrganizeInput, RemitImapOrganizeJobResponse, RemitImapOrganizeJobResponseWritable, RemitImapOrganizeJobState, RemitImapOrganizePreviewResponse, RemitImapOutboxMessageResponse, RemitImapOutboxMessageStatus, RemitImapPlacementAction, RemitImapQuarantineFailureCode, RemitImapQuarantineFailureStage, RemitImapQuarantineListResponse, RemitImapQuarantineListResponseWritable, RemitImapQuarantineMimeNode, RemitImapQuarantineResponse, RemitImapQuarantineResponseWritable, RemitImapRawMessageResponse, RemitImapReferenceType, RemitImapRenameMailboxInput, RemitImapSemanticSearchChunkType, RemitImapSemanticSearchResult, RemitImapSenderTrust, RemitImapSortOrder, RemitImapSpamReportBulkResult, RemitImapSpamReportFailure, RemitImapStarColor, RemitImapSyncPhase, RemitImapSyncTriggerResponse, RemitImapSystemUpdateCheck, RemitImapSystemUpdateCheckStatus, RemitImapSystemUpdateOutcome, RemitImapSystemUpdatePhase, RemitImapSystemUpdateResponse, RemitImapSystemUpdateRun, RemitImapTestConnectionInput, RemitImapTestConnectionResponse, RemitImapThreadMessageResponse, RemitImapThreadMessageResponseWritable, RemitImapThreadSearchResponse, RemitImapThreadSearchResponseWritable, RemitImapTrustedFlag, RemitImapTrustedFlagUpdate, RemitImapUnsubscribedFlag, RemitImapUnsubscribedFlagUpdate, RemitImapUpdateAccountInput, RemitImapUpdateAddressFlagsInput, RemitImapUpdateAddressInput, RemitImapUpdateFilterInput, RemitImapUpdateFlagsInput, RemitImapUpdateLabelInput, RemitImapUpdateMessageLabelsInput, RemitImapUpdateOutboxMessageInput, RemitImapVipFlag, RemitImapVipFlagUpdate, RemitImapVipSuggestionEntry, RemitImapVipSuggestionsResponse, RemitImapWellknownFlag, RemitImapWellknownFlagUpdate, SemanticSearchOperationsSemanticSearchData, SemanticSearchOperationsSemanticSearchResponse, SemanticSearchOperationsSemanticSearchResponses, String140, String256, String512, String64, String800, SyncOperationsGetSyncStatusData, SyncOperationsGetSyncStatusResponse, SyncOperationsGetSyncStatusResponses, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncResponse, SyncOperationsTriggerSyncResponses, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateResponse, SystemOperationsApplySystemUpdateResponses, SystemOperationsGetSystemUpdateData, SystemOperationsGetSystemUpdateResponse, SystemOperationsGetSystemUpdateResponses, ThreadDetailOperationsListThreadMessagesData, ThreadDetailOperationsListThreadMessagesResponse, ThreadDetailOperationsListThreadMessagesResponses, ThreadOperationsListThreadsData, ThreadOperationsListThreadsResponse, ThreadOperationsListThreadsResponses, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsResponse, ThreadOperationsSearchThreadsResponses, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashResponse, TrashOperationsEmptyTrashResponses, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsResponse, UnifiedThreadOperationsListAllThreadsResponses, Uuid } from './types.gen.js';
|
package/package.json
CHANGED
package/sdk.gen.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { client } from './client.gen.js';
|
|
4
4
|
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
|
|
5
|
-
import type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountResponses, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountResponses, AccountOperationsCreateAccountData, AccountOperationsCreateAccountResponses, AccountOperationsTestConnectionData, AccountOperationsTestConnectionResponses, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressResponses, AddressOperationsSearchAddressesData, AddressOperationsSearchAddressesResponses, ConfigOperationsGetConfigData, ConfigOperationsGetConfigResponses, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterResponses, FilterDetailOperationsGetFilterData, FilterDetailOperationsGetFilterResponses, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterResponses, FilterOperationsCreateFilterData, FilterOperationsCreateFilterResponses, FilterOperationsListFiltersData, FilterOperationsListFiltersResponses, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleResponses, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelResponses, LabelDetailOperationsGetLabelData, LabelDetailOperationsGetLabelResponses, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelResponses, LabelOperationsCreateLabelData, LabelOperationsCreateLabelResponses, LabelOperationsListLabelsData, LabelOperationsListLabelsResponses, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxResponses, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsGetMailboxResponses, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxResponses, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxResponses, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesResponses, MeOperationsCreateExportData, MeOperationsCreateExportResponses, MeOperationsDeleteMeData, MeOperationsDeleteMeErrors, MeOperationsDeleteMeResponses, MeOperationsGetExportData, MeOperationsGetExportResponses, MeOperationsListQuarantineData, MeOperationsListQuarantineResponses, MeOperationsListVipSuggestionsData, MeOperationsListVipSuggestionsResponses, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesResponses, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesResponses, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesResponses, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsResponses, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsResponses, MessageOperationsDescribeMessageData, MessageOperationsDescribeMessageResponses, MessageOperationsGetRawMessageData, MessageOperationsGetRawMessageResponses, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsResponses, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartResponses, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeJobDetailOperationsGetOrganizeJobResponses, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobResponses, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeResponses, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageResponses, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsGetOutboxMessageResponses, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageResponses, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageResponses, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageResponses, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesResponses, SemanticSearchOperationsSemanticSearchData, SemanticSearchOperationsSemanticSearchResponses, SyncOperationsGetSyncStatusData, SyncOperationsGetSyncStatusResponses, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncResponses, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateResponses, SystemOperationsGetSystemUpdateData, SystemOperationsGetSystemUpdateResponses, ThreadDetailOperationsListThreadMessagesData, ThreadDetailOperationsListThreadMessagesResponses, ThreadOperationsListThreadsData, ThreadOperationsListThreadsResponses, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsResponses, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashResponses, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsResponses } from './types.gen.js';
|
|
5
|
+
import type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountResponses, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountResponses, AccountOperationsCreateAccountData, AccountOperationsCreateAccountResponses, AccountOperationsTestConnectionData, AccountOperationsTestConnectionResponses, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressResponses, AddressOperationsSearchAddressesData, AddressOperationsSearchAddressesResponses, ConfigOperationsGetConfigData, ConfigOperationsGetConfigResponses, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterResponses, FilterDetailOperationsGetFilterData, FilterDetailOperationsGetFilterResponses, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterResponses, FilterOperationsCreateFilterData, FilterOperationsCreateFilterResponses, FilterOperationsListFiltersData, FilterOperationsListFiltersResponses, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleResponses, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelResponses, LabelDetailOperationsGetLabelData, LabelDetailOperationsGetLabelResponses, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelResponses, LabelOperationsCreateLabelData, LabelOperationsCreateLabelResponses, LabelOperationsListLabelsData, LabelOperationsListLabelsResponses, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxResponses, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsGetMailboxResponses, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxResponses, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxResponses, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesResponses, MeOperationsCreateExportData, MeOperationsCreateExportResponses, MeOperationsDeleteMeData, MeOperationsDeleteMeErrors, MeOperationsDeleteMeResponses, MeOperationsGetExportData, MeOperationsGetExportResponses, MeOperationsListQuarantineData, MeOperationsListQuarantineResponses, MeOperationsListVipSuggestionsData, MeOperationsListVipSuggestionsResponses, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesResponses, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesResponses, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesResponses, MessageBulkOperationsNotSpamData, MessageBulkOperationsNotSpamResponses, MessageBulkOperationsReportSpamData, MessageBulkOperationsReportSpamResponses, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsResponses, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsResponses, MessageOperationsDescribeMessageData, MessageOperationsDescribeMessageResponses, MessageOperationsGetRawMessageData, MessageOperationsGetRawMessageResponses, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsResponses, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartResponses, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeJobDetailOperationsGetOrganizeJobResponses, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobResponses, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeResponses, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageResponses, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsGetOutboxMessageResponses, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageResponses, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageResponses, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageResponses, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesResponses, SemanticSearchOperationsSemanticSearchData, SemanticSearchOperationsSemanticSearchResponses, SyncOperationsGetSyncStatusData, SyncOperationsGetSyncStatusResponses, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncResponses, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateResponses, SystemOperationsGetSystemUpdateData, SystemOperationsGetSystemUpdateResponses, ThreadDetailOperationsListThreadMessagesData, ThreadDetailOperationsListThreadMessagesResponses, ThreadOperationsListThreadsData, ThreadOperationsListThreadsResponses, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsResponses, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashResponses, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsResponses } from './types.gen.js';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
8
8
|
/**
|
|
@@ -427,6 +427,32 @@ export const messageBulkOperationsMoveMessages = <ThrowOnError extends boolean =
|
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
|
|
430
|
+
/**
|
|
431
|
+
* 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.
|
|
432
|
+
*/
|
|
433
|
+
export const messageBulkOperationsNotSpam = <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsNotSpamData, ThrowOnError>): RequestResult<MessageBulkOperationsNotSpamResponses, unknown, ThrowOnError> => (options.client ?? client).post<MessageBulkOperationsNotSpamResponses, unknown, ThrowOnError>({
|
|
434
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
435
|
+
url: '/messages/not-spam',
|
|
436
|
+
...options,
|
|
437
|
+
headers: {
|
|
438
|
+
'Content-Type': 'application/json',
|
|
439
|
+
...options.headers
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* 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.
|
|
445
|
+
*/
|
|
446
|
+
export const messageBulkOperationsReportSpam = <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsReportSpamData, ThrowOnError>): RequestResult<MessageBulkOperationsReportSpamResponses, unknown, ThrowOnError> => (options.client ?? client).post<MessageBulkOperationsReportSpamResponses, unknown, ThrowOnError>({
|
|
447
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
448
|
+
url: '/messages/report-spam',
|
|
449
|
+
...options,
|
|
450
|
+
headers: {
|
|
451
|
+
'Content-Type': 'application/json',
|
|
452
|
+
...options.headers
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
|
|
430
456
|
export const messageOperationsDescribeMessage = <ThrowOnError extends boolean = false>(options: Options<MessageOperationsDescribeMessageData, ThrowOnError>): RequestResult<MessageOperationsDescribeMessageResponses, unknown, ThrowOnError> => (options.client ?? client).get<MessageOperationsDescribeMessageResponses, unknown, ThrowOnError>({
|
|
431
457
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
432
458
|
url: '/messages/{messageId}',
|
package/types.gen.ts
CHANGED
|
@@ -245,6 +245,10 @@ export type RemitImapAccountResponse = {
|
|
|
245
245
|
* HTML email signature for this account
|
|
246
246
|
*/
|
|
247
247
|
signatureHtml?: string;
|
|
248
|
+
/**
|
|
249
|
+
* BCP 47 language tags this account writes mail in, most-used first (issue #686). The first entry is what a new message opens on; the whole list is the candidate set language detection chooses inside. Absent when the user has not configured one, and the client falls back to the browser's own languages. Sourced from a per-account AccountSetting row (RFC 032).
|
|
250
|
+
*/
|
|
251
|
+
composeLanguages?: Array<string>;
|
|
248
252
|
/**
|
|
249
253
|
* Per-account appointment of each canonical role (Inbox, Drafts, Sent, Archive, Junk, Trash, All, Flagged) to at most one mailbox (RFC 032 exclusive-folder-appointment, issue #976). Always carries one entry per CanonicalMailboxRole member; an entry's `mailboxId` is a persisted user choice when set, or a server-proposed detection result when the user hasn't appointed that role yet. Write with PUT /accounts/{accountId}/folder-roles/{role}.
|
|
250
254
|
*/
|
|
@@ -512,6 +516,16 @@ export type RemitImapBodyPartResponse = {
|
|
|
512
516
|
contentUrl: string;
|
|
513
517
|
};
|
|
514
518
|
|
|
519
|
+
/**
|
|
520
|
+
* Input for bulk message operations
|
|
521
|
+
*/
|
|
522
|
+
export type RemitImapBulkMessageInput = {
|
|
523
|
+
/**
|
|
524
|
+
* List of message IDs to operate on
|
|
525
|
+
*/
|
|
526
|
+
messageIds: Array<Uuid>;
|
|
527
|
+
};
|
|
528
|
+
|
|
515
529
|
/**
|
|
516
530
|
* Input for bulk flag update operations
|
|
517
531
|
*/
|
|
@@ -1316,6 +1330,16 @@ export type RemitImapMessageReferenceResponse = {
|
|
|
1316
1330
|
readonly referenceOrder: number;
|
|
1317
1331
|
};
|
|
1318
1332
|
|
|
1333
|
+
/**
|
|
1334
|
+
* Recorded when the user reported this message as spam via `POST /messages/report-spam`. Present means the report stands; absent means never reported, or reported and then undone via `POST /messages/not-spam` (which clears it). Backs the "Reported as spam · Undo" affordance independent of the message's current folder — the underlying move can settle, fail, or no-op (already in Junk) without changing whether the report itself is shown.
|
|
1335
|
+
*/
|
|
1336
|
+
export type RemitImapMessageSpamReport = {
|
|
1337
|
+
/**
|
|
1338
|
+
* Timestamp (epoch millis) the report was made.
|
|
1339
|
+
*/
|
|
1340
|
+
reportedAt: number;
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1319
1343
|
/**
|
|
1320
1344
|
* Core message metadata for API responses
|
|
1321
1345
|
*/
|
|
@@ -1356,6 +1380,10 @@ export type RemitImapMessageSummaryResponse = {
|
|
|
1356
1380
|
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
1357
1381
|
*/
|
|
1358
1382
|
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Present when the user reported this message as spam and the report has not been undone. Backs the "Reported as spam · Undo" affordance.
|
|
1385
|
+
*/
|
|
1386
|
+
spamReport?: RemitImapMessageSpamReport;
|
|
1359
1387
|
};
|
|
1360
1388
|
|
|
1361
1389
|
/**
|
|
@@ -1851,6 +1879,38 @@ export type RemitImapSenderTrust = 'unknown' | 'wellknown' | 'vip';
|
|
|
1851
1879
|
*/
|
|
1852
1880
|
export type RemitImapSortOrder = 'asc' | 'desc';
|
|
1853
1881
|
|
|
1882
|
+
/**
|
|
1883
|
+
* Result of a report-spam or not-spam bulk call. Extends the standard counts with a reason per failed message: a partial failure here is an expected, routine outcome (a move from a prior press still settling) the client should be able to explain, not just count.
|
|
1884
|
+
*/
|
|
1885
|
+
export type RemitImapSpamReportBulkResult = {
|
|
1886
|
+
/**
|
|
1887
|
+
* Number of items accepted for processing
|
|
1888
|
+
*/
|
|
1889
|
+
successCount: number;
|
|
1890
|
+
/**
|
|
1891
|
+
* Number of items rejected before processing
|
|
1892
|
+
*/
|
|
1893
|
+
failureCount: number;
|
|
1894
|
+
/**
|
|
1895
|
+
* One entry per message that failed, naming why. Absent or empty when every message succeeded.
|
|
1896
|
+
*/
|
|
1897
|
+
failures?: Array<RemitImapSpamReportFailure>;
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* One message's failure reason within a report-spam or not-spam bulk call.
|
|
1902
|
+
*/
|
|
1903
|
+
export type RemitImapSpamReportFailure = {
|
|
1904
|
+
/**
|
|
1905
|
+
* The message that failed
|
|
1906
|
+
*/
|
|
1907
|
+
messageId: Uuid;
|
|
1908
|
+
/**
|
|
1909
|
+
* Why it failed, safe to show the user as-is. One of a small allowlisted set of user-facing messages (e.g. "has not settled yet" while a prior move is still in flight) — never a raw internal error, which is logged server-side instead and never returned here. Not intended to be parsed programmatically.
|
|
1910
|
+
*/
|
|
1911
|
+
reason: string;
|
|
1912
|
+
};
|
|
1913
|
+
|
|
1854
1914
|
/**
|
|
1855
1915
|
* Gmail-style star colors for message/thread marking
|
|
1856
1916
|
*/
|
|
@@ -2170,6 +2230,10 @@ export type RemitImapThreadMessageResponse = {
|
|
|
2170
2230
|
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2171
2231
|
*/
|
|
2172
2232
|
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2233
|
+
/**
|
|
2234
|
+
* Present when the user reported this message as spam and the report has not been undone, projected from the underlying Message row. Backs the "Reported as spam · Undo" affordance in list views.
|
|
2235
|
+
*/
|
|
2236
|
+
spamReport?: RemitImapMessageSpamReport;
|
|
2173
2237
|
};
|
|
2174
2238
|
|
|
2175
2239
|
/**
|
|
@@ -2290,6 +2354,10 @@ export type RemitImapUpdateAccountInput = {
|
|
|
2290
2354
|
* HTML email signature
|
|
2291
2355
|
*/
|
|
2292
2356
|
signatureHtml?: string;
|
|
2357
|
+
/**
|
|
2358
|
+
* BCP 47 language tags this account writes mail in, most-used first (issue #686). Replaces the stored list outright; an empty array clears it.
|
|
2359
|
+
*/
|
|
2360
|
+
composeLanguages?: Array<string>;
|
|
2293
2361
|
/**
|
|
2294
2362
|
* Account-level mute flag. Pass a MutedFlag object to mute; pass `null` to clear the mute.
|
|
2295
2363
|
*/
|
|
@@ -2565,6 +2633,10 @@ export type RemitImapAccountResponseWritable = {
|
|
|
2565
2633
|
* HTML email signature for this account
|
|
2566
2634
|
*/
|
|
2567
2635
|
signatureHtml?: string;
|
|
2636
|
+
/**
|
|
2637
|
+
* BCP 47 language tags this account writes mail in, most-used first (issue #686). The first entry is what a new message opens on; the whole list is the candidate set language detection chooses inside. Absent when the user has not configured one, and the client falls back to the browser's own languages. Sourced from a per-account AccountSetting row (RFC 032).
|
|
2638
|
+
*/
|
|
2639
|
+
composeLanguages?: Array<string>;
|
|
2568
2640
|
/**
|
|
2569
2641
|
* Per-account appointment of each canonical role (Inbox, Drafts, Sent, Archive, Junk, Trash, All, Flagged) to at most one mailbox (RFC 032 exclusive-folder-appointment, issue #976). Always carries one entry per CanonicalMailboxRole member; an entry's `mailboxId` is a persisted user choice when set, or a server-proposed detection result when the user hasn't appointed that role yet. Write with PUT /accounts/{accountId}/folder-roles/{role}.
|
|
2570
2642
|
*/
|
|
@@ -2714,6 +2786,10 @@ export type RemitImapMessageSummaryResponseWritable = {
|
|
|
2714
2786
|
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2715
2787
|
*/
|
|
2716
2788
|
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2789
|
+
/**
|
|
2790
|
+
* Present when the user reported this message as spam and the report has not been undone. Backs the "Reported as spam · Undo" affordance.
|
|
2791
|
+
*/
|
|
2792
|
+
spamReport?: RemitImapMessageSpamReport;
|
|
2717
2793
|
};
|
|
2718
2794
|
|
|
2719
2795
|
/**
|
|
@@ -2772,6 +2848,10 @@ export type RemitImapThreadMessageResponseWritable = {
|
|
|
2772
2848
|
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2773
2849
|
*/
|
|
2774
2850
|
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2851
|
+
/**
|
|
2852
|
+
* Present when the user reported this message as spam and the report has not been undone, projected from the underlying Message row. Backs the "Reported as spam · Undo" affordance in list views.
|
|
2853
|
+
*/
|
|
2854
|
+
spamReport?: RemitImapMessageSpamReport;
|
|
2775
2855
|
};
|
|
2776
2856
|
|
|
2777
2857
|
/**
|
|
@@ -3630,6 +3710,38 @@ export type MessageBulkOperationsMoveMessagesResponses = {
|
|
|
3630
3710
|
|
|
3631
3711
|
export type MessageBulkOperationsMoveMessagesResponse = MessageBulkOperationsMoveMessagesResponses[keyof MessageBulkOperationsMoveMessagesResponses];
|
|
3632
3712
|
|
|
3713
|
+
export type MessageBulkOperationsNotSpamData = {
|
|
3714
|
+
body: RemitImapBulkMessageInput;
|
|
3715
|
+
path?: never;
|
|
3716
|
+
query?: never;
|
|
3717
|
+
url: '/messages/not-spam';
|
|
3718
|
+
};
|
|
3719
|
+
|
|
3720
|
+
export type MessageBulkOperationsNotSpamResponses = {
|
|
3721
|
+
/**
|
|
3722
|
+
* The request has succeeded.
|
|
3723
|
+
*/
|
|
3724
|
+
200: RemitImapSpamReportBulkResult;
|
|
3725
|
+
};
|
|
3726
|
+
|
|
3727
|
+
export type MessageBulkOperationsNotSpamResponse = MessageBulkOperationsNotSpamResponses[keyof MessageBulkOperationsNotSpamResponses];
|
|
3728
|
+
|
|
3729
|
+
export type MessageBulkOperationsReportSpamData = {
|
|
3730
|
+
body: RemitImapBulkMessageInput;
|
|
3731
|
+
path?: never;
|
|
3732
|
+
query?: never;
|
|
3733
|
+
url: '/messages/report-spam';
|
|
3734
|
+
};
|
|
3735
|
+
|
|
3736
|
+
export type MessageBulkOperationsReportSpamResponses = {
|
|
3737
|
+
/**
|
|
3738
|
+
* The request has succeeded.
|
|
3739
|
+
*/
|
|
3740
|
+
200: RemitImapSpamReportBulkResult;
|
|
3741
|
+
};
|
|
3742
|
+
|
|
3743
|
+
export type MessageBulkOperationsReportSpamResponse = MessageBulkOperationsReportSpamResponses[keyof MessageBulkOperationsReportSpamResponses];
|
|
3744
|
+
|
|
3633
3745
|
export type MessageOperationsDescribeMessageData = {
|
|
3634
3746
|
body?: never;
|
|
3635
3747
|
path: {
|