@remit/api-http-client 0.0.22 → 0.0.24
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 +113 -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, 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
|
@@ -512,6 +512,16 @@ export type RemitImapBodyPartResponse = {
|
|
|
512
512
|
contentUrl: string;
|
|
513
513
|
};
|
|
514
514
|
|
|
515
|
+
/**
|
|
516
|
+
* Input for bulk message operations
|
|
517
|
+
*/
|
|
518
|
+
export type RemitImapBulkMessageInput = {
|
|
519
|
+
/**
|
|
520
|
+
* List of message IDs to operate on
|
|
521
|
+
*/
|
|
522
|
+
messageIds: Array<Uuid>;
|
|
523
|
+
};
|
|
524
|
+
|
|
515
525
|
/**
|
|
516
526
|
* Input for bulk flag update operations
|
|
517
527
|
*/
|
|
@@ -882,6 +892,11 @@ export type RemitImapDescribeMessageResponse = {
|
|
|
882
892
|
references: Array<RemitImapMessageReferenceResponse>;
|
|
883
893
|
};
|
|
884
894
|
|
|
895
|
+
/**
|
|
896
|
+
* How the From display name relates to the From domain. `Corresponds` — the name is contained in the domain. `Lookalike` — the name is one or two characters away from a domain label. `Unrelated` — no relation. `NoClaim` — the name is empty or is the address itself, so it claims no identity.
|
|
897
|
+
*/
|
|
898
|
+
export type RemitImapDisplayNameCorrespondence = 'Corresponds' | 'Lookalike' | 'Unrelated' | 'NoClaim';
|
|
899
|
+
|
|
885
900
|
/**
|
|
886
901
|
* Response from emptying trash
|
|
887
902
|
*/
|
|
@@ -1264,6 +1279,14 @@ export type RemitImapMessageAuthenticity = {
|
|
|
1264
1279
|
* True when DKIM signing domain(s) are present and none aligns with the From domain
|
|
1265
1280
|
*/
|
|
1266
1281
|
dkimMismatch: boolean;
|
|
1282
|
+
/**
|
|
1283
|
+
* How the From display name relates to the From domain. Present only for a message the provider's own filter already classified as spam, and only when the sender is not bulk-shaped (no List-Unsubscribe) — absence means the comparison was never made, never that it found nothing.
|
|
1284
|
+
*/
|
|
1285
|
+
displayNameCorrespondence?: RemitImapDisplayNameCorrespondence;
|
|
1286
|
+
/**
|
|
1287
|
+
* Registrable domains (eTLD+1) the body's links point at, excluding the From address's own registrable domain. Present only for a message the provider's own filter already classified as spam; an empty array means every link stayed on the sender's domain, absence means the comparison was never made.
|
|
1288
|
+
*/
|
|
1289
|
+
offDomainLinkDomains?: Array<string>;
|
|
1267
1290
|
};
|
|
1268
1291
|
|
|
1269
1292
|
/**
|
|
@@ -1303,6 +1326,16 @@ export type RemitImapMessageReferenceResponse = {
|
|
|
1303
1326
|
readonly referenceOrder: number;
|
|
1304
1327
|
};
|
|
1305
1328
|
|
|
1329
|
+
/**
|
|
1330
|
+
* 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.
|
|
1331
|
+
*/
|
|
1332
|
+
export type RemitImapMessageSpamReport = {
|
|
1333
|
+
/**
|
|
1334
|
+
* Timestamp (epoch millis) the report was made.
|
|
1335
|
+
*/
|
|
1336
|
+
reportedAt: number;
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1306
1339
|
/**
|
|
1307
1340
|
* Core message metadata for API responses
|
|
1308
1341
|
*/
|
|
@@ -1343,6 +1376,10 @@ export type RemitImapMessageSummaryResponse = {
|
|
|
1343
1376
|
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
1344
1377
|
*/
|
|
1345
1378
|
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Present when the user reported this message as spam and the report has not been undone. Backs the "Reported as spam · Undo" affordance.
|
|
1381
|
+
*/
|
|
1382
|
+
spamReport?: RemitImapMessageSpamReport;
|
|
1346
1383
|
};
|
|
1347
1384
|
|
|
1348
1385
|
/**
|
|
@@ -1838,6 +1875,38 @@ export type RemitImapSenderTrust = 'unknown' | 'wellknown' | 'vip';
|
|
|
1838
1875
|
*/
|
|
1839
1876
|
export type RemitImapSortOrder = 'asc' | 'desc';
|
|
1840
1877
|
|
|
1878
|
+
/**
|
|
1879
|
+
* 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.
|
|
1880
|
+
*/
|
|
1881
|
+
export type RemitImapSpamReportBulkResult = {
|
|
1882
|
+
/**
|
|
1883
|
+
* Number of items accepted for processing
|
|
1884
|
+
*/
|
|
1885
|
+
successCount: number;
|
|
1886
|
+
/**
|
|
1887
|
+
* Number of items rejected before processing
|
|
1888
|
+
*/
|
|
1889
|
+
failureCount: number;
|
|
1890
|
+
/**
|
|
1891
|
+
* One entry per message that failed, naming why. Absent or empty when every message succeeded.
|
|
1892
|
+
*/
|
|
1893
|
+
failures?: Array<RemitImapSpamReportFailure>;
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* One message's failure reason within a report-spam or not-spam bulk call.
|
|
1898
|
+
*/
|
|
1899
|
+
export type RemitImapSpamReportFailure = {
|
|
1900
|
+
/**
|
|
1901
|
+
* The message that failed
|
|
1902
|
+
*/
|
|
1903
|
+
messageId: Uuid;
|
|
1904
|
+
/**
|
|
1905
|
+
* 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.
|
|
1906
|
+
*/
|
|
1907
|
+
reason: string;
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1841
1910
|
/**
|
|
1842
1911
|
* Gmail-style star colors for message/thread marking
|
|
1843
1912
|
*/
|
|
@@ -2157,6 +2226,10 @@ export type RemitImapThreadMessageResponse = {
|
|
|
2157
2226
|
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2158
2227
|
*/
|
|
2159
2228
|
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2229
|
+
/**
|
|
2230
|
+
* 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.
|
|
2231
|
+
*/
|
|
2232
|
+
spamReport?: RemitImapMessageSpamReport;
|
|
2160
2233
|
};
|
|
2161
2234
|
|
|
2162
2235
|
/**
|
|
@@ -2701,6 +2774,10 @@ export type RemitImapMessageSummaryResponseWritable = {
|
|
|
2701
2774
|
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2702
2775
|
*/
|
|
2703
2776
|
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2777
|
+
/**
|
|
2778
|
+
* Present when the user reported this message as spam and the report has not been undone. Backs the "Reported as spam · Undo" affordance.
|
|
2779
|
+
*/
|
|
2780
|
+
spamReport?: RemitImapMessageSpamReport;
|
|
2704
2781
|
};
|
|
2705
2782
|
|
|
2706
2783
|
/**
|
|
@@ -2759,6 +2836,10 @@ export type RemitImapThreadMessageResponseWritable = {
|
|
|
2759
2836
|
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2760
2837
|
*/
|
|
2761
2838
|
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2839
|
+
/**
|
|
2840
|
+
* 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.
|
|
2841
|
+
*/
|
|
2842
|
+
spamReport?: RemitImapMessageSpamReport;
|
|
2762
2843
|
};
|
|
2763
2844
|
|
|
2764
2845
|
/**
|
|
@@ -3617,6 +3698,38 @@ export type MessageBulkOperationsMoveMessagesResponses = {
|
|
|
3617
3698
|
|
|
3618
3699
|
export type MessageBulkOperationsMoveMessagesResponse = MessageBulkOperationsMoveMessagesResponses[keyof MessageBulkOperationsMoveMessagesResponses];
|
|
3619
3700
|
|
|
3701
|
+
export type MessageBulkOperationsNotSpamData = {
|
|
3702
|
+
body: RemitImapBulkMessageInput;
|
|
3703
|
+
path?: never;
|
|
3704
|
+
query?: never;
|
|
3705
|
+
url: '/messages/not-spam';
|
|
3706
|
+
};
|
|
3707
|
+
|
|
3708
|
+
export type MessageBulkOperationsNotSpamResponses = {
|
|
3709
|
+
/**
|
|
3710
|
+
* The request has succeeded.
|
|
3711
|
+
*/
|
|
3712
|
+
200: RemitImapSpamReportBulkResult;
|
|
3713
|
+
};
|
|
3714
|
+
|
|
3715
|
+
export type MessageBulkOperationsNotSpamResponse = MessageBulkOperationsNotSpamResponses[keyof MessageBulkOperationsNotSpamResponses];
|
|
3716
|
+
|
|
3717
|
+
export type MessageBulkOperationsReportSpamData = {
|
|
3718
|
+
body: RemitImapBulkMessageInput;
|
|
3719
|
+
path?: never;
|
|
3720
|
+
query?: never;
|
|
3721
|
+
url: '/messages/report-spam';
|
|
3722
|
+
};
|
|
3723
|
+
|
|
3724
|
+
export type MessageBulkOperationsReportSpamResponses = {
|
|
3725
|
+
/**
|
|
3726
|
+
* The request has succeeded.
|
|
3727
|
+
*/
|
|
3728
|
+
200: RemitImapSpamReportBulkResult;
|
|
3729
|
+
};
|
|
3730
|
+
|
|
3731
|
+
export type MessageBulkOperationsReportSpamResponse = MessageBulkOperationsReportSpamResponses[keyof MessageBulkOperationsReportSpamResponses];
|
|
3732
|
+
|
|
3620
3733
|
export type MessageOperationsDescribeMessageData = {
|
|
3621
3734
|
body?: never;
|
|
3622
3735
|
path: {
|