@remit/api-http-client 0.0.14 → 0.0.16
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 +94 -2
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk.gen.ts +55 -1
- package/types.gen.ts +253 -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, mailboxDetailOperationsDeleteMailbox, mailboxDetailOperationsGetMailbox, mailboxDetailOperationsRenameMailbox, mailboxOperationsCreateMailbox, mailboxOperationsListMailboxes, meOperationsCreateExport, meOperationsDeleteMe, meOperationsGetExport, meOperationsListQuarantine, meOperationsListVipSuggestions, messageBulkOperationsCopyMessages, messageBulkOperationsDeleteMessages, messageBulkOperationsMoveMessages, messageBulkOperationsUpdateFlags, 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, 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, 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, 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';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Create a new email account
|
|
@@ -231,6 +231,81 @@ export const folderRoleOperationsAppointFolderRoleMutation = (options?: Partial<
|
|
|
231
231
|
return mutationOptions;
|
|
232
232
|
};
|
|
233
233
|
|
|
234
|
+
export const labelOperationsListLabelsQueryKey = (options: Options<LabelOperationsListLabelsData>) => createQueryKey('labelOperationsListLabels', options);
|
|
235
|
+
|
|
236
|
+
export const labelOperationsListLabelsOptions = (options: Options<LabelOperationsListLabelsData>) => queryOptions<LabelOperationsListLabelsResponse, DefaultError, LabelOperationsListLabelsResponse, ReturnType<typeof labelOperationsListLabelsQueryKey>>({
|
|
237
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
238
|
+
const { data } = await labelOperationsListLabels({
|
|
239
|
+
...options,
|
|
240
|
+
...queryKey[0],
|
|
241
|
+
signal,
|
|
242
|
+
throwOnError: true
|
|
243
|
+
});
|
|
244
|
+
return data;
|
|
245
|
+
},
|
|
246
|
+
queryKey: labelOperationsListLabelsQueryKey(options)
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
export const labelOperationsCreateLabelMutation = (options?: Partial<Options<LabelOperationsCreateLabelData>>): UseMutationOptions<LabelOperationsCreateLabelResponse, DefaultError, Options<LabelOperationsCreateLabelData>> => {
|
|
250
|
+
const mutationOptions: UseMutationOptions<LabelOperationsCreateLabelResponse, DefaultError, Options<LabelOperationsCreateLabelData>> = {
|
|
251
|
+
mutationFn: async (fnOptions) => {
|
|
252
|
+
const { data } = await labelOperationsCreateLabel({
|
|
253
|
+
...options,
|
|
254
|
+
...fnOptions,
|
|
255
|
+
throwOnError: true
|
|
256
|
+
});
|
|
257
|
+
return data;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
return mutationOptions;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Delete a label. Cascades in both directions (issue #26): every `MessageLabel` row for it is removed, and every filter whose `actionLabelId` is this label is deleted outright — never left dangling, never blocking the delete. The client is expected to confirm first, naming `LabelResponse.filterCount` as the number of filters that will go with it.
|
|
265
|
+
*/
|
|
266
|
+
export const labelDetailOperationsDeleteLabelMutation = (options?: Partial<Options<LabelDetailOperationsDeleteLabelData>>): UseMutationOptions<LabelDetailOperationsDeleteLabelResponse, DefaultError, Options<LabelDetailOperationsDeleteLabelData>> => {
|
|
267
|
+
const mutationOptions: UseMutationOptions<LabelDetailOperationsDeleteLabelResponse, DefaultError, Options<LabelDetailOperationsDeleteLabelData>> = {
|
|
268
|
+
mutationFn: async (fnOptions) => {
|
|
269
|
+
const { data } = await labelDetailOperationsDeleteLabel({
|
|
270
|
+
...options,
|
|
271
|
+
...fnOptions,
|
|
272
|
+
throwOnError: true
|
|
273
|
+
});
|
|
274
|
+
return data;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
return mutationOptions;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export const labelDetailOperationsGetLabelQueryKey = (options: Options<LabelDetailOperationsGetLabelData>) => createQueryKey('labelDetailOperationsGetLabel', options);
|
|
281
|
+
|
|
282
|
+
export const labelDetailOperationsGetLabelOptions = (options: Options<LabelDetailOperationsGetLabelData>) => queryOptions<LabelDetailOperationsGetLabelResponse, DefaultError, LabelDetailOperationsGetLabelResponse, ReturnType<typeof labelDetailOperationsGetLabelQueryKey>>({
|
|
283
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
284
|
+
const { data } = await labelDetailOperationsGetLabel({
|
|
285
|
+
...options,
|
|
286
|
+
...queryKey[0],
|
|
287
|
+
signal,
|
|
288
|
+
throwOnError: true
|
|
289
|
+
});
|
|
290
|
+
return data;
|
|
291
|
+
},
|
|
292
|
+
queryKey: labelDetailOperationsGetLabelQueryKey(options)
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
export const labelDetailOperationsUpdateLabelMutation = (options?: Partial<Options<LabelDetailOperationsUpdateLabelData>>): UseMutationOptions<LabelDetailOperationsUpdateLabelResponse, DefaultError, Options<LabelDetailOperationsUpdateLabelData>> => {
|
|
296
|
+
const mutationOptions: UseMutationOptions<LabelDetailOperationsUpdateLabelResponse, DefaultError, Options<LabelDetailOperationsUpdateLabelData>> = {
|
|
297
|
+
mutationFn: async (fnOptions) => {
|
|
298
|
+
const { data } = await labelDetailOperationsUpdateLabel({
|
|
299
|
+
...options,
|
|
300
|
+
...fnOptions,
|
|
301
|
+
throwOnError: true
|
|
302
|
+
});
|
|
303
|
+
return data;
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
return mutationOptions;
|
|
307
|
+
};
|
|
308
|
+
|
|
234
309
|
export const mailboxOperationsListMailboxesQueryKey = (options: Options<MailboxOperationsListMailboxesData>) => createQueryKey('mailboxOperationsListMailboxes', options);
|
|
235
310
|
|
|
236
311
|
export const mailboxOperationsListMailboxesOptions = (options: Options<MailboxOperationsListMailboxesData>) => queryOptions<MailboxOperationsListMailboxesResponse, DefaultError, MailboxOperationsListMailboxesResponse, ReturnType<typeof mailboxOperationsListMailboxesQueryKey>>({
|
|
@@ -626,6 +701,23 @@ export const messageBulkOperationsUpdateFlagsMutation = (options?: Partial<Optio
|
|
|
626
701
|
return mutationOptions;
|
|
627
702
|
};
|
|
628
703
|
|
|
704
|
+
/**
|
|
705
|
+
* Apply or remove a label on multiple messages — the manual "just these" scope (RFC 034 recap, issue #26). `appliedByFilterId` stays absent on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies.
|
|
706
|
+
*/
|
|
707
|
+
export const messageBulkOperationsUpdateMessageLabelsMutation = (options?: Partial<Options<MessageBulkOperationsUpdateMessageLabelsData>>): UseMutationOptions<MessageBulkOperationsUpdateMessageLabelsResponse, DefaultError, Options<MessageBulkOperationsUpdateMessageLabelsData>> => {
|
|
708
|
+
const mutationOptions: UseMutationOptions<MessageBulkOperationsUpdateMessageLabelsResponse, DefaultError, Options<MessageBulkOperationsUpdateMessageLabelsData>> = {
|
|
709
|
+
mutationFn: async (fnOptions) => {
|
|
710
|
+
const { data } = await messageBulkOperationsUpdateMessageLabels({
|
|
711
|
+
...options,
|
|
712
|
+
...fnOptions,
|
|
713
|
+
throwOnError: true
|
|
714
|
+
});
|
|
715
|
+
return data;
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
return mutationOptions;
|
|
719
|
+
};
|
|
720
|
+
|
|
629
721
|
export const messageBulkOperationsMoveMessagesMutation = (options?: Partial<Options<MessageBulkOperationsMoveMessagesData>>): UseMutationOptions<MessageBulkOperationsMoveMessagesResponse, DefaultError, Options<MessageBulkOperationsMoveMessagesData>> => {
|
|
630
722
|
const mutationOptions: UseMutationOptions<MessageBulkOperationsMoveMessagesResponse, DefaultError, Options<MessageBulkOperationsMoveMessagesData>> = {
|
|
631
723
|
mutationFn: async (fnOptions) => {
|
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, mailboxDetailOperationsDeleteMailbox, mailboxDetailOperationsGetMailbox, mailboxDetailOperationsRenameMailbox, mailboxOperationsCreateMailbox, mailboxOperationsListMailboxes, meOperationsCreateExport, meOperationsDeleteMe, meOperationsGetExport, meOperationsListQuarantine, meOperationsListVipSuggestions, messageBulkOperationsCopyMessages, messageBulkOperationsDeleteMessages, messageBulkOperationsMoveMessages, messageBulkOperationsUpdateFlags, 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, 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, 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, RemitImapCreateMailboxInput, RemitImapCreateOrganizeJobResponse, RemitImapCreateOutboxMessageInput, RemitImapDeleteAccountConfigResponse, RemitImapDeleteAccountResponse, RemitImapDeleteMeInput, RemitImapDeleteMessagesInput, RemitImapDescribeMessageResponse, RemitImapDescribeMessageResponseWritable, RemitImapEmptyTrashResponse, RemitImapEnvelopeAddressResponse, RemitImapEnvelopeResponse, RemitImapFilterClause, RemitImapFilterClauseField, RemitImapFilterMatchOperator, RemitImapFilterResponse, RemitImapFilterResponseWritable, RemitImapFilterScope, RemitImapFilterState, RemitImapFolderAppointment, RemitImapMailboxResponse, RemitImapMailboxResponseWritable, RemitImapMailboxSpecialUse, RemitImapMailboxSyncProgress, 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, 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, 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';
|
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, Options as Options2, 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, 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, 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, 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> = Options2<TData, ThrowOnError> & {
|
|
8
8
|
/**
|
|
@@ -135,6 +135,47 @@ export const folderRoleOperationsAppointFolderRole = <ThrowOnError extends boole
|
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
+
export const labelOperationsListLabels = <ThrowOnError extends boolean = false>(options: Options<LabelOperationsListLabelsData, ThrowOnError>) => (options.client ?? client).get<LabelOperationsListLabelsResponses, unknown, ThrowOnError>({
|
|
139
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
140
|
+
url: '/accounts/{accountId}/labels',
|
|
141
|
+
...options
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export const labelOperationsCreateLabel = <ThrowOnError extends boolean = false>(options: Options<LabelOperationsCreateLabelData, ThrowOnError>) => (options.client ?? client).post<LabelOperationsCreateLabelResponses, unknown, ThrowOnError>({
|
|
145
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
146
|
+
url: '/accounts/{accountId}/labels',
|
|
147
|
+
...options,
|
|
148
|
+
headers: {
|
|
149
|
+
'Content-Type': 'application/json',
|
|
150
|
+
...options.headers
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Delete a label. Cascades in both directions (issue #26): every `MessageLabel` row for it is removed, and every filter whose `actionLabelId` is this label is deleted outright — never left dangling, never blocking the delete. The client is expected to confirm first, naming `LabelResponse.filterCount` as the number of filters that will go with it.
|
|
156
|
+
*/
|
|
157
|
+
export const labelDetailOperationsDeleteLabel = <ThrowOnError extends boolean = false>(options: Options<LabelDetailOperationsDeleteLabelData, ThrowOnError>) => (options.client ?? client).delete<LabelDetailOperationsDeleteLabelResponses, unknown, ThrowOnError>({
|
|
158
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
159
|
+
url: '/accounts/{accountId}/labels/{labelId}',
|
|
160
|
+
...options
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
export const labelDetailOperationsGetLabel = <ThrowOnError extends boolean = false>(options: Options<LabelDetailOperationsGetLabelData, ThrowOnError>) => (options.client ?? client).get<LabelDetailOperationsGetLabelResponses, unknown, ThrowOnError>({
|
|
164
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
165
|
+
url: '/accounts/{accountId}/labels/{labelId}',
|
|
166
|
+
...options
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
export const labelDetailOperationsUpdateLabel = <ThrowOnError extends boolean = false>(options: Options<LabelDetailOperationsUpdateLabelData, ThrowOnError>) => (options.client ?? client).patch<LabelDetailOperationsUpdateLabelResponses, unknown, ThrowOnError>({
|
|
170
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
171
|
+
url: '/accounts/{accountId}/labels/{labelId}',
|
|
172
|
+
...options,
|
|
173
|
+
headers: {
|
|
174
|
+
'Content-Type': 'application/json',
|
|
175
|
+
...options.headers
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
138
179
|
export const mailboxOperationsListMailboxes = <ThrowOnError extends boolean = false>(options: Options<MailboxOperationsListMailboxesData, ThrowOnError>) => (options.client ?? client).get<MailboxOperationsListMailboxesResponses, unknown, ThrowOnError>({
|
|
139
180
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
140
181
|
url: '/accounts/{accountId}/mailboxes',
|
|
@@ -363,6 +404,19 @@ export const messageBulkOperationsUpdateFlags = <ThrowOnError extends boolean =
|
|
|
363
404
|
}
|
|
364
405
|
});
|
|
365
406
|
|
|
407
|
+
/**
|
|
408
|
+
* Apply or remove a label on multiple messages — the manual "just these" scope (RFC 034 recap, issue #26). `appliedByFilterId` stays absent on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies.
|
|
409
|
+
*/
|
|
410
|
+
export const messageBulkOperationsUpdateMessageLabels = <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsUpdateMessageLabelsData, ThrowOnError>) => (options.client ?? client).post<MessageBulkOperationsUpdateMessageLabelsResponses, unknown, ThrowOnError>({
|
|
411
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
412
|
+
url: '/messages/labels',
|
|
413
|
+
...options,
|
|
414
|
+
headers: {
|
|
415
|
+
'Content-Type': 'application/json',
|
|
416
|
+
...options.headers
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
|
|
366
420
|
export const messageBulkOperationsMoveMessages = <ThrowOnError extends boolean = false>(options: Options<MessageBulkOperationsMoveMessagesData, ThrowOnError>) => (options.client ?? client).post<MessageBulkOperationsMoveMessagesResponses, unknown, ThrowOnError>({
|
|
367
421
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
368
422
|
url: '/messages/move',
|
package/types.gen.ts
CHANGED
|
@@ -716,6 +716,20 @@ export type RemitImapCreateFilterInput = {
|
|
|
716
716
|
anchorMessageId?: Uuid;
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
+
/**
|
|
720
|
+
* Input for creating a label (RFC 030). `normalizedName` is server-derived from `name` and excluded by its Read-only visibility.
|
|
721
|
+
*/
|
|
722
|
+
export type RemitImapCreateLabelInput = {
|
|
723
|
+
/**
|
|
724
|
+
* Human-readable label name (display)
|
|
725
|
+
*/
|
|
726
|
+
name: String140;
|
|
727
|
+
/**
|
|
728
|
+
* Display color for this label
|
|
729
|
+
*/
|
|
730
|
+
color: RemitImapLabelColor;
|
|
731
|
+
};
|
|
732
|
+
|
|
719
733
|
/**
|
|
720
734
|
* Input for creating a new mailbox
|
|
721
735
|
*/
|
|
@@ -1062,6 +1076,53 @@ export type RemitImapFolderAppointment = {
|
|
|
1062
1076
|
mailboxId?: Uuid;
|
|
1063
1077
|
};
|
|
1064
1078
|
|
|
1079
|
+
/**
|
|
1080
|
+
* Manual bulk label action (issue #26) — apply or remove a label on a `just these` selection. Never sets `appliedByFilterId`: that field is reserved for filter-driven applies (RFC 034 Decision 3.3).
|
|
1081
|
+
*/
|
|
1082
|
+
export type RemitImapLabelAction = 'Apply' | 'Remove';
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Display color for a user-defined Label (RFC 030).
|
|
1086
|
+
*/
|
|
1087
|
+
export type RemitImapLabelColor = 'Default' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Teal' | 'Blue' | 'Purple' | 'Gray';
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Label item returned by list/get/create/update operations (RFC 030). `filterCount` is computed at read time so a client can name the blast radius before confirming a delete — the delete itself never blocks on it (issue #26).
|
|
1091
|
+
*/
|
|
1092
|
+
export type RemitImapLabelResponse = {
|
|
1093
|
+
/**
|
|
1094
|
+
* Primary identifier
|
|
1095
|
+
*/
|
|
1096
|
+
labelId: Uuid;
|
|
1097
|
+
/**
|
|
1098
|
+
* Owning account configuration
|
|
1099
|
+
*/
|
|
1100
|
+
accountConfigId: Uuid;
|
|
1101
|
+
/**
|
|
1102
|
+
* Human-readable label name (display)
|
|
1103
|
+
*/
|
|
1104
|
+
name: String140;
|
|
1105
|
+
/**
|
|
1106
|
+
* Display color for this label
|
|
1107
|
+
*/
|
|
1108
|
+
color: RemitImapLabelColor;
|
|
1109
|
+
readonly createdAt: number;
|
|
1110
|
+
readonly updatedAt: number;
|
|
1111
|
+
/**
|
|
1112
|
+
* Number of the account's filters whose `actionLabelId` is this label. Deleting the label deletes every one of them (issue #26) — a client shows this count in its delete confirmation.
|
|
1113
|
+
*/
|
|
1114
|
+
filterCount: number;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* The id, name, and color of a label applied to a message — embedded on message/thread read responses (issue #26). Never the full LabelResponse: a read-time attachment carries no filterCount.
|
|
1119
|
+
*/
|
|
1120
|
+
export type RemitImapLabelSummaryResponse = {
|
|
1121
|
+
labelId: Uuid;
|
|
1122
|
+
name: String140;
|
|
1123
|
+
color: RemitImapLabelColor;
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1065
1126
|
/**
|
|
1066
1127
|
* Mailbox item returned by list/get operations. The mute flag and the display-name override are sourced from per-mailbox AccountSetting rows (RFC 032), not the Mailbox entity, but are surfaced here so the response shape is unchanged. The canonical role a folder fills is not per-mailbox state — see AccountResponse.folderAppointments (RFC 032 exclusive-folder-appointment).
|
|
1067
1128
|
*/
|
|
@@ -1114,6 +1175,10 @@ export type RemitImapMailboxResponse = {
|
|
|
1114
1175
|
* Timestamp of the last successful message sync
|
|
1115
1176
|
*/
|
|
1116
1177
|
readonly lastMessageSyncAt: number;
|
|
1178
|
+
/**
|
|
1179
|
+
* Sync status for mailbox operations (create, rename, delete)
|
|
1180
|
+
*/
|
|
1181
|
+
syncStatus?: RemitImapMailboxSyncStatus;
|
|
1117
1182
|
/**
|
|
1118
1183
|
* Denormalized list of IMAP SPECIAL-USE designations (RFC 6154). Populated from the same `\Sent`, `\Drafts`, etc. attributes the server reports during LIST. Stored on the row to avoid an N+1 join when listing mailboxes.
|
|
1119
1184
|
*/
|
|
@@ -1169,6 +1234,11 @@ export type RemitImapMailboxSyncProgress = {
|
|
|
1169
1234
|
lastSyncedAt?: number;
|
|
1170
1235
|
};
|
|
1171
1236
|
|
|
1237
|
+
/**
|
|
1238
|
+
* Sync status for mailbox operations
|
|
1239
|
+
*/
|
|
1240
|
+
export type RemitImapMailboxSyncStatus = 'synced' | 'pending' | 'failed' | 'deleting';
|
|
1241
|
+
|
|
1172
1242
|
/**
|
|
1173
1243
|
* Top-level MIME media types per RFC 2046
|
|
1174
1244
|
*/
|
|
@@ -1265,6 +1335,10 @@ export type RemitImapMessageSummaryResponse = {
|
|
|
1265
1335
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
1266
1336
|
*/
|
|
1267
1337
|
autoMoved?: RemitImapAutoMovedInfo;
|
|
1338
|
+
/**
|
|
1339
|
+
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
1340
|
+
*/
|
|
1341
|
+
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
1268
1342
|
};
|
|
1269
1343
|
|
|
1270
1344
|
/**
|
|
@@ -2071,6 +2145,10 @@ export type RemitImapThreadMessageResponse = {
|
|
|
2071
2145
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
2072
2146
|
*/
|
|
2073
2147
|
autoMoved?: RemitImapAutoMovedInfo;
|
|
2148
|
+
/**
|
|
2149
|
+
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2150
|
+
*/
|
|
2151
|
+
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2074
2152
|
};
|
|
2075
2153
|
|
|
2076
2154
|
/**
|
|
@@ -2285,6 +2363,38 @@ export type RemitImapUpdateFlagsInput = {
|
|
|
2285
2363
|
starColor?: RemitImapStarColor;
|
|
2286
2364
|
};
|
|
2287
2365
|
|
|
2366
|
+
/**
|
|
2367
|
+
* Input for updating a label (RFC 030). Only `name` and `color` are mutable.
|
|
2368
|
+
*/
|
|
2369
|
+
export type RemitImapUpdateLabelInput = {
|
|
2370
|
+
/**
|
|
2371
|
+
* Human-readable label name (display)
|
|
2372
|
+
*/
|
|
2373
|
+
name?: String140;
|
|
2374
|
+
/**
|
|
2375
|
+
* Display color for this label
|
|
2376
|
+
*/
|
|
2377
|
+
color?: RemitImapLabelColor;
|
|
2378
|
+
};
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* Input for a manual bulk label action — the "just these" scope (RFC 034 recap). `appliedByFilterId` never gets set on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies (RFC 034 Decision 3.3).
|
|
2382
|
+
*/
|
|
2383
|
+
export type RemitImapUpdateMessageLabelsInput = {
|
|
2384
|
+
/**
|
|
2385
|
+
* List of message IDs to operate on
|
|
2386
|
+
*/
|
|
2387
|
+
messageIds: Array<Uuid>;
|
|
2388
|
+
/**
|
|
2389
|
+
* Label to apply or remove
|
|
2390
|
+
*/
|
|
2391
|
+
labelId: Uuid;
|
|
2392
|
+
/**
|
|
2393
|
+
* Whether to apply or remove the label
|
|
2394
|
+
*/
|
|
2395
|
+
action: RemitImapLabelAction;
|
|
2396
|
+
};
|
|
2397
|
+
|
|
2288
2398
|
/**
|
|
2289
2399
|
* Input for updating a draft outbox message
|
|
2290
2400
|
*/
|
|
@@ -2528,6 +2638,24 @@ export type RemitImapFilterResponseWritable = {
|
|
|
2528
2638
|
actionMailboxId: string;
|
|
2529
2639
|
};
|
|
2530
2640
|
|
|
2641
|
+
/**
|
|
2642
|
+
* Label item returned by list/get/create/update operations (RFC 030). `filterCount` is computed at read time so a client can name the blast radius before confirming a delete — the delete itself never blocks on it (issue #26).
|
|
2643
|
+
*/
|
|
2644
|
+
export type RemitImapLabelResponseWritable = {
|
|
2645
|
+
/**
|
|
2646
|
+
* Human-readable label name (display)
|
|
2647
|
+
*/
|
|
2648
|
+
name: String140;
|
|
2649
|
+
/**
|
|
2650
|
+
* Display color for this label
|
|
2651
|
+
*/
|
|
2652
|
+
color: RemitImapLabelColor;
|
|
2653
|
+
/**
|
|
2654
|
+
* Number of the account's filters whose `actionLabelId` is this label. Deleting the label deletes every one of them (issue #26) — a client shows this count in its delete confirmation.
|
|
2655
|
+
*/
|
|
2656
|
+
filterCount: number;
|
|
2657
|
+
};
|
|
2658
|
+
|
|
2531
2659
|
/**
|
|
2532
2660
|
* Mailbox item returned by list/get operations. The mute flag and the display-name override are sourced from per-mailbox AccountSetting rows (RFC 032), not the Mailbox entity, but are surfaced here so the response shape is unchanged. The canonical role a folder fills is not per-mailbox state — see AccountResponse.folderAppointments (RFC 032 exclusive-folder-appointment).
|
|
2533
2661
|
*/
|
|
@@ -2558,6 +2686,10 @@ export type RemitImapMessageSummaryResponseWritable = {
|
|
|
2558
2686
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
2559
2687
|
*/
|
|
2560
2688
|
autoMoved?: RemitImapAutoMovedInfo;
|
|
2689
|
+
/**
|
|
2690
|
+
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2691
|
+
*/
|
|
2692
|
+
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2561
2693
|
};
|
|
2562
2694
|
|
|
2563
2695
|
/**
|
|
@@ -2608,6 +2740,10 @@ export type RemitImapThreadMessageResponseWritable = {
|
|
|
2608
2740
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
2609
2741
|
*/
|
|
2610
2742
|
autoMoved?: RemitImapAutoMovedInfo;
|
|
2743
|
+
/**
|
|
2744
|
+
* Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied.
|
|
2745
|
+
*/
|
|
2746
|
+
labels?: Array<RemitImapLabelSummaryResponse>;
|
|
2611
2747
|
};
|
|
2612
2748
|
|
|
2613
2749
|
/**
|
|
@@ -2847,6 +2983,107 @@ export type FolderRoleOperationsAppointFolderRoleResponses = {
|
|
|
2847
2983
|
|
|
2848
2984
|
export type FolderRoleOperationsAppointFolderRoleResponse = FolderRoleOperationsAppointFolderRoleResponses[keyof FolderRoleOperationsAppointFolderRoleResponses];
|
|
2849
2985
|
|
|
2986
|
+
export type LabelOperationsListLabelsData = {
|
|
2987
|
+
body?: never;
|
|
2988
|
+
path: {
|
|
2989
|
+
accountId: Uuid;
|
|
2990
|
+
};
|
|
2991
|
+
query?: {
|
|
2992
|
+
continuationToken?: string;
|
|
2993
|
+
};
|
|
2994
|
+
url: '/accounts/{accountId}/labels';
|
|
2995
|
+
};
|
|
2996
|
+
|
|
2997
|
+
export type LabelOperationsListLabelsResponses = {
|
|
2998
|
+
/**
|
|
2999
|
+
* The request has succeeded.
|
|
3000
|
+
*/
|
|
3001
|
+
200: {
|
|
3002
|
+
/**
|
|
3003
|
+
* Opaque, server-minted cursor: absent means the first (or last) page, present means resume from here. Echo it back unchanged to fetch the next page. Every listing endpoint that accepts it rejects a token it cannot decode with 400 ValidationError rather than silently restarting from the first page (#136, #172).
|
|
3004
|
+
*/
|
|
3005
|
+
continuationToken?: String800;
|
|
3006
|
+
items: Array<RemitImapLabelResponse>;
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
|
|
3010
|
+
export type LabelOperationsListLabelsResponse = LabelOperationsListLabelsResponses[keyof LabelOperationsListLabelsResponses];
|
|
3011
|
+
|
|
3012
|
+
export type LabelOperationsCreateLabelData = {
|
|
3013
|
+
body: RemitImapCreateLabelInput;
|
|
3014
|
+
path: {
|
|
3015
|
+
accountId: Uuid;
|
|
3016
|
+
};
|
|
3017
|
+
query?: never;
|
|
3018
|
+
url: '/accounts/{accountId}/labels';
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
export type LabelOperationsCreateLabelResponses = {
|
|
3022
|
+
/**
|
|
3023
|
+
* The request has succeeded.
|
|
3024
|
+
*/
|
|
3025
|
+
200: RemitImapLabelResponse;
|
|
3026
|
+
};
|
|
3027
|
+
|
|
3028
|
+
export type LabelOperationsCreateLabelResponse = LabelOperationsCreateLabelResponses[keyof LabelOperationsCreateLabelResponses];
|
|
3029
|
+
|
|
3030
|
+
export type LabelDetailOperationsDeleteLabelData = {
|
|
3031
|
+
body?: never;
|
|
3032
|
+
path: {
|
|
3033
|
+
accountId: Uuid;
|
|
3034
|
+
labelId: Uuid;
|
|
3035
|
+
};
|
|
3036
|
+
query?: never;
|
|
3037
|
+
url: '/accounts/{accountId}/labels/{labelId}';
|
|
3038
|
+
};
|
|
3039
|
+
|
|
3040
|
+
export type LabelDetailOperationsDeleteLabelResponses = {
|
|
3041
|
+
/**
|
|
3042
|
+
* There is no content to send for this request, but the headers may be useful.
|
|
3043
|
+
*/
|
|
3044
|
+
204: void;
|
|
3045
|
+
};
|
|
3046
|
+
|
|
3047
|
+
export type LabelDetailOperationsDeleteLabelResponse = LabelDetailOperationsDeleteLabelResponses[keyof LabelDetailOperationsDeleteLabelResponses];
|
|
3048
|
+
|
|
3049
|
+
export type LabelDetailOperationsGetLabelData = {
|
|
3050
|
+
body?: never;
|
|
3051
|
+
path: {
|
|
3052
|
+
accountId: Uuid;
|
|
3053
|
+
labelId: Uuid;
|
|
3054
|
+
};
|
|
3055
|
+
query?: never;
|
|
3056
|
+
url: '/accounts/{accountId}/labels/{labelId}';
|
|
3057
|
+
};
|
|
3058
|
+
|
|
3059
|
+
export type LabelDetailOperationsGetLabelResponses = {
|
|
3060
|
+
/**
|
|
3061
|
+
* The request has succeeded.
|
|
3062
|
+
*/
|
|
3063
|
+
200: RemitImapLabelResponse;
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
export type LabelDetailOperationsGetLabelResponse = LabelDetailOperationsGetLabelResponses[keyof LabelDetailOperationsGetLabelResponses];
|
|
3067
|
+
|
|
3068
|
+
export type LabelDetailOperationsUpdateLabelData = {
|
|
3069
|
+
body: RemitImapUpdateLabelInput;
|
|
3070
|
+
path: {
|
|
3071
|
+
accountId: Uuid;
|
|
3072
|
+
labelId: Uuid;
|
|
3073
|
+
};
|
|
3074
|
+
query?: never;
|
|
3075
|
+
url: '/accounts/{accountId}/labels/{labelId}';
|
|
3076
|
+
};
|
|
3077
|
+
|
|
3078
|
+
export type LabelDetailOperationsUpdateLabelResponses = {
|
|
3079
|
+
/**
|
|
3080
|
+
* The request has succeeded.
|
|
3081
|
+
*/
|
|
3082
|
+
200: RemitImapLabelResponse;
|
|
3083
|
+
};
|
|
3084
|
+
|
|
3085
|
+
export type LabelDetailOperationsUpdateLabelResponse = LabelDetailOperationsUpdateLabelResponses[keyof LabelDetailOperationsUpdateLabelResponses];
|
|
3086
|
+
|
|
2850
3087
|
export type MailboxOperationsListMailboxesData = {
|
|
2851
3088
|
body?: never;
|
|
2852
3089
|
path: {
|
|
@@ -3333,6 +3570,22 @@ export type MessageBulkOperationsUpdateFlagsResponses = {
|
|
|
3333
3570
|
|
|
3334
3571
|
export type MessageBulkOperationsUpdateFlagsResponse = MessageBulkOperationsUpdateFlagsResponses[keyof MessageBulkOperationsUpdateFlagsResponses];
|
|
3335
3572
|
|
|
3573
|
+
export type MessageBulkOperationsUpdateMessageLabelsData = {
|
|
3574
|
+
body: RemitImapUpdateMessageLabelsInput;
|
|
3575
|
+
path?: never;
|
|
3576
|
+
query?: never;
|
|
3577
|
+
url: '/messages/labels';
|
|
3578
|
+
};
|
|
3579
|
+
|
|
3580
|
+
export type MessageBulkOperationsUpdateMessageLabelsResponses = {
|
|
3581
|
+
/**
|
|
3582
|
+
* The request has succeeded.
|
|
3583
|
+
*/
|
|
3584
|
+
200: RemitImapMessageBulkOperationResult;
|
|
3585
|
+
};
|
|
3586
|
+
|
|
3587
|
+
export type MessageBulkOperationsUpdateMessageLabelsResponse = MessageBulkOperationsUpdateMessageLabelsResponses[keyof MessageBulkOperationsUpdateMessageLabelsResponses];
|
|
3588
|
+
|
|
3336
3589
|
export type MessageBulkOperationsMoveMessagesData = {
|
|
3337
3590
|
body: RemitImapMoveMessagesInput;
|
|
3338
3591
|
path?: never;
|