@remit/backend 2.3.0 → 2.5.0

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.
@@ -1,15 +1,14 @@
1
1
  import type { ClassificationConfigured, ClassificationNotConfigured, ClassificationPreset, UpdateUserSettingsInput } from "@remit/api-openapi-types";
2
2
  import type { IAccountSettingRepository } from "@remit/data-ports";
3
+ import { type StoredClassification } from "@remit/data-ports/classification-presets";
3
4
  import { type ClassificationLabelDeps } from "@remit/mailbox-service";
4
- import { type SecretsService } from "@remit/secrets-service";
5
+ import { type SecretsService, type SerializedEncryptedPayload } from "@remit/secrets-service";
5
6
  import type { UserSettingsOutcome } from "./user-settings.js";
6
- export declare const CLASSIFICATION_SETTING_NAMES: readonly ["ClassificationPresetId", "ClassificationModel", "ClassificationBaseUrl", "ClassificationApiKey", "ClassificationEnabled", "ClassificationDailyLimit"];
7
7
  export type ClassificationSettingsDeps = {
8
8
  accountSetting: Pick<IAccountSettingRepository, "getMany" | "upsert" | "delete">;
9
9
  secrets: Pick<SecretsService, "encrypt">;
10
10
  label: ClassificationLabelDeps;
11
11
  };
12
- export type StoredClassification = ClassificationNotConfigured | ClassificationConfigured;
13
12
  type Refusal = Extract<UserSettingsOutcome, {
14
13
  ok: false;
15
14
  }>;
@@ -19,6 +18,7 @@ type Decision<T> = {
19
18
  } | Refusal;
20
19
  type ApiKeyChange = {
21
20
  action: "Keep";
21
+ ciphertext: SerializedEncryptedPayload;
22
22
  } | {
23
23
  action: "Replace";
24
24
  apiKey: string;
@@ -33,7 +33,7 @@ export interface ClassificationProviderSave {
33
33
  }
34
34
  type ClassificationInput = Pick<UpdateUserSettingsInput, "classificationPresetId" | "classificationModel" | "classificationBaseUrl" | "classificationApiKey" | "classificationEnabled" | "classificationDailyLimit">;
35
35
  export declare const decideClassificationProvider: (input: ClassificationInput, stored: StoredClassification) => Decision<ClassificationProviderSave>;
36
- export declare const readStoredClassification: (accountSetting: Pick<IAccountSettingRepository, "getMany">, accountConfigId: string) => Promise<StoredClassification>;
36
+ export declare const publicClassification: (stored: StoredClassification) => ClassificationNotConfigured | ClassificationConfigured;
37
37
  export declare const classificationPresetsResponse: () => ClassificationPreset[];
38
38
  interface ClassificationChange {
39
39
  provider: ClassificationProviderSave | undefined;
@@ -1,16 +1,7 @@
1
- import { parseAccountSettingValue } from "@remit/data-ports/account-settings";
2
- import { CLASSIFICATION_PRESETS, DEFAULT_CLASSIFICATION_DAILY_LIMIT, isClassificationPresetId, } from "@remit/data-ports/classification-presets";
1
+ import { CLASSIFICATION_PRESETS, CLASSIFICATION_SETTING_NAMES, } from "@remit/data-ports/classification-presets";
3
2
  import { AccountSettingName } from "@remit/domain-enums";
4
3
  import { ensureClassificationLabels, } from "@remit/mailbox-service";
5
4
  import { serializeEncryptedPayload, } from "@remit/secrets-service";
6
- export const CLASSIFICATION_SETTING_NAMES = [
7
- AccountSettingName.ClassificationPresetId,
8
- AccountSettingName.ClassificationModel,
9
- AccountSettingName.ClassificationBaseUrl,
10
- AccountSettingName.ClassificationApiKey,
11
- AccountSettingName.ClassificationEnabled,
12
- AccountSettingName.ClassificationDailyLimit,
13
- ];
14
5
  const refuse = (code, message) => ({
15
6
  ok: false,
16
7
  error: { code, message },
@@ -43,8 +34,9 @@ const apiKeyFor = (preset, requested, keptKey) => {
43
34
  if (requested !== "") {
44
35
  return { ok: true, value: { action: "Replace", apiKey: requested } };
45
36
  }
46
- if (keptKey)
47
- return { ok: true, value: { action: "Keep" } };
37
+ if (keptKey) {
38
+ return { ok: true, value: { action: "Keep", ciphertext: keptKey } };
39
+ }
48
40
  return refuse("ClassificationApiKeyRequired", `classificationApiKey is required for ${preset.label}`);
49
41
  };
50
42
  export const decideClassificationProvider = (input, stored) => {
@@ -58,7 +50,7 @@ export const decideClassificationProvider = (input, stored) => {
58
50
  const baseUrl = baseUrlFor(preset, (input.classificationBaseUrl ?? kept?.baseUrl ?? "").trim());
59
51
  if (!baseUrl.ok)
60
52
  return baseUrl;
61
- const apiKey = apiKeyFor(preset, (input.classificationApiKey ?? "").trim(), kept?.apiKeySaved ?? false);
53
+ const apiKey = apiKeyFor(preset, (input.classificationApiKey ?? "").trim(), kept?.apiKeyCiphertext);
62
54
  if (!apiKey.ok)
63
55
  return apiKey;
64
56
  const model = (input.classificationModel ?? kept?.model ?? "").trim();
@@ -72,36 +64,11 @@ export const decideClassificationProvider = (input, stored) => {
72
64
  },
73
65
  };
74
66
  };
75
- const settingOf = (rows, name) => rows.find((row) => row.name === name);
76
- export const readStoredClassification = async (accountSetting, accountConfigId) => {
77
- const rows = await accountSetting.getMany([accountConfigId], CLASSIFICATION_SETTING_NAMES);
78
- const presetRow = settingOf(rows, AccountSettingName.ClassificationPresetId);
79
- if (!presetRow)
80
- return { state: "NotConfigured" };
81
- const presetId = parseAccountSettingValue(AccountSettingName.ClassificationPresetId, presetRow.value).value;
82
- if (!isClassificationPresetId(presetId)) {
83
- throw new Error(`Stored classification preset is unknown: ${presetId}`);
84
- }
85
- const stringOf = (name) => {
86
- const row = settingOf(rows, name);
87
- return row ? parseAccountSettingValue(name, row.value).value : "";
88
- };
89
- const enabledRow = settingOf(rows, AccountSettingName.ClassificationEnabled);
90
- const limitRow = settingOf(rows, AccountSettingName.ClassificationDailyLimit);
91
- return {
92
- state: "Configured",
93
- presetId,
94
- model: stringOf(AccountSettingName.ClassificationModel),
95
- baseUrl: stringOf(AccountSettingName.ClassificationBaseUrl),
96
- apiKeySaved: settingOf(rows, AccountSettingName.ClassificationApiKey) !== undefined,
97
- enabled: enabledRow
98
- ? parseAccountSettingValue(AccountSettingName.ClassificationEnabled, enabledRow.value).value
99
- : false,
100
- dailyLimit: limitRow
101
- ? parseAccountSettingValue(AccountSettingName.ClassificationDailyLimit, limitRow.value).value
102
- : DEFAULT_CLASSIFICATION_DAILY_LIMIT,
103
- savedAt: presetRow.updatedAt,
104
- };
67
+ export const publicClassification = (stored) => {
68
+ if (stored.state === "NotConfigured")
69
+ return stored;
70
+ const { apiKeyCiphertext: _ciphertext, ...configured } = stored;
71
+ return configured;
105
72
  };
106
73
  export const classificationPresetsResponse = () => Object.values(CLASSIFICATION_PRESETS);
107
74
  export const decideClassificationChange = (input, stored) => {
@@ -0,0 +1,17 @@
1
+ import type { ClassificationTestFailed, ClassificationTestInput, ClassificationTestPassed } from "@remit/api-openapi-types";
2
+ import type { IAccountSettingRepository } from "@remit/data-ports";
3
+ import { type ClassifierLogger } from "@remit/mailbox-service/classifier";
4
+ import { type SecretsService } from "@remit/secrets-service";
5
+ import type { UserSettingsOutcome } from "./user-settings.js";
6
+ export interface ClassificationTestDeps {
7
+ accountSetting: Pick<IAccountSettingRepository, "getMany">;
8
+ secrets: Pick<SecretsService, "decrypt">;
9
+ logger: ClassifierLogger;
10
+ }
11
+ export type ClassificationTestOutcome = {
12
+ ok: true;
13
+ value: ClassificationTestPassed | ClassificationTestFailed;
14
+ } | Extract<UserSettingsOutcome, {
15
+ ok: false;
16
+ }>;
17
+ export declare const testClassificationProvider: (deps: ClassificationTestDeps, accountConfigId: string, input: ClassificationTestInput) => Promise<ClassificationTestOutcome>;
@@ -0,0 +1,77 @@
1
+ import { readStoredClassification } from "@remit/data-ports/classification-presets";
2
+ import { ClassificationFailureKind as FailureKind, ClassificationField as Field, } from "@remit/domain-enums";
3
+ import { CLASSIFIER_LABELS, CLASSIFIER_SAMPLE_MESSAGE, classifyWithProvider, } from "@remit/mailbox-service/classifier";
4
+ import { deserializeEncryptedPayload, } from "@remit/secrets-service";
5
+ import { decideClassificationProvider, } from "./classification-settings.js";
6
+ const REACH_FIX = "Check the endpoint runs and the Remit server can reach it";
7
+ const DEFAULT_MODEL_FIX = "Use the preset's default model";
8
+ const FAILURE_HELP = {
9
+ [FailureKind.Unauthorized]: {
10
+ field: Field.ApiKey,
11
+ fix: "Replace the key, save, test again",
12
+ },
13
+ [FailureKind.ModelNotFound]: {
14
+ field: Field.Model,
15
+ fix: "Check the model name, or empty it for the default",
16
+ },
17
+ [FailureKind.RateLimited]: {
18
+ fix: "Raise the limit at the provider, or lower the daily limit",
19
+ },
20
+ [FailureKind.Rejected]: { field: Field.Model, fix: DEFAULT_MODEL_FIX },
21
+ [FailureKind.ProviderError]: {
22
+ fix: "The provider is failing; built-in rules cover until it recovers",
23
+ },
24
+ [FailureKind.Unreachable]: { field: Field.BaseUrl, fix: REACH_FIX },
25
+ [FailureKind.TimedOut]: { field: Field.BaseUrl, fix: REACH_FIX },
26
+ [FailureKind.Unparseable]: { field: Field.Model, fix: DEFAULT_MODEL_FIX },
27
+ };
28
+ const apiKeyOf = (deps, save) => {
29
+ if (save.apiKey.action === "Replace") {
30
+ return Promise.resolve(save.apiKey.apiKey);
31
+ }
32
+ if (save.apiKey.action === "Keep") {
33
+ return deps.secrets.decrypt(deserializeEncryptedPayload(save.apiKey.ciphertext));
34
+ }
35
+ return Promise.resolve("");
36
+ };
37
+ const topScore = (scores) => scores.reduce((best, score) => score.confidence > best.confidence ? score : best);
38
+ const answerOf = (result) => {
39
+ if (result.ok) {
40
+ const top = topScore(result.scores);
41
+ return {
42
+ state: "Passed",
43
+ latencyMs: result.latencyMs,
44
+ label: top.label,
45
+ confidence: top.confidence,
46
+ };
47
+ }
48
+ return {
49
+ state: "Failed",
50
+ latencyMs: result.latencyMs,
51
+ ...(result.status === undefined ? {} : { status: result.status }),
52
+ kind: result.kind,
53
+ ...FAILURE_HELP[result.kind],
54
+ };
55
+ };
56
+ export const testClassificationProvider = async (deps, accountConfigId, input) => {
57
+ const decided = decideClassificationProvider({
58
+ classificationPresetId: input.presetId,
59
+ classificationModel: input.model,
60
+ classificationBaseUrl: input.baseUrl,
61
+ classificationApiKey: input.apiKey,
62
+ }, await readStoredClassification(deps.accountSetting, accountConfigId));
63
+ if (!decided.ok)
64
+ return decided;
65
+ const save = decided.value;
66
+ const result = await classifyWithProvider({
67
+ provider: {
68
+ adapterShape: save.preset.adapterShape,
69
+ baseUrl: save.baseUrl,
70
+ model: save.model,
71
+ apiKey: await apiKeyOf(deps, save),
72
+ },
73
+ labels: CLASSIFIER_LABELS,
74
+ message: CLASSIFIER_SAMPLE_MESSAGE,
75
+ }, { logger: deps.logger });
76
+ return { ok: true, value: answerOf(result) };
77
+ };
@@ -125,6 +125,7 @@ export declare const handlers: {
125
125
  UserSettingsOperations_getUserSettings: OperationHandler<import("../types.js").UserSettingsOperationIds>;
126
126
  UserSettingsOperations_updateUserSettings: OperationHandler<import("../types.js").UserSettingsOperationIds>;
127
127
  UserSettingsOperations_clearClassificationProvider: OperationHandler<import("../types.js").UserSettingsOperationIds>;
128
+ UserSettingsOperations_testClassificationProvider: OperationHandler<import("../types.js").UserSettingsOperationIds>;
128
129
  UserSettingsOperations_clearDefaultInvitationSender: OperationHandler<import("../types.js").UserSettingsOperationIds>;
129
130
  CalendarFreeBusyOperations_listCalendarFreeBusy: OperationHandler<"CalendarFreeBusyOperations_listCalendarFreeBusy">;
130
131
  CalendarEventDetailOperations_getCalendarEvent: OperationHandler<import("../types.js").CalendarEventDetailOperationIds, "smtp">;
@@ -279,6 +279,7 @@ export const MessageOperations = {
279
279
  const folder = {
280
280
  mailboxId: mailbox.mailboxId,
281
281
  fullPath: mailbox.fullPath,
282
+ initialSyncCompletedAt: mailbox.initialSyncCompletedAt,
282
283
  placement: await resolveFolderPlacement(client.mailboxSpecialUse, accountId, mailbox.mailboxId),
283
284
  };
284
285
  const scope = await client.createConnectionScope(accountId);
@@ -385,6 +386,7 @@ export const MessageOperations = {
385
386
  const folder = {
386
387
  mailboxId: mailbox.mailboxId,
387
388
  fullPath: mailbox.fullPath,
389
+ initialSyncCompletedAt: mailbox.initialSyncCompletedAt,
388
390
  placement: await resolveFolderPlacement(client.mailboxSpecialUse, accountId, mailbox.mailboxId),
389
391
  };
390
392
  const scope = await client.createConnectionScope(accountId);
@@ -1,8 +1,11 @@
1
1
  import { invitationSenderInEffect, sendingAccountFor, } from "@remit/calendar-service";
2
2
  import { parseAccountSettingValue } from "@remit/data-ports/account-settings";
3
+ import { readStoredClassification } from "@remit/data-ports/classification-presets";
3
4
  import { AccountSettingName } from "@remit/domain-enums";
5
+ import { logger } from "@remit/logger";
4
6
  import { badRequest } from "./calendar.js";
5
- import { classificationPresetsResponse, clearClassification, decideClassificationChange, readStoredClassification, writeClassificationChange, } from "./classification-settings.js";
7
+ import { classificationPresetsResponse, clearClassification, decideClassificationChange, publicClassification, writeClassificationChange, } from "./classification-settings.js";
8
+ import { testClassificationProvider } from "./classification-test.js";
6
9
  /** The account the reader chose to send invitations from, if they chose one. */
7
10
  export const chosenInvitationSender = async (accountSetting, accountConfigId) => {
8
11
  const stored = await accountSetting.get(accountConfigId, AccountSettingName.DefaultInvitationSenderAccountId);
@@ -17,7 +20,7 @@ export const readUserSettings = async (deps, accountConfigId) => {
17
20
  ...(inEffect && { defaultInvitationSenderAccountId: inEffect.accountId }),
18
21
  defaultInvitationSenderChosen: inEffect !== undefined && inEffect.accountId === chosen,
19
22
  classificationPresets: classificationPresetsResponse(),
20
- classification: await readStoredClassification(deps.accountSetting, accountConfigId),
23
+ classification: publicClassification(await readStoredClassification(deps.accountSetting, accountConfigId)),
21
24
  };
22
25
  };
23
26
  export const updateUserSettingsFor = async (deps, accountConfigId, input) => {
@@ -68,4 +71,14 @@ export const UserSettingsOperations = {
68
71
  await clearClassification(deps.accountSetting, ctx.identity.accountConfigId);
69
72
  return readUserSettings(deps, ctx.identity.accountConfigId);
70
73
  },
74
+ UserSettingsOperations_testClassificationProvider: async (context, ctx) => {
75
+ const tested = await testClassificationProvider({
76
+ accountSetting: ctx.client.accountSetting,
77
+ secrets: ctx.client.secrets,
78
+ logger,
79
+ }, ctx.identity.accountConfigId, context.request.requestBody);
80
+ if (!tested.ok)
81
+ return badRequest(tested.error);
82
+ return tested.value;
83
+ },
71
84
  };
@@ -158,6 +158,12 @@ export const composeReadPathServices = (core, queues, sync) => ({
158
158
  calendarStore: core.calendarStore,
159
159
  filterService: core.filter,
160
160
  accountService: core.account,
161
+ }, {
162
+ accountSetting: core.accountSetting,
163
+ secrets: core.secrets,
164
+ labelService: core.label,
165
+ messageLabelService: core.messageLabel,
166
+ logger,
161
167
  }),
162
168
  });
163
169
  export const createRemitClient = (deps) => {
@@ -3,7 +3,7 @@ import type { ApiConfig } from "./config/api-config.js";
3
3
  import type { RemitClient } from "./service/create-remit-client.js";
4
4
  import type { QueueName } from "./service/queues.js";
5
5
  type MatchPrefix<Prefix extends string, S extends string> = S extends `${Prefix}${infer _}` ? S : never;
6
- export type OperationIds = "MeOperations_deleteMe" | "MeOperations_listVipSuggestions" | "MeOperations_createExport" | "MeOperations_getExport" | "MeOperations_listQuarantine" | "ConfigOperations_getConfig" | "ConfigOperations_exportConfig" | "ConfigOperations_importConfig" | "SystemOperations_getSystemUpdate" | "SystemOperations_applySystemUpdate" | "PeopleOperations_listPeople" | "PeopleOperations_createStepUp" | "PeopleOperations_signOutPerson" | "PeopleOperations_updatePerson" | "PeopleOperations_createPasswordReset" | "AccountOperations_createAccount" | "AccountOperations_testConnection" | "AccountDetailOperations_updateAccount" | "AccountDetailOperations_deleteAccount" | "MicrosoftOAuthOperations_microsoftOAuthStart" | "MicrosoftOAuthOperations_microsoftOAuthCallback" | "MailboxOperations_listMailboxes" | "MailboxOperations_createMailbox" | "MailboxDetailOperations_getMailbox" | "MailboxDetailOperations_renameMailbox" | "MailboxDetailOperations_deleteMailbox" | "FolderRoleOperations_appointFolderRole" | "FilterOperations_listFilters" | "FilterOperations_createFilter" | "FilterDetailOperations_getFilter" | "FilterDetailOperations_updateFilter" | "FilterDetailOperations_deleteFilter" | "LabelOperations_listLabels" | "LabelOperations_createLabel" | "LabelDetailOperations_getLabel" | "LabelDetailOperations_updateLabel" | "LabelDetailOperations_deleteLabel" | "OrganizeOperations_createOrganizeJob" | "OrganizeOperations_previewOrganize" | "OrganizeJobDetailOperations_getOrganizeJob" | "SyncOperations_triggerSync" | "SyncOperations_getSyncStatus" | "ThreadDetailOperations_listThreadMessages" | "UnifiedThreadOperations_listAllThreads" | "ThreadOperations_listThreads" | "ThreadOperations_searchThreads" | "MessageOperations_describeMessage" | "MessageOperations_getRawMessage" | "MessageOperations_updateMessageFlags" | "MessageBulkOperations_deleteMessages" | "MessageBulkOperations_moveMessages" | "MessageBulkOperations_updateFlags" | "MessageBulkOperations_copyMessages" | "MessageBulkOperations_updateMessageLabels" | "MessageBulkOperations_reportSpam" | "MessageBulkOperations_notSpam" | "CalendarOperations_listCalendars" | "CalendarOperations_createCalendar" | "CalendarDetailOperations_getCalendar" | "CalendarDetailOperations_updateCalendar" | "CalendarDetailOperations_deleteCalendar" | "CalendarDetailOperations_getCalendarFeed" | "CalendarDetailOperations_putCalendarFeed" | "CalendarDetailOperations_revokeCalendarFeed" | "CalendarFeedOperations_getCalendarFeedIcal" | "CalendarEventOperations_listCalendarEvents" | "CalendarEventOperations_createCalendarEvent" | "CalendarEventDetailOperations_getCalendarEvent" | "CalendarEventDetailOperations_updateCalendarEvent" | "CalendarEventDetailOperations_deleteCalendarEvent" | "CalendarFreeBusyOperations_listCalendarFreeBusy" | "UserSettingsOperations_getUserSettings" | "UserSettingsOperations_updateUserSettings" | "UserSettingsOperations_clearDefaultInvitationSender" | "UserSettingsOperations_clearClassificationProvider" | "CalendarTaskOperations_listCalendarTasks" | "CalendarTaskOperations_createCalendarTask" | "CalendarTaskDetailOperations_getCalendarTask" | "CalendarTaskDetailOperations_updateCalendarTask" | "CalendarTaskDetailOperations_deleteCalendarTask" | "TrashOperations_emptyTrash" | "OutboxOperations_createOutboxMessage" | "OutboxOperations_listOutboxMessages" | "OutboxDetailOperations_getOutboxMessage" | "OutboxDetailOperations_updateOutboxMessage" | "OutboxDetailOperations_deleteOutboxMessage" | "OutboxDetailOperations_sendOutboxMessage" | "OutboxDetailOperations_mintOutboxAttachment" | "OutboxAttachmentOperations_completeOutboxAttachment" | "AddressOperations_searchAddresses" | "AddressDetailOperations_updateAddress" | "CalendarSuggestionOperations_listCalendarSuggestions" | "MessageCalendarSuggestionOperations_listMessageCalendarSuggestions" | "CalendarSuggestionActionOperations_acceptCalendarSuggestion" | "CalendarSuggestionActionOperations_declineCalendarSuggestion" | "CalendarSuggestionActionOperations_dismissCalendarSuggestion" | "CalendarSuggestionActionOperations_reopenCalendarSuggestion";
6
+ export type OperationIds = "MeOperations_deleteMe" | "MeOperations_listVipSuggestions" | "MeOperations_createExport" | "MeOperations_getExport" | "MeOperations_listQuarantine" | "ConfigOperations_getConfig" | "ConfigOperations_exportConfig" | "ConfigOperations_importConfig" | "SystemOperations_getSystemUpdate" | "SystemOperations_applySystemUpdate" | "PeopleOperations_listPeople" | "PeopleOperations_createStepUp" | "PeopleOperations_signOutPerson" | "PeopleOperations_updatePerson" | "PeopleOperations_createPasswordReset" | "AccountOperations_createAccount" | "AccountOperations_testConnection" | "AccountDetailOperations_updateAccount" | "AccountDetailOperations_deleteAccount" | "MicrosoftOAuthOperations_microsoftOAuthStart" | "MicrosoftOAuthOperations_microsoftOAuthCallback" | "MailboxOperations_listMailboxes" | "MailboxOperations_createMailbox" | "MailboxDetailOperations_getMailbox" | "MailboxDetailOperations_renameMailbox" | "MailboxDetailOperations_deleteMailbox" | "FolderRoleOperations_appointFolderRole" | "FilterOperations_listFilters" | "FilterOperations_createFilter" | "FilterDetailOperations_getFilter" | "FilterDetailOperations_updateFilter" | "FilterDetailOperations_deleteFilter" | "LabelOperations_listLabels" | "LabelOperations_createLabel" | "LabelDetailOperations_getLabel" | "LabelDetailOperations_updateLabel" | "LabelDetailOperations_deleteLabel" | "OrganizeOperations_createOrganizeJob" | "OrganizeOperations_previewOrganize" | "OrganizeJobDetailOperations_getOrganizeJob" | "SyncOperations_triggerSync" | "SyncOperations_getSyncStatus" | "ThreadDetailOperations_listThreadMessages" | "UnifiedThreadOperations_listAllThreads" | "ThreadOperations_listThreads" | "ThreadOperations_searchThreads" | "MessageOperations_describeMessage" | "MessageOperations_getRawMessage" | "MessageOperations_updateMessageFlags" | "MessageBulkOperations_deleteMessages" | "MessageBulkOperations_moveMessages" | "MessageBulkOperations_updateFlags" | "MessageBulkOperations_copyMessages" | "MessageBulkOperations_updateMessageLabels" | "MessageBulkOperations_reportSpam" | "MessageBulkOperations_notSpam" | "CalendarOperations_listCalendars" | "CalendarOperations_createCalendar" | "CalendarDetailOperations_getCalendar" | "CalendarDetailOperations_updateCalendar" | "CalendarDetailOperations_deleteCalendar" | "CalendarDetailOperations_getCalendarFeed" | "CalendarDetailOperations_putCalendarFeed" | "CalendarDetailOperations_revokeCalendarFeed" | "CalendarFeedOperations_getCalendarFeedIcal" | "CalendarEventOperations_listCalendarEvents" | "CalendarEventOperations_createCalendarEvent" | "CalendarEventDetailOperations_getCalendarEvent" | "CalendarEventDetailOperations_updateCalendarEvent" | "CalendarEventDetailOperations_deleteCalendarEvent" | "CalendarFreeBusyOperations_listCalendarFreeBusy" | "UserSettingsOperations_getUserSettings" | "UserSettingsOperations_updateUserSettings" | "UserSettingsOperations_clearDefaultInvitationSender" | "UserSettingsOperations_clearClassificationProvider" | "UserSettingsOperations_testClassificationProvider" | "CalendarTaskOperations_listCalendarTasks" | "CalendarTaskOperations_createCalendarTask" | "CalendarTaskDetailOperations_getCalendarTask" | "CalendarTaskDetailOperations_updateCalendarTask" | "CalendarTaskDetailOperations_deleteCalendarTask" | "TrashOperations_emptyTrash" | "OutboxOperations_createOutboxMessage" | "OutboxOperations_listOutboxMessages" | "OutboxDetailOperations_getOutboxMessage" | "OutboxDetailOperations_updateOutboxMessage" | "OutboxDetailOperations_deleteOutboxMessage" | "OutboxDetailOperations_sendOutboxMessage" | "OutboxDetailOperations_mintOutboxAttachment" | "OutboxAttachmentOperations_completeOutboxAttachment" | "AddressOperations_searchAddresses" | "AddressDetailOperations_updateAddress" | "CalendarSuggestionOperations_listCalendarSuggestions" | "MessageCalendarSuggestionOperations_listMessageCalendarSuggestions" | "CalendarSuggestionActionOperations_acceptCalendarSuggestion" | "CalendarSuggestionActionOperations_declineCalendarSuggestion" | "CalendarSuggestionActionOperations_dismissCalendarSuggestion" | "CalendarSuggestionActionOperations_reopenCalendarSuggestion";
7
7
  export type MeOperationIds = MatchPrefix<"MeOperations_", OperationIds>;
8
8
  export type ConfigOperationIds = MatchPrefix<"ConfigOperations_", OperationIds>;
9
9
  export type SystemOperationIds = MatchPrefix<"SystemOperations_", OperationIds>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/backend",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "Remit Mail Inspector API backend",
5
5
  "license": "MIT",
6
6
  "author": "",