@remit/api-http-client 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@tanstack/react-query.gen.d.ts +1363 -0
- package/{@tanstack/react-query.gen.ts → dist/@tanstack/react-query.gen.js} +298 -300
- package/dist/client/client.gen.d.ts +2 -0
- package/dist/client/client.gen.js +216 -0
- package/{client/index.ts → dist/client/index.d.ts} +2 -19
- package/dist/client/index.js +6 -0
- package/dist/client/types.gen.d.ts +120 -0
- package/dist/client/types.gen.js +2 -0
- package/dist/client/utils.gen.d.ts +37 -0
- package/dist/client/utils.gen.js +228 -0
- package/{client.gen.ts → dist/client.gen.d.ts} +2 -6
- package/dist/client.gen.js +3 -0
- package/dist/core/auth.gen.d.ts +25 -0
- package/dist/core/auth.gen.js +14 -0
- package/dist/core/bodySerializer.gen.d.ts +25 -0
- package/dist/core/bodySerializer.gen.js +57 -0
- package/dist/core/params.gen.d.ts +43 -0
- package/dist/core/params.gen.js +109 -0
- package/dist/core/pathSerializer.gen.d.ts +33 -0
- package/dist/core/pathSerializer.gen.js +106 -0
- package/dist/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/core/queryKeySerializer.gen.js +92 -0
- package/dist/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/core/serverSentEvents.gen.js +132 -0
- package/dist/core/types.gen.d.ts +83 -0
- package/dist/core/types.gen.js +2 -0
- package/dist/core/utils.gen.d.ts +19 -0
- package/dist/core/utils.gen.js +87 -0
- package/{index.ts → dist/index.d.ts} +2 -4
- package/dist/index.js +2 -0
- package/dist/sdk.gen.d.ts +444 -0
- package/dist/sdk.gen.js +935 -0
- package/{types.gen.ts → dist/types.gen.d.ts} +602 -634
- package/dist/types.gen.js +2 -0
- package/package.json +19 -3
- package/client/client.gen.ts +0 -277
- package/client/types.gen.ts +0 -218
- package/client/utils.gen.ts +0 -316
- package/core/auth.gen.ts +0 -48
- package/core/bodySerializer.gen.ts +0 -82
- package/core/params.gen.ts +0 -178
- package/core/pathSerializer.gen.ts +0 -171
- package/core/queryKeySerializer.gen.ts +0 -117
- package/core/serverSentEvents.gen.ts +0 -242
- package/core/types.gen.ts +0 -110
- package/core/utils.gen.ts +0 -140
- package/sdk.gen.ts +0 -959
|
@@ -0,0 +1,1363 @@
|
|
|
1
|
+
import { type UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import { type Options } from '../sdk.gen.js';
|
|
3
|
+
import type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountError, AccountDetailOperationsDeleteAccountResponse, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountError, AccountDetailOperationsUpdateAccountResponse, AccountOperationsCreateAccountData, AccountOperationsCreateAccountError, AccountOperationsCreateAccountResponse, AccountOperationsTestConnectionData, AccountOperationsTestConnectionError, AccountOperationsTestConnectionResponse, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressError, AddressDetailOperationsUpdateAddressResponse, AddressOperationsSearchAddressesData, CalendarDetailOperationsDeleteCalendarData, CalendarDetailOperationsDeleteCalendarError, CalendarDetailOperationsDeleteCalendarResponse, CalendarDetailOperationsGetCalendarData, CalendarDetailOperationsGetCalendarFeedData, CalendarDetailOperationsPutCalendarFeedData, CalendarDetailOperationsPutCalendarFeedError, CalendarDetailOperationsPutCalendarFeedResponse, CalendarDetailOperationsRevokeCalendarFeedData, CalendarDetailOperationsRevokeCalendarFeedError, CalendarDetailOperationsRevokeCalendarFeedResponse, CalendarDetailOperationsUpdateCalendarData, CalendarDetailOperationsUpdateCalendarError, CalendarDetailOperationsUpdateCalendarResponse, CalendarEventDetailOperationsDeleteCalendarEventData, CalendarEventDetailOperationsDeleteCalendarEventError, CalendarEventDetailOperationsDeleteCalendarEventResponse, CalendarEventDetailOperationsGetCalendarEventData, CalendarEventDetailOperationsGetCalendarEventError, CalendarEventDetailOperationsUpdateCalendarEventData, CalendarEventDetailOperationsUpdateCalendarEventError, CalendarEventDetailOperationsUpdateCalendarEventResponse, CalendarEventOperationsCreateCalendarEventData, CalendarEventOperationsCreateCalendarEventError, CalendarEventOperationsCreateCalendarEventResponse, CalendarEventOperationsListCalendarEventsData, CalendarEventOperationsListCalendarEventsError, CalendarFeedOperationsGetCalendarFeedIcalData, CalendarFreeBusyOperationsListCalendarFreeBusyData, CalendarFreeBusyOperationsListCalendarFreeBusyError, CalendarOperationsCreateCalendarData, CalendarOperationsCreateCalendarError, CalendarOperationsCreateCalendarResponse, CalendarOperationsListCalendarsData, CalendarSuggestionActionOperationsAcceptCalendarSuggestionData, CalendarSuggestionActionOperationsAcceptCalendarSuggestionError, CalendarSuggestionActionOperationsAcceptCalendarSuggestionResponse, CalendarSuggestionActionOperationsDeclineCalendarSuggestionData, CalendarSuggestionActionOperationsDeclineCalendarSuggestionError, CalendarSuggestionActionOperationsDeclineCalendarSuggestionResponse, CalendarSuggestionActionOperationsDismissCalendarSuggestionData, CalendarSuggestionActionOperationsDismissCalendarSuggestionError, CalendarSuggestionActionOperationsDismissCalendarSuggestionResponse, CalendarSuggestionActionOperationsReopenCalendarSuggestionData, CalendarSuggestionActionOperationsReopenCalendarSuggestionError, CalendarSuggestionActionOperationsReopenCalendarSuggestionResponse, CalendarSuggestionOperationsListCalendarSuggestionsData, CalendarSuggestionOperationsListCalendarSuggestionsError, CalendarTaskDetailOperationsDeleteCalendarTaskData, CalendarTaskDetailOperationsDeleteCalendarTaskError, CalendarTaskDetailOperationsDeleteCalendarTaskResponse, CalendarTaskDetailOperationsGetCalendarTaskData, CalendarTaskDetailOperationsUpdateCalendarTaskData, CalendarTaskDetailOperationsUpdateCalendarTaskError, CalendarTaskDetailOperationsUpdateCalendarTaskResponse, CalendarTaskOperationsCreateCalendarTaskData, CalendarTaskOperationsCreateCalendarTaskError, CalendarTaskOperationsCreateCalendarTaskResponse, CalendarTaskOperationsListCalendarTasksData, CalendarTaskOperationsListCalendarTasksError, ConfigOperationsExportConfigData, ConfigOperationsGetConfigData, ConfigOperationsImportConfigData, ConfigOperationsImportConfigError, ConfigOperationsImportConfigResponse, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterError, FilterDetailOperationsDeleteFilterResponse, FilterDetailOperationsGetFilterData, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterError, FilterDetailOperationsUpdateFilterResponse, FilterOperationsCreateFilterData, FilterOperationsCreateFilterError, FilterOperationsCreateFilterResponse, FilterOperationsListFiltersData, FilterOperationsListFiltersError, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleError, FolderRoleOperationsAppointFolderRoleResponse, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelError, LabelDetailOperationsDeleteLabelResponse, LabelDetailOperationsGetLabelData, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelError, LabelDetailOperationsUpdateLabelResponse, LabelOperationsCreateLabelData, LabelOperationsCreateLabelError, LabelOperationsCreateLabelResponse, LabelOperationsListLabelsData, LabelOperationsListLabelsError, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxError, MailboxDetailOperationsDeleteMailboxResponse, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxError, MailboxDetailOperationsRenameMailboxResponse, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxError, MailboxOperationsCreateMailboxResponse, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesError, MeOperationsCreateExportData, MeOperationsCreateExportError, MeOperationsCreateExportResponse, MeOperationsDeleteMeData, MeOperationsDeleteMeError, MeOperationsDeleteMeResponse, MeOperationsGetExportData, MeOperationsListQuarantineData, MeOperationsListVipSuggestionsData, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesError, MessageBulkOperationsCopyMessagesResponse, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesError, MessageBulkOperationsDeleteMessagesResponse, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesError, MessageBulkOperationsMoveMessagesResponse, MessageBulkOperationsNotSpamData, MessageBulkOperationsNotSpamError, MessageBulkOperationsNotSpamResponse, MessageBulkOperationsReportSpamData, MessageBulkOperationsReportSpamError, MessageBulkOperationsReportSpamResponse, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsError, MessageBulkOperationsUpdateFlagsResponse, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsError, MessageBulkOperationsUpdateMessageLabelsResponse, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsError, MessageOperationsDescribeMessageData, MessageOperationsGetRawMessageData, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsError, MessageOperationsUpdateMessageFlagsResponse, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartError, MicrosoftOAuthOperationsMicrosoftOAuthStartResponse, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobError, OrganizeOperationsCreateOrganizeJobResponse, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeError, OrganizeOperationsPreviewOrganizeResponse, OutboxAttachmentOperationsCompleteOutboxAttachmentData, OutboxAttachmentOperationsCompleteOutboxAttachmentError, OutboxAttachmentOperationsCompleteOutboxAttachmentResponse, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageError, OutboxDetailOperationsDeleteOutboxMessageResponse, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsMintOutboxAttachmentData, OutboxDetailOperationsMintOutboxAttachmentError, OutboxDetailOperationsMintOutboxAttachmentResponse, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageError, OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageError, OutboxDetailOperationsUpdateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageError, OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesError, SyncOperationsGetSyncStatusData, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncError, SyncOperationsTriggerSyncResponse, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateError, SystemOperationsApplySystemUpdateResponse, SystemOperationsGetSystemUpdateData, ThreadDetailOperationsListThreadMessagesData, ThreadOperationsListThreadsData, ThreadOperationsListThreadsError, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsError, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashError, TrashOperationsEmptyTrashResponse, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsError, UserSettingsOperationsClearDefaultInvitationSenderData, UserSettingsOperationsClearDefaultInvitationSenderError, UserSettingsOperationsClearDefaultInvitationSenderResponse, UserSettingsOperationsGetUserSettingsData, UserSettingsOperationsUpdateUserSettingsData, UserSettingsOperationsUpdateUserSettingsError, UserSettingsOperationsUpdateUserSettingsResponse } from '../types.gen.js';
|
|
4
|
+
/**
|
|
5
|
+
* Create a new email account
|
|
6
|
+
*/
|
|
7
|
+
export declare const accountOperationsCreateAccountMutation: (options?: Partial<Options<AccountOperationsCreateAccountData>>) => UseMutationOptions<AccountOperationsCreateAccountResponse, AccountOperationsCreateAccountError, Options<AccountOperationsCreateAccountData>>;
|
|
8
|
+
export type QueryKey<TOptions extends Options> = [
|
|
9
|
+
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
10
|
+
_id: string;
|
|
11
|
+
_infinite?: boolean;
|
|
12
|
+
tags?: ReadonlyArray<string>;
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
export declare const microsoftOAuthOperationsMicrosoftOAuthCallbackQueryKey: (options?: Options<MicrosoftOAuthOperationsMicrosoftOAuthCallbackData>) => [Pick<Options<MicrosoftOAuthOperationsMicrosoftOAuthCallbackData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
16
|
+
_id: string;
|
|
17
|
+
_infinite?: boolean;
|
|
18
|
+
tags?: ReadonlyArray<string>;
|
|
19
|
+
}];
|
|
20
|
+
/**
|
|
21
|
+
* Microsoft OAuth2 callback endpoint — receives the authorization code from Microsoft and exchanges it for tokens. This endpoint is intentionally unauthenticated: the browser is redirected here by Microsoft after the user grants consent, before any Cognito session is available. CSRF is prevented by an HMAC-signed state parameter.
|
|
22
|
+
*/
|
|
23
|
+
export declare const microsoftOAuthOperationsMicrosoftOAuthCallbackOptions: (options?: Options<MicrosoftOAuthOperationsMicrosoftOAuthCallbackData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<unknown, Error, unknown, [Pick<Options<MicrosoftOAuthOperationsMicrosoftOAuthCallbackData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
24
|
+
_id: string;
|
|
25
|
+
_infinite?: boolean;
|
|
26
|
+
tags?: ReadonlyArray<string>;
|
|
27
|
+
}]>, "queryFn"> & {
|
|
28
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<unknown, [Pick<Options<MicrosoftOAuthOperationsMicrosoftOAuthCallbackData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
29
|
+
_id: string;
|
|
30
|
+
_infinite?: boolean;
|
|
31
|
+
tags?: ReadonlyArray<string>;
|
|
32
|
+
}], never> | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
queryKey: [Pick<Options<MicrosoftOAuthOperationsMicrosoftOAuthCallbackData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
35
|
+
_id: string;
|
|
36
|
+
_infinite?: boolean;
|
|
37
|
+
tags?: ReadonlyArray<string>;
|
|
38
|
+
}] & {
|
|
39
|
+
[dataTagSymbol]: unknown;
|
|
40
|
+
[dataTagErrorSymbol]: Error;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Start Microsoft OAuth2 authorization flow
|
|
45
|
+
*/
|
|
46
|
+
export declare const microsoftOAuthOperationsMicrosoftOAuthStartMutation: (options?: Partial<Options<MicrosoftOAuthOperationsMicrosoftOAuthStartData>>) => UseMutationOptions<MicrosoftOAuthOperationsMicrosoftOAuthStartResponse, MicrosoftOAuthOperationsMicrosoftOAuthStartError, Options<MicrosoftOAuthOperationsMicrosoftOAuthStartData>>;
|
|
47
|
+
/**
|
|
48
|
+
* Test IMAP/SMTP connection without saving
|
|
49
|
+
*/
|
|
50
|
+
export declare const accountOperationsTestConnectionMutation: (options?: Partial<Options<AccountOperationsTestConnectionData>>) => UseMutationOptions<AccountOperationsTestConnectionResponse, AccountOperationsTestConnectionError, Options<AccountOperationsTestConnectionData>>;
|
|
51
|
+
/**
|
|
52
|
+
* Delete an account and all associated data
|
|
53
|
+
*/
|
|
54
|
+
export declare const accountDetailOperationsDeleteAccountMutation: (options?: Partial<Options<AccountDetailOperationsDeleteAccountData>>) => UseMutationOptions<AccountDetailOperationsDeleteAccountResponse, AccountDetailOperationsDeleteAccountError, Options<AccountDetailOperationsDeleteAccountData>>;
|
|
55
|
+
/**
|
|
56
|
+
* Update an existing account
|
|
57
|
+
*/
|
|
58
|
+
export declare const accountDetailOperationsUpdateAccountMutation: (options?: Partial<Options<AccountDetailOperationsUpdateAccountData>>) => UseMutationOptions<AccountDetailOperationsUpdateAccountResponse, AccountDetailOperationsUpdateAccountError, Options<AccountDetailOperationsUpdateAccountData>>;
|
|
59
|
+
export declare const filterOperationsListFiltersQueryKey: (options: Options<FilterOperationsListFiltersData>) => [Pick<Options<FilterOperationsListFiltersData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
60
|
+
_id: string;
|
|
61
|
+
_infinite?: boolean;
|
|
62
|
+
tags?: ReadonlyArray<string>;
|
|
63
|
+
}];
|
|
64
|
+
export declare const filterOperationsListFiltersOptions: (options: Options<FilterOperationsListFiltersData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
65
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
66
|
+
items: Array<import("../types.gen.js").RemitImapFilterResponse>;
|
|
67
|
+
}, FilterOperationsListFiltersError, {
|
|
68
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
69
|
+
items: Array<import("../types.gen.js").RemitImapFilterResponse>;
|
|
70
|
+
}, [Pick<Options<FilterOperationsListFiltersData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
71
|
+
_id: string;
|
|
72
|
+
_infinite?: boolean;
|
|
73
|
+
tags?: ReadonlyArray<string>;
|
|
74
|
+
}]>, "queryFn"> & {
|
|
75
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
76
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
77
|
+
items: Array<import("../types.gen.js").RemitImapFilterResponse>;
|
|
78
|
+
}, [Pick<Options<FilterOperationsListFiltersData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
79
|
+
_id: string;
|
|
80
|
+
_infinite?: boolean;
|
|
81
|
+
tags?: ReadonlyArray<string>;
|
|
82
|
+
}], never> | undefined;
|
|
83
|
+
} & {
|
|
84
|
+
queryKey: [Pick<Options<FilterOperationsListFiltersData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
85
|
+
_id: string;
|
|
86
|
+
_infinite?: boolean;
|
|
87
|
+
tags?: ReadonlyArray<string>;
|
|
88
|
+
}] & {
|
|
89
|
+
[dataTagSymbol]: {
|
|
90
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
91
|
+
items: Array<import("../types.gen.js").RemitImapFilterResponse>;
|
|
92
|
+
};
|
|
93
|
+
[dataTagErrorSymbol]: FilterOperationsListFiltersError;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const filterOperationsCreateFilterMutation: (options?: Partial<Options<FilterOperationsCreateFilterData>>) => UseMutationOptions<FilterOperationsCreateFilterResponse, FilterOperationsCreateFilterError, Options<FilterOperationsCreateFilterData>>;
|
|
97
|
+
export declare const filterDetailOperationsDeleteFilterMutation: (options?: Partial<Options<FilterDetailOperationsDeleteFilterData>>) => UseMutationOptions<FilterDetailOperationsDeleteFilterResponse, FilterDetailOperationsDeleteFilterError, Options<FilterDetailOperationsDeleteFilterData>>;
|
|
98
|
+
export declare const filterDetailOperationsGetFilterQueryKey: (options: Options<FilterDetailOperationsGetFilterData>) => [Pick<Options<FilterDetailOperationsGetFilterData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
99
|
+
_id: string;
|
|
100
|
+
_infinite?: boolean;
|
|
101
|
+
tags?: ReadonlyArray<string>;
|
|
102
|
+
}];
|
|
103
|
+
export declare const filterDetailOperationsGetFilterOptions: (options: Options<FilterDetailOperationsGetFilterData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapFilterResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapFilterResponse, [Pick<Options<FilterDetailOperationsGetFilterData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
104
|
+
_id: string;
|
|
105
|
+
_infinite?: boolean;
|
|
106
|
+
tags?: ReadonlyArray<string>;
|
|
107
|
+
}]>, "queryFn"> & {
|
|
108
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapFilterResponse, [Pick<Options<FilterDetailOperationsGetFilterData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
109
|
+
_id: string;
|
|
110
|
+
_infinite?: boolean;
|
|
111
|
+
tags?: ReadonlyArray<string>;
|
|
112
|
+
}], never> | undefined;
|
|
113
|
+
} & {
|
|
114
|
+
queryKey: [Pick<Options<FilterDetailOperationsGetFilterData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
115
|
+
_id: string;
|
|
116
|
+
_infinite?: boolean;
|
|
117
|
+
tags?: ReadonlyArray<string>;
|
|
118
|
+
}] & {
|
|
119
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapFilterResponse;
|
|
120
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export declare const filterDetailOperationsUpdateFilterMutation: (options?: Partial<Options<FilterDetailOperationsUpdateFilterData>>) => UseMutationOptions<FilterDetailOperationsUpdateFilterResponse, FilterDetailOperationsUpdateFilterError, Options<FilterDetailOperationsUpdateFilterData>>;
|
|
124
|
+
/**
|
|
125
|
+
* Appoint a canonical role to a mailbox, or clear it. Exclusive by construction: the role always resolves to exactly one mailbox, so appointing a new one silently replaces whichever mailbox previously held it — there is no second place a duplicate appointment could live. Returns the account with its refreshed folderAppointments.
|
|
126
|
+
*/
|
|
127
|
+
export declare const folderRoleOperationsAppointFolderRoleMutation: (options?: Partial<Options<FolderRoleOperationsAppointFolderRoleData>>) => UseMutationOptions<FolderRoleOperationsAppointFolderRoleResponse, FolderRoleOperationsAppointFolderRoleError, Options<FolderRoleOperationsAppointFolderRoleData>>;
|
|
128
|
+
export declare const labelOperationsListLabelsQueryKey: (options: Options<LabelOperationsListLabelsData>) => [Pick<Options<LabelOperationsListLabelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
129
|
+
_id: string;
|
|
130
|
+
_infinite?: boolean;
|
|
131
|
+
tags?: ReadonlyArray<string>;
|
|
132
|
+
}];
|
|
133
|
+
export declare const labelOperationsListLabelsOptions: (options: Options<LabelOperationsListLabelsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
134
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
135
|
+
items: Array<import("../types.gen.js").RemitImapLabelResponse>;
|
|
136
|
+
}, LabelOperationsListLabelsError, {
|
|
137
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
138
|
+
items: Array<import("../types.gen.js").RemitImapLabelResponse>;
|
|
139
|
+
}, [Pick<Options<LabelOperationsListLabelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
140
|
+
_id: string;
|
|
141
|
+
_infinite?: boolean;
|
|
142
|
+
tags?: ReadonlyArray<string>;
|
|
143
|
+
}]>, "queryFn"> & {
|
|
144
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
145
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
146
|
+
items: Array<import("../types.gen.js").RemitImapLabelResponse>;
|
|
147
|
+
}, [Pick<Options<LabelOperationsListLabelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
148
|
+
_id: string;
|
|
149
|
+
_infinite?: boolean;
|
|
150
|
+
tags?: ReadonlyArray<string>;
|
|
151
|
+
}], never> | undefined;
|
|
152
|
+
} & {
|
|
153
|
+
queryKey: [Pick<Options<LabelOperationsListLabelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
154
|
+
_id: string;
|
|
155
|
+
_infinite?: boolean;
|
|
156
|
+
tags?: ReadonlyArray<string>;
|
|
157
|
+
}] & {
|
|
158
|
+
[dataTagSymbol]: {
|
|
159
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
160
|
+
items: Array<import("../types.gen.js").RemitImapLabelResponse>;
|
|
161
|
+
};
|
|
162
|
+
[dataTagErrorSymbol]: LabelOperationsListLabelsError;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export declare const labelOperationsCreateLabelMutation: (options?: Partial<Options<LabelOperationsCreateLabelData>>) => UseMutationOptions<LabelOperationsCreateLabelResponse, LabelOperationsCreateLabelError, Options<LabelOperationsCreateLabelData>>;
|
|
166
|
+
/**
|
|
167
|
+
* 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.
|
|
168
|
+
*/
|
|
169
|
+
export declare const labelDetailOperationsDeleteLabelMutation: (options?: Partial<Options<LabelDetailOperationsDeleteLabelData>>) => UseMutationOptions<LabelDetailOperationsDeleteLabelResponse, LabelDetailOperationsDeleteLabelError, Options<LabelDetailOperationsDeleteLabelData>>;
|
|
170
|
+
export declare const labelDetailOperationsGetLabelQueryKey: (options: Options<LabelDetailOperationsGetLabelData>) => [Pick<Options<LabelDetailOperationsGetLabelData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
171
|
+
_id: string;
|
|
172
|
+
_infinite?: boolean;
|
|
173
|
+
tags?: ReadonlyArray<string>;
|
|
174
|
+
}];
|
|
175
|
+
export declare const labelDetailOperationsGetLabelOptions: (options: Options<LabelDetailOperationsGetLabelData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapLabelResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapLabelResponse, [Pick<Options<LabelDetailOperationsGetLabelData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
176
|
+
_id: string;
|
|
177
|
+
_infinite?: boolean;
|
|
178
|
+
tags?: ReadonlyArray<string>;
|
|
179
|
+
}]>, "queryFn"> & {
|
|
180
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapLabelResponse, [Pick<Options<LabelDetailOperationsGetLabelData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
181
|
+
_id: string;
|
|
182
|
+
_infinite?: boolean;
|
|
183
|
+
tags?: ReadonlyArray<string>;
|
|
184
|
+
}], never> | undefined;
|
|
185
|
+
} & {
|
|
186
|
+
queryKey: [Pick<Options<LabelDetailOperationsGetLabelData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
187
|
+
_id: string;
|
|
188
|
+
_infinite?: boolean;
|
|
189
|
+
tags?: ReadonlyArray<string>;
|
|
190
|
+
}] & {
|
|
191
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapLabelResponse;
|
|
192
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
export declare const labelDetailOperationsUpdateLabelMutation: (options?: Partial<Options<LabelDetailOperationsUpdateLabelData>>) => UseMutationOptions<LabelDetailOperationsUpdateLabelResponse, LabelDetailOperationsUpdateLabelError, Options<LabelDetailOperationsUpdateLabelData>>;
|
|
196
|
+
export declare const mailboxOperationsListMailboxesQueryKey: (options: Options<MailboxOperationsListMailboxesData>) => [Pick<Options<MailboxOperationsListMailboxesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
197
|
+
_id: string;
|
|
198
|
+
_infinite?: boolean;
|
|
199
|
+
tags?: ReadonlyArray<string>;
|
|
200
|
+
}];
|
|
201
|
+
export declare const mailboxOperationsListMailboxesOptions: (options: Options<MailboxOperationsListMailboxesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapMailboxListResponse, MailboxOperationsListMailboxesError, import("../types.gen.js").RemitImapMailboxListResponse, [Pick<Options<MailboxOperationsListMailboxesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
202
|
+
_id: string;
|
|
203
|
+
_infinite?: boolean;
|
|
204
|
+
tags?: ReadonlyArray<string>;
|
|
205
|
+
}]>, "queryFn"> & {
|
|
206
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapMailboxListResponse, [Pick<Options<MailboxOperationsListMailboxesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
207
|
+
_id: string;
|
|
208
|
+
_infinite?: boolean;
|
|
209
|
+
tags?: ReadonlyArray<string>;
|
|
210
|
+
}], never> | undefined;
|
|
211
|
+
} & {
|
|
212
|
+
queryKey: [Pick<Options<MailboxOperationsListMailboxesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
213
|
+
_id: string;
|
|
214
|
+
_infinite?: boolean;
|
|
215
|
+
tags?: ReadonlyArray<string>;
|
|
216
|
+
}] & {
|
|
217
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapMailboxListResponse;
|
|
218
|
+
[dataTagErrorSymbol]: MailboxOperationsListMailboxesError;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Create a folder. Refused with 400 when the account already has a folder at that path.
|
|
223
|
+
*/
|
|
224
|
+
export declare const mailboxOperationsCreateMailboxMutation: (options?: Partial<Options<MailboxOperationsCreateMailboxData>>) => UseMutationOptions<MailboxOperationsCreateMailboxResponse, MailboxOperationsCreateMailboxError, Options<MailboxOperationsCreateMailboxData>>;
|
|
225
|
+
/**
|
|
226
|
+
* Record a delete intent for a folder. The folder stays listed, marked as being deleted, until the mail server confirms it and its mail goes with it. Refused with 400 for INBOX, for a folder with folders inside it, and for a folder a filter or a canonical role is bound to — the message names each binding; with 409 when a mutation is already in flight on it.
|
|
227
|
+
*/
|
|
228
|
+
export declare const mailboxDetailOperationsDeleteMailboxMutation: (options?: Partial<Options<MailboxDetailOperationsDeleteMailboxData>>) => UseMutationOptions<MailboxDetailOperationsDeleteMailboxResponse, MailboxDetailOperationsDeleteMailboxError, Options<MailboxDetailOperationsDeleteMailboxData>>;
|
|
229
|
+
export declare const mailboxDetailOperationsGetMailboxQueryKey: (options: Options<MailboxDetailOperationsGetMailboxData>) => [Pick<Options<MailboxDetailOperationsGetMailboxData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
230
|
+
_id: string;
|
|
231
|
+
_infinite?: boolean;
|
|
232
|
+
tags?: ReadonlyArray<string>;
|
|
233
|
+
}];
|
|
234
|
+
export declare const mailboxDetailOperationsGetMailboxOptions: (options: Options<MailboxDetailOperationsGetMailboxData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapMailboxResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapMailboxResponse, [Pick<Options<MailboxDetailOperationsGetMailboxData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
235
|
+
_id: string;
|
|
236
|
+
_infinite?: boolean;
|
|
237
|
+
tags?: ReadonlyArray<string>;
|
|
238
|
+
}]>, "queryFn"> & {
|
|
239
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapMailboxResponse, [Pick<Options<MailboxDetailOperationsGetMailboxData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
240
|
+
_id: string;
|
|
241
|
+
_infinite?: boolean;
|
|
242
|
+
tags?: ReadonlyArray<string>;
|
|
243
|
+
}], never> | undefined;
|
|
244
|
+
} & {
|
|
245
|
+
queryKey: [Pick<Options<MailboxDetailOperationsGetMailboxData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
246
|
+
_id: string;
|
|
247
|
+
_infinite?: boolean;
|
|
248
|
+
tags?: ReadonlyArray<string>;
|
|
249
|
+
}] & {
|
|
250
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapMailboxResponse;
|
|
251
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Rename a folder, or dismiss a folder mutation that failed. `fullPath` records the rename target over the folder and everything under it; the folder keeps the path the mail server holds until the rename lands. A `fullPath` equal to the folder's current one is a dismissal: it clears a failed rename or delete and enqueues nothing. Refused with 400 for INBOX at either end, a name reserved for a system folder, and a name another folder already has; with 409 when a mutation is already in flight on the folder or on anything inside it.
|
|
256
|
+
*/
|
|
257
|
+
export declare const mailboxDetailOperationsRenameMailboxMutation: (options?: Partial<Options<MailboxDetailOperationsRenameMailboxData>>) => UseMutationOptions<MailboxDetailOperationsRenameMailboxResponse, MailboxDetailOperationsRenameMailboxError, Options<MailboxDetailOperationsRenameMailboxData>>;
|
|
258
|
+
/**
|
|
259
|
+
* Start a one-time "all like these" back-apply: match the corpus against the given predicate and apply the action to every match, in one pass. Returns immediately with an organizeJobId; poll GET /accounts/{accountId}/organize/{organizeJobId} for state and counts. Never creates a Filter row (RFC 034 recap).
|
|
260
|
+
*/
|
|
261
|
+
export declare const organizeOperationsCreateOrganizeJobMutation: (options?: Partial<Options<OrganizeOperationsCreateOrganizeJobData>>) => UseMutationOptions<OrganizeOperationsCreateOrganizeJobResponse, OrganizeOperationsCreateOrganizeJobError, Options<OrganizeOperationsCreateOrganizeJobData>>;
|
|
262
|
+
/**
|
|
263
|
+
* Preview an "all like these" back-apply: run the exact same matcher read-only and return the messages the action would be applied to, without applying it. The previewed set equals the set a job with the same input would apply to.
|
|
264
|
+
*/
|
|
265
|
+
export declare const organizeOperationsPreviewOrganizeMutation: (options?: Partial<Options<OrganizeOperationsPreviewOrganizeData>>) => UseMutationOptions<OrganizeOperationsPreviewOrganizeResponse, OrganizeOperationsPreviewOrganizeError, Options<OrganizeOperationsPreviewOrganizeData>>;
|
|
266
|
+
export declare const organizeJobDetailOperationsGetOrganizeJobQueryKey: (options: Options<OrganizeJobDetailOperationsGetOrganizeJobData>) => [Pick<Options<OrganizeJobDetailOperationsGetOrganizeJobData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
267
|
+
_id: string;
|
|
268
|
+
_infinite?: boolean;
|
|
269
|
+
tags?: ReadonlyArray<string>;
|
|
270
|
+
}];
|
|
271
|
+
/**
|
|
272
|
+
* Get the status of a back-apply job, including matched/applied/failed counts. Terminal states are Complete and Failed.
|
|
273
|
+
*/
|
|
274
|
+
export declare const organizeJobDetailOperationsGetOrganizeJobOptions: (options: Options<OrganizeJobDetailOperationsGetOrganizeJobData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapOrganizeJobResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapOrganizeJobResponse, [Pick<Options<OrganizeJobDetailOperationsGetOrganizeJobData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
275
|
+
_id: string;
|
|
276
|
+
_infinite?: boolean;
|
|
277
|
+
tags?: ReadonlyArray<string>;
|
|
278
|
+
}]>, "queryFn"> & {
|
|
279
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapOrganizeJobResponse, [Pick<Options<OrganizeJobDetailOperationsGetOrganizeJobData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
280
|
+
_id: string;
|
|
281
|
+
_infinite?: boolean;
|
|
282
|
+
tags?: ReadonlyArray<string>;
|
|
283
|
+
}], never> | undefined;
|
|
284
|
+
} & {
|
|
285
|
+
queryKey: [Pick<Options<OrganizeJobDetailOperationsGetOrganizeJobData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
286
|
+
_id: string;
|
|
287
|
+
_infinite?: boolean;
|
|
288
|
+
tags?: ReadonlyArray<string>;
|
|
289
|
+
}] & {
|
|
290
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapOrganizeJobResponse;
|
|
291
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
export declare const syncOperationsTriggerSyncMutation: (options?: Partial<Options<SyncOperationsTriggerSyncData>>) => UseMutationOptions<SyncOperationsTriggerSyncResponse, SyncOperationsTriggerSyncError, Options<SyncOperationsTriggerSyncData>>;
|
|
295
|
+
export declare const syncOperationsGetSyncStatusQueryKey: (options: Options<SyncOperationsGetSyncStatusData>) => [Pick<Options<SyncOperationsGetSyncStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
296
|
+
_id: string;
|
|
297
|
+
_infinite?: boolean;
|
|
298
|
+
tags?: ReadonlyArray<string>;
|
|
299
|
+
}];
|
|
300
|
+
/**
|
|
301
|
+
* Get the current sync status for an account, including per-mailbox progress computed from watermarks. Read-only — does not write or contend with the mailbox sync lock (RFC 023).
|
|
302
|
+
*/
|
|
303
|
+
export declare const syncOperationsGetSyncStatusOptions: (options: Options<SyncOperationsGetSyncStatusData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapAccountSyncStatusResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapAccountSyncStatusResponse, [Pick<Options<SyncOperationsGetSyncStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
304
|
+
_id: string;
|
|
305
|
+
_infinite?: boolean;
|
|
306
|
+
tags?: ReadonlyArray<string>;
|
|
307
|
+
}]>, "queryFn"> & {
|
|
308
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapAccountSyncStatusResponse, [Pick<Options<SyncOperationsGetSyncStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
309
|
+
_id: string;
|
|
310
|
+
_infinite?: boolean;
|
|
311
|
+
tags?: ReadonlyArray<string>;
|
|
312
|
+
}], never> | undefined;
|
|
313
|
+
} & {
|
|
314
|
+
queryKey: [Pick<Options<SyncOperationsGetSyncStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
315
|
+
_id: string;
|
|
316
|
+
_infinite?: boolean;
|
|
317
|
+
tags?: ReadonlyArray<string>;
|
|
318
|
+
}] & {
|
|
319
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapAccountSyncStatusResponse;
|
|
320
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Permanently delete all messages in the Trash mailbox
|
|
325
|
+
*/
|
|
326
|
+
export declare const trashOperationsEmptyTrashMutation: (options?: Partial<Options<TrashOperationsEmptyTrashData>>) => UseMutationOptions<TrashOperationsEmptyTrashResponse, TrashOperationsEmptyTrashError, Options<TrashOperationsEmptyTrashData>>;
|
|
327
|
+
export declare const addressOperationsSearchAddressesQueryKey: (options: Options<AddressOperationsSearchAddressesData>) => [Pick<Options<AddressOperationsSearchAddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
328
|
+
_id: string;
|
|
329
|
+
_infinite?: boolean;
|
|
330
|
+
tags?: ReadonlyArray<string>;
|
|
331
|
+
}];
|
|
332
|
+
/**
|
|
333
|
+
* Search addresses for autocomplete
|
|
334
|
+
*/
|
|
335
|
+
export declare const addressOperationsSearchAddressesOptions: (options: Options<AddressOperationsSearchAddressesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
336
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
337
|
+
items: Array<import("../types.gen.js").RemitImapAddressResponse>;
|
|
338
|
+
}, import("../types.gen.js").ApiError, {
|
|
339
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
340
|
+
items: Array<import("../types.gen.js").RemitImapAddressResponse>;
|
|
341
|
+
}, [Pick<Options<AddressOperationsSearchAddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
342
|
+
_id: string;
|
|
343
|
+
_infinite?: boolean;
|
|
344
|
+
tags?: ReadonlyArray<string>;
|
|
345
|
+
}]>, "queryFn"> & {
|
|
346
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
347
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
348
|
+
items: Array<import("../types.gen.js").RemitImapAddressResponse>;
|
|
349
|
+
}, [Pick<Options<AddressOperationsSearchAddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
350
|
+
_id: string;
|
|
351
|
+
_infinite?: boolean;
|
|
352
|
+
tags?: ReadonlyArray<string>;
|
|
353
|
+
}], never> | undefined;
|
|
354
|
+
} & {
|
|
355
|
+
queryKey: [Pick<Options<AddressOperationsSearchAddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
356
|
+
_id: string;
|
|
357
|
+
_infinite?: boolean;
|
|
358
|
+
tags?: ReadonlyArray<string>;
|
|
359
|
+
}] & {
|
|
360
|
+
[dataTagSymbol]: {
|
|
361
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
362
|
+
items: Array<import("../types.gen.js").RemitImapAddressResponse>;
|
|
363
|
+
};
|
|
364
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Update an address (currently: per-sender flags). Pass `flags` to set flags and `clearFlags: ["<name>"]` to remove them. Other flags are untouched.
|
|
369
|
+
*/
|
|
370
|
+
export declare const addressDetailOperationsUpdateAddressMutation: (options?: Partial<Options<AddressDetailOperationsUpdateAddressData>>) => UseMutationOptions<AddressDetailOperationsUpdateAddressResponse, AddressDetailOperationsUpdateAddressError, Options<AddressDetailOperationsUpdateAddressData>>;
|
|
371
|
+
export declare const calendarEventOperationsListCalendarEventsQueryKey: (options: Options<CalendarEventOperationsListCalendarEventsData>) => [Pick<Options<CalendarEventOperationsListCalendarEventsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
372
|
+
_id: string;
|
|
373
|
+
_infinite?: boolean;
|
|
374
|
+
tags?: ReadonlyArray<string>;
|
|
375
|
+
}];
|
|
376
|
+
/**
|
|
377
|
+
* Expanded event occurrences in a window. The server does the recurrence
|
|
378
|
+
* expansion and the client renders instances — no RRULE is ever evaluated
|
|
379
|
+
* in a browser, so a week grid and a day strip agree with each other and
|
|
380
|
+
* with what a native client will later read over CalDAV.
|
|
381
|
+
*
|
|
382
|
+
* Occurrences are served from the stored occurrence index. A series whose
|
|
383
|
+
* index stops before `to` — an open-ended event older than the expansion
|
|
384
|
+
* horizon — is expanded live for this window instead, and nothing
|
|
385
|
+
* unbounded is written to serve a read.
|
|
386
|
+
*
|
|
387
|
+
* Refused with 400 when `from` and `to` are not ISO 8601 date-times, when
|
|
388
|
+
* `to` is not after `from`, or when the window is wider than a year.
|
|
389
|
+
*/
|
|
390
|
+
export declare const calendarEventOperationsListCalendarEventsOptions: (options: Options<CalendarEventOperationsListCalendarEventsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapCalendarEventListResponse, CalendarEventOperationsListCalendarEventsError, import("../types.gen.js").RemitImapCalendarEventListResponse, [Pick<Options<CalendarEventOperationsListCalendarEventsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
391
|
+
_id: string;
|
|
392
|
+
_infinite?: boolean;
|
|
393
|
+
tags?: ReadonlyArray<string>;
|
|
394
|
+
}]>, "queryFn"> & {
|
|
395
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapCalendarEventListResponse, [Pick<Options<CalendarEventOperationsListCalendarEventsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
396
|
+
_id: string;
|
|
397
|
+
_infinite?: boolean;
|
|
398
|
+
tags?: ReadonlyArray<string>;
|
|
399
|
+
}], never> | undefined;
|
|
400
|
+
} & {
|
|
401
|
+
queryKey: [Pick<Options<CalendarEventOperationsListCalendarEventsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
402
|
+
_id: string;
|
|
403
|
+
_infinite?: boolean;
|
|
404
|
+
tags?: ReadonlyArray<string>;
|
|
405
|
+
}] & {
|
|
406
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapCalendarEventListResponse;
|
|
407
|
+
[dataTagErrorSymbol]: CalendarEventOperationsListCalendarEventsError;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* Create an event. The server builds the VEVENT and writes it through the single calendar write path — the same one an accepted invitation and a later CalDAV PUT go through — so the object, its expanded occurrences and the collection's sync sequence land together or not at all. Refused with 400 `read_only_calendar` for a `Subscribed` collection, whose events belong to the feed.
|
|
412
|
+
*/
|
|
413
|
+
export declare const calendarEventOperationsCreateCalendarEventMutation: (options?: Partial<Options<CalendarEventOperationsCreateCalendarEventData>>) => UseMutationOptions<CalendarEventOperationsCreateCalendarEventResponse, CalendarEventOperationsCreateCalendarEventError, Options<CalendarEventOperationsCreateCalendarEventData>>;
|
|
414
|
+
/**
|
|
415
|
+
* Delete an event. `All` removes the resource and every occurrence it
|
|
416
|
+
* produced; `This` writes an EXDATE for the named occurrence and keeps the
|
|
417
|
+
* rest of the series; `Following` truncates the series to end just before
|
|
418
|
+
* it.
|
|
419
|
+
*
|
|
420
|
+
* Same refusals and the same `If-Match` precondition as the update.
|
|
421
|
+
* An event in a `Subscribed` collection is refused with 400
|
|
422
|
+
* `read_only_calendar`, here and on the update.
|
|
423
|
+
*
|
|
424
|
+
* Answers 200 with the cancellations it queued: one per guest when the
|
|
425
|
+
* reader organizes the event, none otherwise.
|
|
426
|
+
*/
|
|
427
|
+
export declare const calendarEventDetailOperationsDeleteCalendarEventMutation: (options?: Partial<Options<CalendarEventDetailOperationsDeleteCalendarEventData>>) => UseMutationOptions<CalendarEventDetailOperationsDeleteCalendarEventResponse, CalendarEventDetailOperationsDeleteCalendarEventError, Options<CalendarEventDetailOperationsDeleteCalendarEventData>>;
|
|
428
|
+
export declare const calendarEventDetailOperationsGetCalendarEventQueryKey: (options: Options<CalendarEventDetailOperationsGetCalendarEventData>) => [Pick<Options<CalendarEventDetailOperationsGetCalendarEventData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
429
|
+
_id: string;
|
|
430
|
+
_infinite?: boolean;
|
|
431
|
+
tags?: ReadonlyArray<string>;
|
|
432
|
+
}];
|
|
433
|
+
/**
|
|
434
|
+
* Get one stored event, including its canonical iCalendar text and its etag.
|
|
435
|
+
*/
|
|
436
|
+
export declare const calendarEventDetailOperationsGetCalendarEventOptions: (options: Options<CalendarEventDetailOperationsGetCalendarEventData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapCalendarEventResponse, CalendarEventDetailOperationsGetCalendarEventError, import("../types.gen.js").RemitImapCalendarEventResponse, [Pick<Options<CalendarEventDetailOperationsGetCalendarEventData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
437
|
+
_id: string;
|
|
438
|
+
_infinite?: boolean;
|
|
439
|
+
tags?: ReadonlyArray<string>;
|
|
440
|
+
}]>, "queryFn"> & {
|
|
441
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapCalendarEventResponse, [Pick<Options<CalendarEventDetailOperationsGetCalendarEventData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
442
|
+
_id: string;
|
|
443
|
+
_infinite?: boolean;
|
|
444
|
+
tags?: ReadonlyArray<string>;
|
|
445
|
+
}], never> | undefined;
|
|
446
|
+
} & {
|
|
447
|
+
queryKey: [Pick<Options<CalendarEventDetailOperationsGetCalendarEventData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
448
|
+
_id: string;
|
|
449
|
+
_infinite?: boolean;
|
|
450
|
+
tags?: ReadonlyArray<string>;
|
|
451
|
+
}] & {
|
|
452
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapCalendarEventResponse;
|
|
453
|
+
[dataTagErrorSymbol]: CalendarEventDetailOperationsGetCalendarEventError;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Update an event. `scope` says what the caller meant by editing one
|
|
458
|
+
* drawing of a series: `All` rewrites the master, `This` writes a
|
|
459
|
+
* RECURRENCE-ID override for the named occurrence, and `Following` splits
|
|
460
|
+
* the series — the master's rule is truncated and a second resource carries
|
|
461
|
+
* the remainder under a UID of its own.
|
|
462
|
+
*
|
|
463
|
+
* `recurrenceId` is required for `This` and `Following` and is refused with
|
|
464
|
+
* 400 otherwise, along with a scope other than `All` on an event that does
|
|
465
|
+
* not recur, and a `recurrenceId` naming no occurrence of the series.
|
|
466
|
+
*
|
|
467
|
+
* `If-Match` makes the write conditional on the etag the caller read. A
|
|
468
|
+
* mismatch is 412: somebody replaced the resource in between, and applying
|
|
469
|
+
* this patch would discard their change without either of them seeing it.
|
|
470
|
+
*/
|
|
471
|
+
export declare const calendarEventDetailOperationsUpdateCalendarEventMutation: (options?: Partial<Options<CalendarEventDetailOperationsUpdateCalendarEventData>>) => UseMutationOptions<CalendarEventDetailOperationsUpdateCalendarEventResponse, CalendarEventDetailOperationsUpdateCalendarEventError, Options<CalendarEventDetailOperationsUpdateCalendarEventData>>;
|
|
472
|
+
export declare const calendarFreeBusyOperationsListCalendarFreeBusyQueryKey: (options: Options<CalendarFreeBusyOperationsListCalendarFreeBusyData>) => [Pick<Options<CalendarFreeBusyOperationsListCalendarFreeBusyData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
473
|
+
_id: string;
|
|
474
|
+
_infinite?: boolean;
|
|
475
|
+
tags?: ReadonlyArray<string>;
|
|
476
|
+
}];
|
|
477
|
+
/**
|
|
478
|
+
* Busy spans over a window, merged across every calendar the caller holds. Backs the clash check beside a mail invitation and the free-stretch maths in the day strip, neither of which should have to fetch every event and merge them itself. Refused with 400 on the same window rules as the event listing.
|
|
479
|
+
*/
|
|
480
|
+
export declare const calendarFreeBusyOperationsListCalendarFreeBusyOptions: (options: Options<CalendarFreeBusyOperationsListCalendarFreeBusyData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapCalendarFreeBusyResponse, CalendarFreeBusyOperationsListCalendarFreeBusyError, import("../types.gen.js").RemitImapCalendarFreeBusyResponse, [Pick<Options<CalendarFreeBusyOperationsListCalendarFreeBusyData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
481
|
+
_id: string;
|
|
482
|
+
_infinite?: boolean;
|
|
483
|
+
tags?: ReadonlyArray<string>;
|
|
484
|
+
}]>, "queryFn"> & {
|
|
485
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapCalendarFreeBusyResponse, [Pick<Options<CalendarFreeBusyOperationsListCalendarFreeBusyData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
486
|
+
_id: string;
|
|
487
|
+
_infinite?: boolean;
|
|
488
|
+
tags?: ReadonlyArray<string>;
|
|
489
|
+
}], never> | undefined;
|
|
490
|
+
} & {
|
|
491
|
+
queryKey: [Pick<Options<CalendarFreeBusyOperationsListCalendarFreeBusyData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
492
|
+
_id: string;
|
|
493
|
+
_infinite?: boolean;
|
|
494
|
+
tags?: ReadonlyArray<string>;
|
|
495
|
+
}] & {
|
|
496
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapCalendarFreeBusyResponse;
|
|
497
|
+
[dataTagErrorSymbol]: CalendarFreeBusyOperationsListCalendarFreeBusyError;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
export declare const calendarSuggestionOperationsListCalendarSuggestionsQueryKey: (options: Options<CalendarSuggestionOperationsListCalendarSuggestionsData>) => [Pick<Options<CalendarSuggestionOperationsListCalendarSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
501
|
+
_id: string;
|
|
502
|
+
_infinite?: boolean;
|
|
503
|
+
tags?: ReadonlyArray<string>;
|
|
504
|
+
}];
|
|
505
|
+
/**
|
|
506
|
+
* List the caller's suggestions in one state, newest first. `Pending` is the set that is waiting on a person and the one a client normally asks for.
|
|
507
|
+
*/
|
|
508
|
+
export declare const calendarSuggestionOperationsListCalendarSuggestionsOptions: (options: Options<CalendarSuggestionOperationsListCalendarSuggestionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
509
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
510
|
+
items: Array<import("../types.gen.js").RemitImapCalendarSuggestionResponse>;
|
|
511
|
+
}, CalendarSuggestionOperationsListCalendarSuggestionsError, {
|
|
512
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
513
|
+
items: Array<import("../types.gen.js").RemitImapCalendarSuggestionResponse>;
|
|
514
|
+
}, [Pick<Options<CalendarSuggestionOperationsListCalendarSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
515
|
+
_id: string;
|
|
516
|
+
_infinite?: boolean;
|
|
517
|
+
tags?: ReadonlyArray<string>;
|
|
518
|
+
}]>, "queryFn"> & {
|
|
519
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
520
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
521
|
+
items: Array<import("../types.gen.js").RemitImapCalendarSuggestionResponse>;
|
|
522
|
+
}, [Pick<Options<CalendarSuggestionOperationsListCalendarSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
523
|
+
_id: string;
|
|
524
|
+
_infinite?: boolean;
|
|
525
|
+
tags?: ReadonlyArray<string>;
|
|
526
|
+
}], never> | undefined;
|
|
527
|
+
} & {
|
|
528
|
+
queryKey: [Pick<Options<CalendarSuggestionOperationsListCalendarSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
529
|
+
_id: string;
|
|
530
|
+
_infinite?: boolean;
|
|
531
|
+
tags?: ReadonlyArray<string>;
|
|
532
|
+
}] & {
|
|
533
|
+
[dataTagSymbol]: {
|
|
534
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
535
|
+
items: Array<import("../types.gen.js").RemitImapCalendarSuggestionResponse>;
|
|
536
|
+
};
|
|
537
|
+
[dataTagErrorSymbol]: CalendarSuggestionOperationsListCalendarSuggestionsError;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
/**
|
|
541
|
+
* Add the suggested event to a calendar. One transaction: a VCALENDAR is
|
|
542
|
+
* built from the invitation's own bytes, keeping its UID and SEQUENCE and
|
|
543
|
+
* marking the user `ATTENDEE;PARTSTAT=ACCEPTED`, and written through the
|
|
544
|
+
* same service function every other calendar write goes through — so a web
|
|
545
|
+
* edit and a native edit of that event cannot diverge. Accepting a `Cancel`
|
|
546
|
+
* suggestion writes `STATUS:CANCELLED` on the resource the same way.
|
|
547
|
+
*
|
|
548
|
+
* `answer: Tentative` writes the same resource with `PARTSTAT=TENTATIVE`
|
|
549
|
+
* and moves the suggestion to `Tentative` instead of `Accepted`.
|
|
550
|
+
*
|
|
551
|
+
* No reply is sent to the organizer. This endpoint sends no mail at all,
|
|
552
|
+
* and the card says so.
|
|
553
|
+
*
|
|
554
|
+
* Idempotent: accepting an already-accepted suggestion rewrites the same
|
|
555
|
+
* resource and returns the same suggestion, because both the resource id
|
|
556
|
+
* and the suggestion id are derived rather than minted.
|
|
557
|
+
*
|
|
558
|
+
* 400 when the suggestion is not one that can be accepted — already
|
|
559
|
+
* answered otherwise, dismissed or superseded — when a `Cancel` suggestion
|
|
560
|
+
* is answered `Tentative`, or when its iCalendar will not parse.
|
|
561
|
+
*/
|
|
562
|
+
export declare const calendarSuggestionActionOperationsAcceptCalendarSuggestionMutation: (options?: Partial<Options<CalendarSuggestionActionOperationsAcceptCalendarSuggestionData>>) => UseMutationOptions<CalendarSuggestionActionOperationsAcceptCalendarSuggestionResponse, CalendarSuggestionActionOperationsAcceptCalendarSuggestionError, Options<CalendarSuggestionActionOperationsAcceptCalendarSuggestionData>>;
|
|
563
|
+
/**
|
|
564
|
+
* Say no. Writes no calendar object and sends no reply to the organizer. Idempotent; 400 when the suggestion was already accepted, since a resource exists and declining would not remove it.
|
|
565
|
+
*/
|
|
566
|
+
export declare const calendarSuggestionActionOperationsDeclineCalendarSuggestionMutation: (options?: Partial<Options<CalendarSuggestionActionOperationsDeclineCalendarSuggestionData>>) => UseMutationOptions<CalendarSuggestionActionOperationsDeclineCalendarSuggestionResponse, CalendarSuggestionActionOperationsDeclineCalendarSuggestionError, Options<CalendarSuggestionActionOperationsDeclineCalendarSuggestionData>>;
|
|
567
|
+
/**
|
|
568
|
+
* Wave the card away. Writes no calendar object. With `muteSender`, also writes a standing `Filter` rule on the message's sender so their invitations stop being offered. Idempotent; 400 when the suggestion was already accepted.
|
|
569
|
+
*/
|
|
570
|
+
export declare const calendarSuggestionActionOperationsDismissCalendarSuggestionMutation: (options?: Partial<Options<CalendarSuggestionActionOperationsDismissCalendarSuggestionData>>) => UseMutationOptions<CalendarSuggestionActionOperationsDismissCalendarSuggestionResponse, CalendarSuggestionActionOperationsDismissCalendarSuggestionError, Options<CalendarSuggestionActionOperationsDismissCalendarSuggestionData>>;
|
|
571
|
+
/**
|
|
572
|
+
* Take an answer back. An accepted, tentative, declined or dismissed
|
|
573
|
+
* suggestion returns to `Pending`, so the card asks again. One
|
|
574
|
+
* transaction: the suggestion is settled `Pending` with
|
|
575
|
+
* `acceptedCalendarObjectId: ""`, and the calendar object an accept or a
|
|
576
|
+
* maybe wrote is removed with its occurrences and every remainder a
|
|
577
|
+
* this-and-following edit split off it in that calendar, unless another
|
|
578
|
+
* suggestion is still answered into that object; then the object stays with
|
|
579
|
+
* that answer. A sender rule written by
|
|
580
|
+
* `dismiss{muteSender}` stays; it is a rule of its own, edited where rules
|
|
581
|
+
* are.
|
|
582
|
+
*
|
|
583
|
+
* No mail is sent. Idempotent: a `Pending` suggestion is returned as it is.
|
|
584
|
+
*
|
|
585
|
+
* 400 when the suggestion is `Superseded`, which a later revision retired,
|
|
586
|
+
* a `Cancel`, whose answer rewrote an event it cannot restore, or its
|
|
587
|
+
* `answerOvertakenBy` is `Cancellation`, because a cancellation is terminal.
|
|
588
|
+
*/
|
|
589
|
+
export declare const calendarSuggestionActionOperationsReopenCalendarSuggestionMutation: (options?: Partial<Options<CalendarSuggestionActionOperationsReopenCalendarSuggestionData>>) => UseMutationOptions<CalendarSuggestionActionOperationsReopenCalendarSuggestionResponse, CalendarSuggestionActionOperationsReopenCalendarSuggestionError, Options<CalendarSuggestionActionOperationsReopenCalendarSuggestionData>>;
|
|
590
|
+
export declare const calendarTaskOperationsListCalendarTasksQueryKey: (options: Options<CalendarTaskOperationsListCalendarTasksData>) => [Pick<Options<CalendarTaskOperationsListCalendarTasksData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
591
|
+
_id: string;
|
|
592
|
+
_infinite?: boolean;
|
|
593
|
+
tags?: ReadonlyArray<string>;
|
|
594
|
+
}];
|
|
595
|
+
/**
|
|
596
|
+
* Tasks due in a window, across every task collection the caller holds, in due order. Refused with 400 on the same window rules as the event listing.
|
|
597
|
+
*/
|
|
598
|
+
export declare const calendarTaskOperationsListCalendarTasksOptions: (options: Options<CalendarTaskOperationsListCalendarTasksData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapCalendarTaskListResponse, CalendarTaskOperationsListCalendarTasksError, import("../types.gen.js").RemitImapCalendarTaskListResponse, [Pick<Options<CalendarTaskOperationsListCalendarTasksData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
599
|
+
_id: string;
|
|
600
|
+
_infinite?: boolean;
|
|
601
|
+
tags?: ReadonlyArray<string>;
|
|
602
|
+
}]>, "queryFn"> & {
|
|
603
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapCalendarTaskListResponse, [Pick<Options<CalendarTaskOperationsListCalendarTasksData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
604
|
+
_id: string;
|
|
605
|
+
_infinite?: boolean;
|
|
606
|
+
tags?: ReadonlyArray<string>;
|
|
607
|
+
}], never> | undefined;
|
|
608
|
+
} & {
|
|
609
|
+
queryKey: [Pick<Options<CalendarTaskOperationsListCalendarTasksData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
610
|
+
_id: string;
|
|
611
|
+
_infinite?: boolean;
|
|
612
|
+
tags?: ReadonlyArray<string>;
|
|
613
|
+
}] & {
|
|
614
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapCalendarTaskListResponse;
|
|
615
|
+
[dataTagErrorSymbol]: CalendarTaskOperationsListCalendarTasksError;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* Create a task. Refused with 400 `not_a_task_calendar` when `calendarId` names an event collection.
|
|
620
|
+
*/
|
|
621
|
+
export declare const calendarTaskOperationsCreateCalendarTaskMutation: (options?: Partial<Options<CalendarTaskOperationsCreateCalendarTaskData>>) => UseMutationOptions<CalendarTaskOperationsCreateCalendarTaskResponse, CalendarTaskOperationsCreateCalendarTaskError, Options<CalendarTaskOperationsCreateCalendarTaskData>>;
|
|
622
|
+
/**
|
|
623
|
+
* Delete a task. Same `If-Match` precondition as the update.
|
|
624
|
+
*/
|
|
625
|
+
export declare const calendarTaskDetailOperationsDeleteCalendarTaskMutation: (options?: Partial<Options<CalendarTaskDetailOperationsDeleteCalendarTaskData>>) => UseMutationOptions<CalendarTaskDetailOperationsDeleteCalendarTaskResponse, CalendarTaskDetailOperationsDeleteCalendarTaskError, Options<CalendarTaskDetailOperationsDeleteCalendarTaskData>>;
|
|
626
|
+
export declare const calendarTaskDetailOperationsGetCalendarTaskQueryKey: (options: Options<CalendarTaskDetailOperationsGetCalendarTaskData>) => [Pick<Options<CalendarTaskDetailOperationsGetCalendarTaskData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
627
|
+
_id: string;
|
|
628
|
+
_infinite?: boolean;
|
|
629
|
+
tags?: ReadonlyArray<string>;
|
|
630
|
+
}];
|
|
631
|
+
export declare const calendarTaskDetailOperationsGetCalendarTaskOptions: (options: Options<CalendarTaskDetailOperationsGetCalendarTaskData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapCalendarTaskResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapCalendarTaskResponse, [Pick<Options<CalendarTaskDetailOperationsGetCalendarTaskData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
632
|
+
_id: string;
|
|
633
|
+
_infinite?: boolean;
|
|
634
|
+
tags?: ReadonlyArray<string>;
|
|
635
|
+
}]>, "queryFn"> & {
|
|
636
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapCalendarTaskResponse, [Pick<Options<CalendarTaskDetailOperationsGetCalendarTaskData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
637
|
+
_id: string;
|
|
638
|
+
_infinite?: boolean;
|
|
639
|
+
tags?: ReadonlyArray<string>;
|
|
640
|
+
}], never> | undefined;
|
|
641
|
+
} & {
|
|
642
|
+
queryKey: [Pick<Options<CalendarTaskDetailOperationsGetCalendarTaskData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
643
|
+
_id: string;
|
|
644
|
+
_infinite?: boolean;
|
|
645
|
+
tags?: ReadonlyArray<string>;
|
|
646
|
+
}] & {
|
|
647
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapCalendarTaskResponse;
|
|
648
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* Update a task. `If-Match` makes the write conditional on the etag the caller read; a mismatch is 412.
|
|
653
|
+
*/
|
|
654
|
+
export declare const calendarTaskDetailOperationsUpdateCalendarTaskMutation: (options?: Partial<Options<CalendarTaskDetailOperationsUpdateCalendarTaskData>>) => UseMutationOptions<CalendarTaskDetailOperationsUpdateCalendarTaskResponse, CalendarTaskDetailOperationsUpdateCalendarTaskError, Options<CalendarTaskDetailOperationsUpdateCalendarTaskData>>;
|
|
655
|
+
export declare const calendarOperationsListCalendarsQueryKey: (options?: Options<CalendarOperationsListCalendarsData>) => [Pick<Options<CalendarOperationsListCalendarsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
656
|
+
_id: string;
|
|
657
|
+
_infinite?: boolean;
|
|
658
|
+
tags?: ReadonlyArray<string>;
|
|
659
|
+
}];
|
|
660
|
+
/**
|
|
661
|
+
* List the caller's calendar collections. Provisions the account config's default collection when it has none, so a first read never comes back empty and no client has to know how a calendar gets made.
|
|
662
|
+
*/
|
|
663
|
+
export declare const calendarOperationsListCalendarsOptions: (options?: Options<CalendarOperationsListCalendarsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapCalendarListResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapCalendarListResponse, [Pick<Options<CalendarOperationsListCalendarsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
664
|
+
_id: string;
|
|
665
|
+
_infinite?: boolean;
|
|
666
|
+
tags?: ReadonlyArray<string>;
|
|
667
|
+
}]>, "queryFn"> & {
|
|
668
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapCalendarListResponse, [Pick<Options<CalendarOperationsListCalendarsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
669
|
+
_id: string;
|
|
670
|
+
_infinite?: boolean;
|
|
671
|
+
tags?: ReadonlyArray<string>;
|
|
672
|
+
}], never> | undefined;
|
|
673
|
+
} & {
|
|
674
|
+
queryKey: [Pick<Options<CalendarOperationsListCalendarsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
675
|
+
_id: string;
|
|
676
|
+
_infinite?: boolean;
|
|
677
|
+
tags?: ReadonlyArray<string>;
|
|
678
|
+
}] & {
|
|
679
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapCalendarListResponse;
|
|
680
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
/**
|
|
684
|
+
* Create a calendar collection. Refused with 400 when `urlSegment` is empty or already taken in this account config — the segment is the collection's identity, so a second create under the same one would otherwise silently return the collection that already exists. With `subscriptionUrl` the feed is fetched first and a fetch that fails is refused with 400 `subscription_unreachable`, naming why and never the URL.
|
|
685
|
+
*/
|
|
686
|
+
export declare const calendarOperationsCreateCalendarMutation: (options?: Partial<Options<CalendarOperationsCreateCalendarData>>) => UseMutationOptions<CalendarOperationsCreateCalendarResponse, CalendarOperationsCreateCalendarError, Options<CalendarOperationsCreateCalendarData>>;
|
|
687
|
+
/**
|
|
688
|
+
* Delete a calendar collection and every event in it. Refused with 400 for the account's default collection: it is the one place an accepted invitation or a first event can land, and an account with no calendar has nowhere to put an event.
|
|
689
|
+
*/
|
|
690
|
+
export declare const calendarDetailOperationsDeleteCalendarMutation: (options?: Partial<Options<CalendarDetailOperationsDeleteCalendarData>>) => UseMutationOptions<CalendarDetailOperationsDeleteCalendarResponse, CalendarDetailOperationsDeleteCalendarError, Options<CalendarDetailOperationsDeleteCalendarData>>;
|
|
691
|
+
export declare const calendarDetailOperationsGetCalendarQueryKey: (options: Options<CalendarDetailOperationsGetCalendarData>) => [Pick<Options<CalendarDetailOperationsGetCalendarData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
692
|
+
_id: string;
|
|
693
|
+
_infinite?: boolean;
|
|
694
|
+
tags?: ReadonlyArray<string>;
|
|
695
|
+
}];
|
|
696
|
+
export declare const calendarDetailOperationsGetCalendarOptions: (options: Options<CalendarDetailOperationsGetCalendarData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapCalendarResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapCalendarResponse, [Pick<Options<CalendarDetailOperationsGetCalendarData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
697
|
+
_id: string;
|
|
698
|
+
_infinite?: boolean;
|
|
699
|
+
tags?: ReadonlyArray<string>;
|
|
700
|
+
}]>, "queryFn"> & {
|
|
701
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapCalendarResponse, [Pick<Options<CalendarDetailOperationsGetCalendarData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
702
|
+
_id: string;
|
|
703
|
+
_infinite?: boolean;
|
|
704
|
+
tags?: ReadonlyArray<string>;
|
|
705
|
+
}], never> | undefined;
|
|
706
|
+
} & {
|
|
707
|
+
queryKey: [Pick<Options<CalendarDetailOperationsGetCalendarData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
708
|
+
_id: string;
|
|
709
|
+
_infinite?: boolean;
|
|
710
|
+
tags?: ReadonlyArray<string>;
|
|
711
|
+
}] & {
|
|
712
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapCalendarResponse;
|
|
713
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
* Update a calendar collection. `subscriptionEnabled` is refused with 400 `not_subscribed` on a collection that is not `Subscribed`. Turning it off stops the refresh and removes nothing.
|
|
718
|
+
*/
|
|
719
|
+
export declare const calendarDetailOperationsUpdateCalendarMutation: (options?: Partial<Options<CalendarDetailOperationsUpdateCalendarData>>) => UseMutationOptions<CalendarDetailOperationsUpdateCalendarResponse, CalendarDetailOperationsUpdateCalendarError, Options<CalendarDetailOperationsUpdateCalendarData>>;
|
|
720
|
+
/**
|
|
721
|
+
* Revoke the calendar's feed address. Every subscribed client starts getting 404 on its next poll. Answered 404 when the calendar has no feed, so a revoke is never reported as having taken something away that was not there.
|
|
722
|
+
*/
|
|
723
|
+
export declare const calendarDetailOperationsRevokeCalendarFeedMutation: (options?: Partial<Options<CalendarDetailOperationsRevokeCalendarFeedData>>) => UseMutationOptions<CalendarDetailOperationsRevokeCalendarFeedResponse, CalendarDetailOperationsRevokeCalendarFeedError, Options<CalendarDetailOperationsRevokeCalendarFeedData>>;
|
|
724
|
+
export declare const calendarDetailOperationsGetCalendarFeedQueryKey: (options: Options<CalendarDetailOperationsGetCalendarFeedData>) => [Pick<Options<CalendarDetailOperationsGetCalendarFeedData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
725
|
+
_id: string;
|
|
726
|
+
_infinite?: boolean;
|
|
727
|
+
tags?: ReadonlyArray<string>;
|
|
728
|
+
}];
|
|
729
|
+
/**
|
|
730
|
+
* Read whether this calendar has a feed address. Absent (404) until one is
|
|
731
|
+
* minted. The token is not here: it is stored as a hash, so the only
|
|
732
|
+
* moment it exists in the clear is the answer to the write below.
|
|
733
|
+
*/
|
|
734
|
+
export declare const calendarDetailOperationsGetCalendarFeedOptions: (options: Options<CalendarDetailOperationsGetCalendarFeedData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapCalendarFeedStateResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapCalendarFeedStateResponse, [Pick<Options<CalendarDetailOperationsGetCalendarFeedData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
735
|
+
_id: string;
|
|
736
|
+
_infinite?: boolean;
|
|
737
|
+
tags?: ReadonlyArray<string>;
|
|
738
|
+
}]>, "queryFn"> & {
|
|
739
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapCalendarFeedStateResponse, [Pick<Options<CalendarDetailOperationsGetCalendarFeedData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
740
|
+
_id: string;
|
|
741
|
+
_infinite?: boolean;
|
|
742
|
+
tags?: ReadonlyArray<string>;
|
|
743
|
+
}], never> | undefined;
|
|
744
|
+
} & {
|
|
745
|
+
queryKey: [Pick<Options<CalendarDetailOperationsGetCalendarFeedData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
746
|
+
_id: string;
|
|
747
|
+
_infinite?: boolean;
|
|
748
|
+
tags?: ReadonlyArray<string>;
|
|
749
|
+
}] & {
|
|
750
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapCalendarFeedStateResponse;
|
|
751
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
/**
|
|
755
|
+
* Mint the calendar's feed address, or replace the one it has, and answer
|
|
756
|
+
* with the token in the clear. Idempotent in address rather than in value:
|
|
757
|
+
* one calendar holds one token, so a second call rotates — the previous
|
|
758
|
+
* URL stops resolving, which is how a subscription handed to the wrong
|
|
759
|
+
* person is taken back.
|
|
760
|
+
*
|
|
761
|
+
* This is the only response that ever carries the plaintext. A client that
|
|
762
|
+
* does not keep it rotates again.
|
|
763
|
+
*/
|
|
764
|
+
export declare const calendarDetailOperationsPutCalendarFeedMutation: (options?: Partial<Options<CalendarDetailOperationsPutCalendarFeedData>>) => UseMutationOptions<CalendarDetailOperationsPutCalendarFeedResponse, CalendarDetailOperationsPutCalendarFeedError, Options<CalendarDetailOperationsPutCalendarFeedData>>;
|
|
765
|
+
export declare const configOperationsGetConfigQueryKey: (options?: Options<ConfigOperationsGetConfigData>) => [Pick<Options<ConfigOperationsGetConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
766
|
+
_id: string;
|
|
767
|
+
_infinite?: boolean;
|
|
768
|
+
tags?: ReadonlyArray<string>;
|
|
769
|
+
}];
|
|
770
|
+
/**
|
|
771
|
+
* Get the current user's configuration including accounts and addresses
|
|
772
|
+
*/
|
|
773
|
+
export declare const configOperationsGetConfigOptions: (options?: Options<ConfigOperationsGetConfigData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapConfigDescriptionResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapConfigDescriptionResponse, [Pick<Options<ConfigOperationsGetConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
774
|
+
_id: string;
|
|
775
|
+
_infinite?: boolean;
|
|
776
|
+
tags?: ReadonlyArray<string>;
|
|
777
|
+
}]>, "queryFn"> & {
|
|
778
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapConfigDescriptionResponse, [Pick<Options<ConfigOperationsGetConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
779
|
+
_id: string;
|
|
780
|
+
_infinite?: boolean;
|
|
781
|
+
tags?: ReadonlyArray<string>;
|
|
782
|
+
}], never> | undefined;
|
|
783
|
+
} & {
|
|
784
|
+
queryKey: [Pick<Options<ConfigOperationsGetConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
785
|
+
_id: string;
|
|
786
|
+
_infinite?: boolean;
|
|
787
|
+
tags?: ReadonlyArray<string>;
|
|
788
|
+
}] & {
|
|
789
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapConfigDescriptionResponse;
|
|
790
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
export declare const configOperationsExportConfigQueryKey: (options?: Options<ConfigOperationsExportConfigData>) => [Pick<Options<ConfigOperationsExportConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
794
|
+
_id: string;
|
|
795
|
+
_infinite?: boolean;
|
|
796
|
+
tags?: ReadonlyArray<string>;
|
|
797
|
+
}];
|
|
798
|
+
/**
|
|
799
|
+
* Export every configured setting for the caller as one versioned JSON document. Contains no credentials: no IMAP/SMTP password and no OAuth token, encrypted or otherwise, and the credential fields are structurally absent rather than blank. The document's own shape is not defined here - it is defined by the published JSON Schema for its `schemaVersion` (build/config-schema/reader-config.v<N>.schema.json), so a file keeps validating independent of this API's models.
|
|
800
|
+
*/
|
|
801
|
+
export declare const configOperationsExportConfigOptions: (options?: Options<ConfigOperationsExportConfigData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapConfigExportResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapConfigExportResponse, [Pick<Options<ConfigOperationsExportConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
802
|
+
_id: string;
|
|
803
|
+
_infinite?: boolean;
|
|
804
|
+
tags?: ReadonlyArray<string>;
|
|
805
|
+
}]>, "queryFn"> & {
|
|
806
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapConfigExportResponse, [Pick<Options<ConfigOperationsExportConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
807
|
+
_id: string;
|
|
808
|
+
_infinite?: boolean;
|
|
809
|
+
tags?: ReadonlyArray<string>;
|
|
810
|
+
}], never> | undefined;
|
|
811
|
+
} & {
|
|
812
|
+
queryKey: [Pick<Options<ConfigOperationsExportConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
813
|
+
_id: string;
|
|
814
|
+
_infinite?: boolean;
|
|
815
|
+
tags?: ReadonlyArray<string>;
|
|
816
|
+
}] & {
|
|
817
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapConfigExportResponse;
|
|
818
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
/**
|
|
822
|
+
* Validate, or validate and apply, a config document. `mode: validate` (the default) writes nothing and returns the same report an apply would. `onExisting: abort` (the default) refuses with 409 when this configuration already holds accounts, labels, filters or address flags. Nothing is written until the whole document has validated; a write failure after that aborts the remainder and the report names exactly what landed. Imported accounts arrive inactive with `connectionState: credentials_missing` (or `reauth_required` for OAuth) - the credentials the file deliberately omits are re-entered per account afterwards.
|
|
823
|
+
*/
|
|
824
|
+
export declare const configOperationsImportConfigMutation: (options?: Partial<Options<ConfigOperationsImportConfigData>>) => UseMutationOptions<ConfigOperationsImportConfigResponse, ConfigOperationsImportConfigError, Options<ConfigOperationsImportConfigData>>;
|
|
825
|
+
export declare const calendarFeedOperationsGetCalendarFeedIcalQueryKey: (options: Options<CalendarFeedOperationsGetCalendarFeedIcalData>) => [Pick<Options<CalendarFeedOperationsGetCalendarFeedIcalData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
826
|
+
_id: string;
|
|
827
|
+
_infinite?: boolean;
|
|
828
|
+
tags?: ReadonlyArray<string>;
|
|
829
|
+
}];
|
|
830
|
+
/**
|
|
831
|
+
* Serve a calendar as iCalendar text to whoever holds its secret address
|
|
832
|
+
* (issue #1067).
|
|
833
|
+
*
|
|
834
|
+
* Outside the session-auth surface on purpose: Apple Calendar, Google
|
|
835
|
+
* Calendar, Outlook and Thunderbird subscribe to a URL and never sign in,
|
|
836
|
+
* so the token in the path is the credential and the only one. It is
|
|
837
|
+
* compared against the stored hash rather than looked up in the clear, and
|
|
838
|
+
* an unknown, revoked or malformed token is the same 404 with the same body
|
|
839
|
+
* — a subscriber learns whether it still has access, and nothing else.
|
|
840
|
+
*/
|
|
841
|
+
export declare const calendarFeedOperationsGetCalendarFeedIcalOptions: (options: Options<CalendarFeedOperationsGetCalendarFeedIcalData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<string, string, string, [Pick<Options<CalendarFeedOperationsGetCalendarFeedIcalData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
842
|
+
_id: string;
|
|
843
|
+
_infinite?: boolean;
|
|
844
|
+
tags?: ReadonlyArray<string>;
|
|
845
|
+
}]>, "queryFn"> & {
|
|
846
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<string, [Pick<Options<CalendarFeedOperationsGetCalendarFeedIcalData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
847
|
+
_id: string;
|
|
848
|
+
_infinite?: boolean;
|
|
849
|
+
tags?: ReadonlyArray<string>;
|
|
850
|
+
}], never> | undefined;
|
|
851
|
+
} & {
|
|
852
|
+
queryKey: [Pick<Options<CalendarFeedOperationsGetCalendarFeedIcalData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
853
|
+
_id: string;
|
|
854
|
+
_infinite?: boolean;
|
|
855
|
+
tags?: ReadonlyArray<string>;
|
|
856
|
+
}] & {
|
|
857
|
+
[dataTagSymbol]: string;
|
|
858
|
+
[dataTagErrorSymbol]: string;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
export declare const threadOperationsListThreadsQueryKey: (options: Options<ThreadOperationsListThreadsData>) => [Pick<Options<ThreadOperationsListThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
862
|
+
_id: string;
|
|
863
|
+
_infinite?: boolean;
|
|
864
|
+
tags?: ReadonlyArray<string>;
|
|
865
|
+
}];
|
|
866
|
+
export declare const threadOperationsListThreadsOptions: (options: Options<ThreadOperationsListThreadsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapThreadMessageListResponse, ThreadOperationsListThreadsError, import("../types.gen.js").RemitImapThreadMessageListResponse, [Pick<Options<ThreadOperationsListThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
867
|
+
_id: string;
|
|
868
|
+
_infinite?: boolean;
|
|
869
|
+
tags?: ReadonlyArray<string>;
|
|
870
|
+
}]>, "queryFn"> & {
|
|
871
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapThreadMessageListResponse, [Pick<Options<ThreadOperationsListThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
872
|
+
_id: string;
|
|
873
|
+
_infinite?: boolean;
|
|
874
|
+
tags?: ReadonlyArray<string>;
|
|
875
|
+
}], never> | undefined;
|
|
876
|
+
} & {
|
|
877
|
+
queryKey: [Pick<Options<ThreadOperationsListThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
878
|
+
_id: string;
|
|
879
|
+
_infinite?: boolean;
|
|
880
|
+
tags?: ReadonlyArray<string>;
|
|
881
|
+
}] & {
|
|
882
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapThreadMessageListResponse;
|
|
883
|
+
[dataTagErrorSymbol]: ThreadOperationsListThreadsError;
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
export declare const threadOperationsSearchThreadsQueryKey: (options: Options<ThreadOperationsSearchThreadsData>) => [Pick<Options<ThreadOperationsSearchThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
887
|
+
_id: string;
|
|
888
|
+
_infinite?: boolean;
|
|
889
|
+
tags?: ReadonlyArray<string>;
|
|
890
|
+
}];
|
|
891
|
+
export declare const threadOperationsSearchThreadsOptions: (options: Options<ThreadOperationsSearchThreadsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapThreadSearchResponse, ThreadOperationsSearchThreadsError, import("../types.gen.js").RemitImapThreadSearchResponse, [Pick<Options<ThreadOperationsSearchThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
892
|
+
_id: string;
|
|
893
|
+
_infinite?: boolean;
|
|
894
|
+
tags?: ReadonlyArray<string>;
|
|
895
|
+
}]>, "queryFn"> & {
|
|
896
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapThreadSearchResponse, [Pick<Options<ThreadOperationsSearchThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
897
|
+
_id: string;
|
|
898
|
+
_infinite?: boolean;
|
|
899
|
+
tags?: ReadonlyArray<string>;
|
|
900
|
+
}], never> | undefined;
|
|
901
|
+
} & {
|
|
902
|
+
queryKey: [Pick<Options<ThreadOperationsSearchThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
903
|
+
_id: string;
|
|
904
|
+
_infinite?: boolean;
|
|
905
|
+
tags?: ReadonlyArray<string>;
|
|
906
|
+
}] & {
|
|
907
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapThreadSearchResponse;
|
|
908
|
+
[dataTagErrorSymbol]: ThreadOperationsSearchThreadsError;
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
/**
|
|
912
|
+
* Request full erasure of the current user's account and all associated data
|
|
913
|
+
*/
|
|
914
|
+
export declare const meOperationsDeleteMeMutation: (options?: Partial<Options<MeOperationsDeleteMeData>>) => UseMutationOptions<MeOperationsDeleteMeResponse, MeOperationsDeleteMeError, Options<MeOperationsDeleteMeData>>;
|
|
915
|
+
/**
|
|
916
|
+
* Request an export of all account data as a ZIP archive of .eml files. Returns immediately with an exportId; check GET /me/export/{exportId} for status and downloadUrl.
|
|
917
|
+
*/
|
|
918
|
+
export declare const meOperationsCreateExportMutation: (options?: Partial<Options<MeOperationsCreateExportData>>) => UseMutationOptions<MeOperationsCreateExportResponse, MeOperationsCreateExportError, Options<MeOperationsCreateExportData>>;
|
|
919
|
+
export declare const meOperationsGetExportQueryKey: (options: Options<MeOperationsGetExportData>) => [Pick<Options<MeOperationsGetExportData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
920
|
+
_id: string;
|
|
921
|
+
_infinite?: boolean;
|
|
922
|
+
tags?: ReadonlyArray<string>;
|
|
923
|
+
}];
|
|
924
|
+
/**
|
|
925
|
+
* Get the status of a previously requested data export. When state is Ready, downloadUrl holds a 30-day presigned S3 URL.
|
|
926
|
+
*/
|
|
927
|
+
export declare const meOperationsGetExportOptions: (options: Options<MeOperationsGetExportData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapAccountExportRequestResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapAccountExportRequestResponse, [Pick<Options<MeOperationsGetExportData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
928
|
+
_id: string;
|
|
929
|
+
_infinite?: boolean;
|
|
930
|
+
tags?: ReadonlyArray<string>;
|
|
931
|
+
}]>, "queryFn"> & {
|
|
932
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapAccountExportRequestResponse, [Pick<Options<MeOperationsGetExportData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
933
|
+
_id: string;
|
|
934
|
+
_infinite?: boolean;
|
|
935
|
+
tags?: ReadonlyArray<string>;
|
|
936
|
+
}], never> | undefined;
|
|
937
|
+
} & {
|
|
938
|
+
queryKey: [Pick<Options<MeOperationsGetExportData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
939
|
+
_id: string;
|
|
940
|
+
_infinite?: boolean;
|
|
941
|
+
tags?: ReadonlyArray<string>;
|
|
942
|
+
}] & {
|
|
943
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapAccountExportRequestResponse;
|
|
944
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
export declare const meOperationsListQuarantineQueryKey: (options?: Options<MeOperationsListQuarantineData>) => [Pick<Options<MeOperationsListQuarantineData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
948
|
+
_id: string;
|
|
949
|
+
_infinite?: boolean;
|
|
950
|
+
tags?: ReadonlyArray<string>;
|
|
951
|
+
}];
|
|
952
|
+
/**
|
|
953
|
+
* List every message the sync path could not read, for the current user across all of their mail accounts (issue #72). Backs the quarantine section in settings. Unpaginated: the list is small by design, and an entry is a defect waiting to be reported rather than a page of mail.
|
|
954
|
+
*/
|
|
955
|
+
export declare const meOperationsListQuarantineOptions: (options?: Options<MeOperationsListQuarantineData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapQuarantineListResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapQuarantineListResponse, [Pick<Options<MeOperationsListQuarantineData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
956
|
+
_id: string;
|
|
957
|
+
_infinite?: boolean;
|
|
958
|
+
tags?: ReadonlyArray<string>;
|
|
959
|
+
}]>, "queryFn"> & {
|
|
960
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapQuarantineListResponse, [Pick<Options<MeOperationsListQuarantineData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
961
|
+
_id: string;
|
|
962
|
+
_infinite?: boolean;
|
|
963
|
+
tags?: ReadonlyArray<string>;
|
|
964
|
+
}], never> | undefined;
|
|
965
|
+
} & {
|
|
966
|
+
queryKey: [Pick<Options<MeOperationsListQuarantineData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
967
|
+
_id: string;
|
|
968
|
+
_infinite?: boolean;
|
|
969
|
+
tags?: ReadonlyArray<string>;
|
|
970
|
+
}] & {
|
|
971
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapQuarantineListResponse;
|
|
972
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
export declare const meOperationsListVipSuggestionsQueryKey: (options?: Options<MeOperationsListVipSuggestionsData>) => [Pick<Options<MeOperationsListVipSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
976
|
+
_id: string;
|
|
977
|
+
_infinite?: boolean;
|
|
978
|
+
tags?: ReadonlyArray<string>;
|
|
979
|
+
}];
|
|
980
|
+
/**
|
|
981
|
+
* List wellknown senders the user has not yet promoted to VIP. Ranked by `replyCount + inboundCount` desc with `lastInboundAt` desc as the tie-breaker. Capped at 10.
|
|
982
|
+
*/
|
|
983
|
+
export declare const meOperationsListVipSuggestionsOptions: (options?: Options<MeOperationsListVipSuggestionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapVipSuggestionsResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapVipSuggestionsResponse, [Pick<Options<MeOperationsListVipSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
984
|
+
_id: string;
|
|
985
|
+
_infinite?: boolean;
|
|
986
|
+
tags?: ReadonlyArray<string>;
|
|
987
|
+
}]>, "queryFn"> & {
|
|
988
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapVipSuggestionsResponse, [Pick<Options<MeOperationsListVipSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
989
|
+
_id: string;
|
|
990
|
+
_infinite?: boolean;
|
|
991
|
+
tags?: ReadonlyArray<string>;
|
|
992
|
+
}], never> | undefined;
|
|
993
|
+
} & {
|
|
994
|
+
queryKey: [Pick<Options<MeOperationsListVipSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
995
|
+
_id: string;
|
|
996
|
+
_infinite?: boolean;
|
|
997
|
+
tags?: ReadonlyArray<string>;
|
|
998
|
+
}] & {
|
|
999
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapVipSuggestionsResponse;
|
|
1000
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
/**
|
|
1004
|
+
* Copy messages to a destination mailbox
|
|
1005
|
+
*/
|
|
1006
|
+
export declare const messageBulkOperationsCopyMessagesMutation: (options?: Partial<Options<MessageBulkOperationsCopyMessagesData>>) => UseMutationOptions<MessageBulkOperationsCopyMessagesResponse, MessageBulkOperationsCopyMessagesError, Options<MessageBulkOperationsCopyMessagesData>>;
|
|
1007
|
+
/**
|
|
1008
|
+
* Delete messages (move to Trash or permanent delete)
|
|
1009
|
+
*/
|
|
1010
|
+
export declare const messageBulkOperationsDeleteMessagesMutation: (options?: Partial<Options<MessageBulkOperationsDeleteMessagesData>>) => UseMutationOptions<MessageBulkOperationsDeleteMessagesResponse, MessageBulkOperationsDeleteMessagesError, Options<MessageBulkOperationsDeleteMessagesData>>;
|
|
1011
|
+
/**
|
|
1012
|
+
* Update flags on multiple messages
|
|
1013
|
+
*/
|
|
1014
|
+
export declare const messageBulkOperationsUpdateFlagsMutation: (options?: Partial<Options<MessageBulkOperationsUpdateFlagsData>>) => UseMutationOptions<MessageBulkOperationsUpdateFlagsResponse, MessageBulkOperationsUpdateFlagsError, Options<MessageBulkOperationsUpdateFlagsData>>;
|
|
1015
|
+
/**
|
|
1016
|
+
* 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.
|
|
1017
|
+
*/
|
|
1018
|
+
export declare const messageBulkOperationsUpdateMessageLabelsMutation: (options?: Partial<Options<MessageBulkOperationsUpdateMessageLabelsData>>) => UseMutationOptions<MessageBulkOperationsUpdateMessageLabelsResponse, MessageBulkOperationsUpdateMessageLabelsError, Options<MessageBulkOperationsUpdateMessageLabelsData>>;
|
|
1019
|
+
export declare const messageBulkOperationsMoveMessagesMutation: (options?: Partial<Options<MessageBulkOperationsMoveMessagesData>>) => UseMutationOptions<MessageBulkOperationsMoveMessagesResponse, MessageBulkOperationsMoveMessagesError, Options<MessageBulkOperationsMoveMessagesData>>;
|
|
1020
|
+
/**
|
|
1021
|
+
* 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.
|
|
1022
|
+
*/
|
|
1023
|
+
export declare const messageBulkOperationsNotSpamMutation: (options?: Partial<Options<MessageBulkOperationsNotSpamData>>) => UseMutationOptions<MessageBulkOperationsNotSpamResponse, MessageBulkOperationsNotSpamError, Options<MessageBulkOperationsNotSpamData>>;
|
|
1024
|
+
/**
|
|
1025
|
+
* 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.
|
|
1026
|
+
*/
|
|
1027
|
+
export declare const messageBulkOperationsReportSpamMutation: (options?: Partial<Options<MessageBulkOperationsReportSpamData>>) => UseMutationOptions<MessageBulkOperationsReportSpamResponse, MessageBulkOperationsReportSpamError, Options<MessageBulkOperationsReportSpamData>>;
|
|
1028
|
+
export declare const messageOperationsDescribeMessageQueryKey: (options: Options<MessageOperationsDescribeMessageData>) => [Pick<Options<MessageOperationsDescribeMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1029
|
+
_id: string;
|
|
1030
|
+
_infinite?: boolean;
|
|
1031
|
+
tags?: ReadonlyArray<string>;
|
|
1032
|
+
}];
|
|
1033
|
+
export declare const messageOperationsDescribeMessageOptions: (options: Options<MessageOperationsDescribeMessageData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapDescribeMessageResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapDescribeMessageResponse, [Pick<Options<MessageOperationsDescribeMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1034
|
+
_id: string;
|
|
1035
|
+
_infinite?: boolean;
|
|
1036
|
+
tags?: ReadonlyArray<string>;
|
|
1037
|
+
}]>, "queryFn"> & {
|
|
1038
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapDescribeMessageResponse, [Pick<Options<MessageOperationsDescribeMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1039
|
+
_id: string;
|
|
1040
|
+
_infinite?: boolean;
|
|
1041
|
+
tags?: ReadonlyArray<string>;
|
|
1042
|
+
}], never> | undefined;
|
|
1043
|
+
} & {
|
|
1044
|
+
queryKey: [Pick<Options<MessageOperationsDescribeMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1045
|
+
_id: string;
|
|
1046
|
+
_infinite?: boolean;
|
|
1047
|
+
tags?: ReadonlyArray<string>;
|
|
1048
|
+
}] & {
|
|
1049
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapDescribeMessageResponse;
|
|
1050
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
export declare const messageCalendarSuggestionOperationsListMessageCalendarSuggestionsQueryKey: (options: Options<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData>) => [Pick<Options<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1054
|
+
_id: string;
|
|
1055
|
+
_infinite?: boolean;
|
|
1056
|
+
tags?: ReadonlyArray<string>;
|
|
1057
|
+
}];
|
|
1058
|
+
/**
|
|
1059
|
+
* Every suggestion read out of one message, in whatever state each has reached — a superseded revision included, so the card can say which revision replaced it.
|
|
1060
|
+
*/
|
|
1061
|
+
export declare const messageCalendarSuggestionOperationsListMessageCalendarSuggestionsOptions: (options: Options<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1062
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
1063
|
+
items: Array<import("../types.gen.js").RemitImapCalendarSuggestionResponse>;
|
|
1064
|
+
}, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsError, {
|
|
1065
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
1066
|
+
items: Array<import("../types.gen.js").RemitImapCalendarSuggestionResponse>;
|
|
1067
|
+
}, [Pick<Options<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1068
|
+
_id: string;
|
|
1069
|
+
_infinite?: boolean;
|
|
1070
|
+
tags?: ReadonlyArray<string>;
|
|
1071
|
+
}]>, "queryFn"> & {
|
|
1072
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1073
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
1074
|
+
items: Array<import("../types.gen.js").RemitImapCalendarSuggestionResponse>;
|
|
1075
|
+
}, [Pick<Options<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1076
|
+
_id: string;
|
|
1077
|
+
_infinite?: boolean;
|
|
1078
|
+
tags?: ReadonlyArray<string>;
|
|
1079
|
+
}], never> | undefined;
|
|
1080
|
+
} & {
|
|
1081
|
+
queryKey: [Pick<Options<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1082
|
+
_id: string;
|
|
1083
|
+
_infinite?: boolean;
|
|
1084
|
+
tags?: ReadonlyArray<string>;
|
|
1085
|
+
}] & {
|
|
1086
|
+
[dataTagSymbol]: {
|
|
1087
|
+
continuationToken?: import("../types.gen.js").String800;
|
|
1088
|
+
items: Array<import("../types.gen.js").RemitImapCalendarSuggestionResponse>;
|
|
1089
|
+
};
|
|
1090
|
+
[dataTagErrorSymbol]: MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsError;
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
export declare const messageOperationsUpdateMessageFlagsMutation: (options?: Partial<Options<MessageOperationsUpdateMessageFlagsData>>) => UseMutationOptions<MessageOperationsUpdateMessageFlagsResponse, MessageOperationsUpdateMessageFlagsError, Options<MessageOperationsUpdateMessageFlagsData>>;
|
|
1094
|
+
export declare const messageOperationsGetRawMessageQueryKey: (options: Options<MessageOperationsGetRawMessageData>) => [Pick<Options<MessageOperationsGetRawMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1095
|
+
_id: string;
|
|
1096
|
+
_infinite?: boolean;
|
|
1097
|
+
tags?: ReadonlyArray<string>;
|
|
1098
|
+
}];
|
|
1099
|
+
/**
|
|
1100
|
+
* Get the raw RFC822/MIME source of a message (headers and body) for inspection.
|
|
1101
|
+
*/
|
|
1102
|
+
export declare const messageOperationsGetRawMessageOptions: (options: Options<MessageOperationsGetRawMessageData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapRawMessageResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapRawMessageResponse, [Pick<Options<MessageOperationsGetRawMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1103
|
+
_id: string;
|
|
1104
|
+
_infinite?: boolean;
|
|
1105
|
+
tags?: ReadonlyArray<string>;
|
|
1106
|
+
}]>, "queryFn"> & {
|
|
1107
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapRawMessageResponse, [Pick<Options<MessageOperationsGetRawMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1108
|
+
_id: string;
|
|
1109
|
+
_infinite?: boolean;
|
|
1110
|
+
tags?: ReadonlyArray<string>;
|
|
1111
|
+
}], never> | undefined;
|
|
1112
|
+
} & {
|
|
1113
|
+
queryKey: [Pick<Options<MessageOperationsGetRawMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1114
|
+
_id: string;
|
|
1115
|
+
_infinite?: boolean;
|
|
1116
|
+
tags?: ReadonlyArray<string>;
|
|
1117
|
+
}] & {
|
|
1118
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapRawMessageResponse;
|
|
1119
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
export declare const outboxOperationsListOutboxMessagesQueryKey: (options?: Options<OutboxOperationsListOutboxMessagesData>) => [Pick<Options<OutboxOperationsListOutboxMessagesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1123
|
+
_id: string;
|
|
1124
|
+
_infinite?: boolean;
|
|
1125
|
+
tags?: ReadonlyArray<string>;
|
|
1126
|
+
}];
|
|
1127
|
+
/**
|
|
1128
|
+
* List outbox messages for the current account
|
|
1129
|
+
*/
|
|
1130
|
+
export declare const outboxOperationsListOutboxMessagesOptions: (options?: Options<OutboxOperationsListOutboxMessagesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapOutboxMessageListResponse, OutboxOperationsListOutboxMessagesError, import("../types.gen.js").RemitImapOutboxMessageListResponse, [Pick<Options<OutboxOperationsListOutboxMessagesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1131
|
+
_id: string;
|
|
1132
|
+
_infinite?: boolean;
|
|
1133
|
+
tags?: ReadonlyArray<string>;
|
|
1134
|
+
}]>, "queryFn"> & {
|
|
1135
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapOutboxMessageListResponse, [Pick<Options<OutboxOperationsListOutboxMessagesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1136
|
+
_id: string;
|
|
1137
|
+
_infinite?: boolean;
|
|
1138
|
+
tags?: ReadonlyArray<string>;
|
|
1139
|
+
}], never> | undefined;
|
|
1140
|
+
} & {
|
|
1141
|
+
queryKey: [Pick<Options<OutboxOperationsListOutboxMessagesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1142
|
+
_id: string;
|
|
1143
|
+
_infinite?: boolean;
|
|
1144
|
+
tags?: ReadonlyArray<string>;
|
|
1145
|
+
}] & {
|
|
1146
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapOutboxMessageListResponse;
|
|
1147
|
+
[dataTagErrorSymbol]: OutboxOperationsListOutboxMessagesError;
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
/**
|
|
1151
|
+
* Create a new outbox message (draft or send immediately). A send-immediately create from an account whose syncedServices leave out Mail is refused with 400 `mail_sync_off`.
|
|
1152
|
+
*/
|
|
1153
|
+
export declare const outboxOperationsCreateOutboxMessageMutation: (options?: Partial<Options<OutboxOperationsCreateOutboxMessageData>>) => UseMutationOptions<OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageError, Options<OutboxOperationsCreateOutboxMessageData>>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Delete a draft or failed outbox message
|
|
1156
|
+
*/
|
|
1157
|
+
export declare const outboxDetailOperationsDeleteOutboxMessageMutation: (options?: Partial<Options<OutboxDetailOperationsDeleteOutboxMessageData>>) => UseMutationOptions<OutboxDetailOperationsDeleteOutboxMessageResponse, OutboxDetailOperationsDeleteOutboxMessageError, Options<OutboxDetailOperationsDeleteOutboxMessageData>>;
|
|
1158
|
+
export declare const outboxDetailOperationsGetOutboxMessageQueryKey: (options: Options<OutboxDetailOperationsGetOutboxMessageData>) => [Pick<Options<OutboxDetailOperationsGetOutboxMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1159
|
+
_id: string;
|
|
1160
|
+
_infinite?: boolean;
|
|
1161
|
+
tags?: ReadonlyArray<string>;
|
|
1162
|
+
}];
|
|
1163
|
+
/**
|
|
1164
|
+
* Get an outbox message by ID
|
|
1165
|
+
*/
|
|
1166
|
+
export declare const outboxDetailOperationsGetOutboxMessageOptions: (options: Options<OutboxDetailOperationsGetOutboxMessageData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapOutboxMessageResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapOutboxMessageResponse, [Pick<Options<OutboxDetailOperationsGetOutboxMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1167
|
+
_id: string;
|
|
1168
|
+
_infinite?: boolean;
|
|
1169
|
+
tags?: ReadonlyArray<string>;
|
|
1170
|
+
}]>, "queryFn"> & {
|
|
1171
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapOutboxMessageResponse, [Pick<Options<OutboxDetailOperationsGetOutboxMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1172
|
+
_id: string;
|
|
1173
|
+
_infinite?: boolean;
|
|
1174
|
+
tags?: ReadonlyArray<string>;
|
|
1175
|
+
}], never> | undefined;
|
|
1176
|
+
} & {
|
|
1177
|
+
queryKey: [Pick<Options<OutboxDetailOperationsGetOutboxMessageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1178
|
+
_id: string;
|
|
1179
|
+
_infinite?: boolean;
|
|
1180
|
+
tags?: ReadonlyArray<string>;
|
|
1181
|
+
}] & {
|
|
1182
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapOutboxMessageResponse;
|
|
1183
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
/**
|
|
1187
|
+
* Update a draft outbox message
|
|
1188
|
+
*/
|
|
1189
|
+
export declare const outboxDetailOperationsUpdateOutboxMessageMutation: (options?: Partial<Options<OutboxDetailOperationsUpdateOutboxMessageData>>) => UseMutationOptions<OutboxDetailOperationsUpdateOutboxMessageResponse, OutboxDetailOperationsUpdateOutboxMessageError, Options<OutboxDetailOperationsUpdateOutboxMessageData>>;
|
|
1190
|
+
/**
|
|
1191
|
+
* Reserve room on a draft for a file, and get somewhere to put it
|
|
1192
|
+
*/
|
|
1193
|
+
export declare const outboxDetailOperationsMintOutboxAttachmentMutation: (options?: Partial<Options<OutboxDetailOperationsMintOutboxAttachmentData>>) => UseMutationOptions<OutboxDetailOperationsMintOutboxAttachmentResponse, OutboxDetailOperationsMintOutboxAttachmentError, Options<OutboxDetailOperationsMintOutboxAttachmentData>>;
|
|
1194
|
+
/**
|
|
1195
|
+
* Confirm an uploaded file against the object storage now holds
|
|
1196
|
+
*/
|
|
1197
|
+
export declare const outboxAttachmentOperationsCompleteOutboxAttachmentMutation: (options?: Partial<Options<OutboxAttachmentOperationsCompleteOutboxAttachmentData>>) => UseMutationOptions<OutboxAttachmentOperationsCompleteOutboxAttachmentResponse, OutboxAttachmentOperationsCompleteOutboxAttachmentError, Options<OutboxAttachmentOperationsCompleteOutboxAttachmentData>>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Queue a draft message for sending. A draft on an account whose syncedServices leave out Mail is refused with 400 `mail_sync_off`, and stays a draft.
|
|
1200
|
+
*/
|
|
1201
|
+
export declare const outboxDetailOperationsSendOutboxMessageMutation: (options?: Partial<Options<OutboxDetailOperationsSendOutboxMessageData>>) => UseMutationOptions<OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsSendOutboxMessageError, Options<OutboxDetailOperationsSendOutboxMessageData>>;
|
|
1202
|
+
export declare const userSettingsOperationsGetUserSettingsQueryKey: (options?: Options<UserSettingsOperationsGetUserSettingsData>) => [Pick<Options<UserSettingsOperationsGetUserSettingsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1203
|
+
_id: string;
|
|
1204
|
+
_infinite?: boolean;
|
|
1205
|
+
tags?: ReadonlyArray<string>;
|
|
1206
|
+
}];
|
|
1207
|
+
/**
|
|
1208
|
+
* Read the caller's settings.
|
|
1209
|
+
*/
|
|
1210
|
+
export declare const userSettingsOperationsGetUserSettingsOptions: (options?: Options<UserSettingsOperationsGetUserSettingsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapUserSettingsResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapUserSettingsResponse, [Pick<Options<UserSettingsOperationsGetUserSettingsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1211
|
+
_id: string;
|
|
1212
|
+
_infinite?: boolean;
|
|
1213
|
+
tags?: ReadonlyArray<string>;
|
|
1214
|
+
}]>, "queryFn"> & {
|
|
1215
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapUserSettingsResponse, [Pick<Options<UserSettingsOperationsGetUserSettingsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1216
|
+
_id: string;
|
|
1217
|
+
_infinite?: boolean;
|
|
1218
|
+
tags?: ReadonlyArray<string>;
|
|
1219
|
+
}], never> | undefined;
|
|
1220
|
+
} & {
|
|
1221
|
+
queryKey: [Pick<Options<UserSettingsOperationsGetUserSettingsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1222
|
+
_id: string;
|
|
1223
|
+
_infinite?: boolean;
|
|
1224
|
+
tags?: ReadonlyArray<string>;
|
|
1225
|
+
}] & {
|
|
1226
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapUserSettingsResponse;
|
|
1227
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
1228
|
+
};
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* Change the caller's settings. Answers with every setting as it now stands.
|
|
1232
|
+
*/
|
|
1233
|
+
export declare const userSettingsOperationsUpdateUserSettingsMutation: (options?: Partial<Options<UserSettingsOperationsUpdateUserSettingsData>>) => UseMutationOptions<UserSettingsOperationsUpdateUserSettingsResponse, UserSettingsOperationsUpdateUserSettingsError, Options<UserSettingsOperationsUpdateUserSettingsData>>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Clear the chosen default invitation sender. Invitations then go out from the account an event is on. Answers with every setting as it now stands.
|
|
1236
|
+
*/
|
|
1237
|
+
export declare const userSettingsOperationsClearDefaultInvitationSenderMutation: (options?: Partial<Options<UserSettingsOperationsClearDefaultInvitationSenderData>>) => UseMutationOptions<UserSettingsOperationsClearDefaultInvitationSenderResponse, UserSettingsOperationsClearDefaultInvitationSenderError, Options<UserSettingsOperationsClearDefaultInvitationSenderData>>;
|
|
1238
|
+
export declare const systemOperationsGetSystemUpdateQueryKey: (options?: Options<SystemOperationsGetSystemUpdateData>) => [Pick<Options<SystemOperationsGetSystemUpdateData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1239
|
+
_id: string;
|
|
1240
|
+
_infinite?: boolean;
|
|
1241
|
+
tags?: ReadonlyArray<string>;
|
|
1242
|
+
}];
|
|
1243
|
+
/**
|
|
1244
|
+
* Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. With `refresh=true`, records a check request on the control volume for the updater to pick up and answers with the stored state as it stands; the caller watches `check.lastCheckedAt` for the updater's answer. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
|
|
1245
|
+
*/
|
|
1246
|
+
export declare const systemOperationsGetSystemUpdateOptions: (options?: Options<SystemOperationsGetSystemUpdateData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapSystemUpdateResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapSystemUpdateResponse, [Pick<Options<SystemOperationsGetSystemUpdateData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1247
|
+
_id: string;
|
|
1248
|
+
_infinite?: boolean;
|
|
1249
|
+
tags?: ReadonlyArray<string>;
|
|
1250
|
+
}]>, "queryFn"> & {
|
|
1251
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapSystemUpdateResponse, [Pick<Options<SystemOperationsGetSystemUpdateData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1252
|
+
_id: string;
|
|
1253
|
+
_infinite?: boolean;
|
|
1254
|
+
tags?: ReadonlyArray<string>;
|
|
1255
|
+
}], never> | undefined;
|
|
1256
|
+
} & {
|
|
1257
|
+
queryKey: [Pick<Options<SystemOperationsGetSystemUpdateData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1258
|
+
_id: string;
|
|
1259
|
+
_infinite?: boolean;
|
|
1260
|
+
tags?: ReadonlyArray<string>;
|
|
1261
|
+
}] & {
|
|
1262
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapSystemUpdateResponse;
|
|
1263
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
/**
|
|
1267
|
+
* Request installation of a specific release. Writes the request to the control seam and returns 202 with the same resource, including a runId. 409 when a run is in flight, 422 when the target is not the manifest's version. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
|
|
1268
|
+
*/
|
|
1269
|
+
export declare const systemOperationsApplySystemUpdateMutation: (options?: Partial<Options<SystemOperationsApplySystemUpdateData>>) => UseMutationOptions<SystemOperationsApplySystemUpdateResponse, SystemOperationsApplySystemUpdateError, Options<SystemOperationsApplySystemUpdateData>>;
|
|
1270
|
+
export declare const unifiedThreadOperationsListAllThreadsQueryKey: (options?: Options<UnifiedThreadOperationsListAllThreadsData>) => [Pick<Options<UnifiedThreadOperationsListAllThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1271
|
+
_id: string;
|
|
1272
|
+
_infinite?: boolean;
|
|
1273
|
+
tags?: ReadonlyArray<string>;
|
|
1274
|
+
}];
|
|
1275
|
+
/**
|
|
1276
|
+
* List threads across all non-muted accounts of the caller, ordered by sentDate desc (search mode ranks sender matches first, see below). Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
|
|
1277
|
+
*
|
|
1278
|
+
* INBOX scope: results are filtered to each account's top-level INBOX, matched by exact path `fullPath === "INBOX"` (RFC 6154 defines no Inbox special-use). By design this excludes namespaced sub-paths like `INBOX/Receipts` and non-English server primaries — the unified inbox is each account's primary INBOX, not its sub-folders. Soft-deleted rows are also excluded.
|
|
1279
|
+
*
|
|
1280
|
+
* Mute exclusion: muted accounts and muted mailboxes are excluded. The inbox/mute filter set is rebuilt per page from live state, so muting/unmuting a mailbox mid-pagination takes effect on the next page (never retroactively).
|
|
1281
|
+
*
|
|
1282
|
+
* Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent. In the default (INBOX) mode the INBOX/deleted filter is applied after the index read with a bounded read window per request, so a page may return FEWER than `limit` rows while still carrying a `continuationToken` — treat the presence of the token (not a full page) as the "more results" signal. No rows are skipped or duplicated across pages.
|
|
1283
|
+
*
|
|
1284
|
+
* Starred mode (`starred=true`): served by the `byStarred` LSI4 instead. A star is a marker on the mail rather than on its placement, so the INBOX scope does not apply and a starred thread in Archive is still returned. Excluded are muted and soft-deleted rows as usual, plus the folders a star never surfaces from: Junk, Trash, and Gmail's All Mail (a second copy of everything, whose rows would otherwise double every starred message). All filtering happens in the query, so a page is short only when the results are exhausted. Rows are per mailbox: the same mail filed in two folders is two rows sharing a `threadId`, and a client rendering one row per conversation collapses by `threadId` across the pages it has accumulated.
|
|
1285
|
+
*
|
|
1286
|
+
* Search mode (`query=<text>`): the listing widens past the INBOX scope to every non-muted mailbox of every non-muted account, and returns only rows whose subject, From address or body text matches the text. This is the unscoped search of the daily brief: one query reaching every folder of every account. Whitespace splits the text into terms and every term must match (AND), each against subject OR From OR body. Matching is case-insensitive substring, not tokenized full-text, so it does not stem. Rows come in two tiers: a row whose From matches any term ranks above a row that only mentions the terms in its subject or body text, and each tier runs in date order.
|
|
1287
|
+
*
|
|
1288
|
+
* Body text is the stored preview the row carries — the first prose of the message with quoted replies removed, which is the same text the row renders under its subject. A term further into a long message is not reached; a term the reader can see on the row is.
|
|
1289
|
+
*
|
|
1290
|
+
* Search scope: every non-muted mailbox EXCEPT Trash. The scope is defined by what it excludes, so anything a server offers that is not on that list is searched — Spam, Drafts and Gmail's virtual folders (All Mail, Starred, Important) included. Spam is deliberately in scope: the point of an unscoped search is that it reaches the folders the user did not think to look in. Combining `query` with `starred=true` searches the starred scope instead.
|
|
1291
|
+
*
|
|
1292
|
+
* Duplicates: a virtual folder holds a second copy of mail that also lives in a real folder, so a backend keying a row by its mailbox returns the same message several times — a starred, Important Gmail inbox message four times. The extras are dropped from the response by message identity, keeping the copy in a real folder, so one message is one row. This is done after the read rather than by barring those folders from the scope, because a message whose only stored row sits in one of them would otherwise become unfindable. De-duplication is per page: a duplicate split across a page boundary survives, the same caveat that applies to collapsing by `threadId`. A page may therefore return fewer rows than `limit` while still carrying a `continuationToken`.
|
|
1293
|
+
*
|
|
1294
|
+
* Search mode and pagination: `limit` is a page size over MATCHES, capped server-side at 500. A page may be shorter than `limit` for two reasons — the matches ran out, or duplicates were dropped from it — so treat the presence of a `continuationToken` as the "more results" signal rather than a full page. There is no total match count; page until the token is absent.
|
|
1295
|
+
*
|
|
1296
|
+
* What a row is in search mode: one per message, not one per mailbox. This differs from the starred mode above, where the same mail filed in two folders is two rows sharing a `threadId`. Collapsing by `threadId` is still a client's job if it renders one row per CONVERSATION, since distinct messages in one thread remain distinct rows here.
|
|
1297
|
+
*
|
|
1298
|
+
* Callers that omit `query` are unaffected: the INBOX (and starred) listings behave exactly as before.
|
|
1299
|
+
*
|
|
1300
|
+
* Row filters: `category`, `unread` and `attachments` are columns on the ThreadMessage row, so each is a predicate inside the query rather than a pass over what a page returned. They compose with every mode above — INBOX, starred and search alike — and a page therefore comes back full of matches however rare the criterion is. This is what the cross-account collections need: filtering the pages a client happens to have loaded shows an empty list whenever the matching mail sits below the newest page (#308).
|
|
1301
|
+
*
|
|
1302
|
+
* Field filters: `from` and `subject` each match one field, which the single `query` cannot express — it matches both at once. They compose with `query` and with each other as further AND terms.
|
|
1303
|
+
*
|
|
1304
|
+
* Account scope: `accountId` narrows every mode to the mailboxes of one account. The scope is built from the account's own mailboxes, so the listing, the count and the search all answer over the same set. Without it the listing is the cross-account aggregate.
|
|
1305
|
+
*
|
|
1306
|
+
* Folder scope: `mailboxId` narrows the same scope to one folder, and composes with `accountId` as a further AND — a folder of another account leaves the scope empty and matches nothing. It is how a caller asks what one folder holds of a cross-account search, counted in the same conversations the unscoped listing renders. A folder the scope already excludes — Trash, a muted one, one of a muted account — stays excluded.
|
|
1307
|
+
*
|
|
1308
|
+
* Muted senders: `muted=false` excludes rows whose From address is muted, `muted=true` returns only those, and omitting it filters nothing. Muting is a property of the address rather than a column on the row, so this is the one predicate that reaches outside the ThreadMessage table; it applies to the listing and the `count` alike, which is what lets a caller that hides muted mail state a number that is the size of what it renders.
|
|
1309
|
+
*
|
|
1310
|
+
* Counting: `count=true` answers how many CONVERSATIONS match, over the whole scope and independent of `limit`. `results=false` omits the rows, which is how a header total is read without also paying for a page of mail. Conversations rather than rows because that is what this listing renders: a row is per mailbox, so the same mail filed in two folders is two rows sharing a `threadId`, and clients collapse by it. Counting rows would put a third number beside a list that shows a second one.
|
|
1311
|
+
*/
|
|
1312
|
+
export declare const unifiedThreadOperationsListAllThreadsOptions: (options?: Options<UnifiedThreadOperationsListAllThreadsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapThreadSearchResponse, UnifiedThreadOperationsListAllThreadsError, import("../types.gen.js").RemitImapThreadSearchResponse, [Pick<Options<UnifiedThreadOperationsListAllThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1313
|
+
_id: string;
|
|
1314
|
+
_infinite?: boolean;
|
|
1315
|
+
tags?: ReadonlyArray<string>;
|
|
1316
|
+
}]>, "queryFn"> & {
|
|
1317
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapThreadSearchResponse, [Pick<Options<UnifiedThreadOperationsListAllThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1318
|
+
_id: string;
|
|
1319
|
+
_infinite?: boolean;
|
|
1320
|
+
tags?: ReadonlyArray<string>;
|
|
1321
|
+
}], never> | undefined;
|
|
1322
|
+
} & {
|
|
1323
|
+
queryKey: [Pick<Options<UnifiedThreadOperationsListAllThreadsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1324
|
+
_id: string;
|
|
1325
|
+
_infinite?: boolean;
|
|
1326
|
+
tags?: ReadonlyArray<string>;
|
|
1327
|
+
}] & {
|
|
1328
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapThreadSearchResponse;
|
|
1329
|
+
[dataTagErrorSymbol]: UnifiedThreadOperationsListAllThreadsError;
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
export declare const threadDetailOperationsListThreadMessagesQueryKey: (options: Options<ThreadDetailOperationsListThreadMessagesData>) => [Pick<Options<ThreadDetailOperationsListThreadMessagesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1333
|
+
_id: string;
|
|
1334
|
+
_infinite?: boolean;
|
|
1335
|
+
tags?: ReadonlyArray<string>;
|
|
1336
|
+
}];
|
|
1337
|
+
/**
|
|
1338
|
+
* Get all messages in a thread, across every mailbox of the account — a conversation spans INBOX, Sent, Archive and any folder the user filed a message in, so it is never scoped to one mailbox. Soft-deleted messages (including anything moved to Trash) are excluded.
|
|
1339
|
+
*
|
|
1340
|
+
* One entry per piece of mail. A message synced from several folders is stored once, and where a second row exists for the same Message-ID — a copy taken with `copyMessages`, which gives its copy a fresh message id — the oldest is returned and the rest are dropped.
|
|
1341
|
+
*
|
|
1342
|
+
* Ordering: oldest first, by the date the message was sent, with `threadMessageId` breaking ties. A conversation is read in the order it happened, so a reply always follows the message it answers. Pass `order=desc` for the reverse.
|
|
1343
|
+
*/
|
|
1344
|
+
export declare const threadDetailOperationsListThreadMessagesOptions: (options: Options<ThreadDetailOperationsListThreadMessagesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen.js").RemitImapThreadMessageListResponse, import("../types.gen.js").ApiError, import("../types.gen.js").RemitImapThreadMessageListResponse, [Pick<Options<ThreadDetailOperationsListThreadMessagesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1345
|
+
_id: string;
|
|
1346
|
+
_infinite?: boolean;
|
|
1347
|
+
tags?: ReadonlyArray<string>;
|
|
1348
|
+
}]>, "queryFn"> & {
|
|
1349
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen.js").RemitImapThreadMessageListResponse, [Pick<Options<ThreadDetailOperationsListThreadMessagesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1350
|
+
_id: string;
|
|
1351
|
+
_infinite?: boolean;
|
|
1352
|
+
tags?: ReadonlyArray<string>;
|
|
1353
|
+
}], never> | undefined;
|
|
1354
|
+
} & {
|
|
1355
|
+
queryKey: [Pick<Options<ThreadDetailOperationsListThreadMessagesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1356
|
+
_id: string;
|
|
1357
|
+
_infinite?: boolean;
|
|
1358
|
+
tags?: ReadonlyArray<string>;
|
|
1359
|
+
}] & {
|
|
1360
|
+
[dataTagSymbol]: import("../types.gen.js").RemitImapThreadMessageListResponse;
|
|
1361
|
+
[dataTagErrorSymbol]: import("../types.gen.js").ApiError;
|
|
1362
|
+
};
|
|
1363
|
+
};
|