feat: registerPushNotifications (#812)

* feat: registerPushNotifications

* chore: auto-fix linting and formatting issues

* feat: post message token

* feat: newEntryNotification action

* feat: handle notification click event
This commit is contained in:
DIYgod
2024-10-09 20:03:56 +08:00
committed by GitHub
parent 68e650957d
commit baab5b993f
10 changed files with 428 additions and 3 deletions
+1
View File
@@ -25,6 +25,7 @@
"@egoist/tipc": "0.3.2",
"@electron-toolkit/preload": "^3.0.1",
"@electron-toolkit/utils": "^3.0.0",
"@eneris/push-receiver": "4.2.0",
"@follow/shared": "workspace:*",
"@mozilla/readability": "^0.5.0",
"@sentry/electron": "5.4.0",
+81 -2
View File
@@ -1,16 +1,22 @@
import path from "node:path"
import { registerIpcMain } from "@egoist/tipc/main"
import { getRendererHandlers, registerIpcMain } from "@egoist/tipc/main"
import { PushReceiver } from "@eneris/push-receiver"
import { APP_PROTOCOL } from "@follow/shared/constants"
import { app, nativeTheme, shell } from "electron"
import { env } from "@follow/shared/env"
import type { MessagingData } from "@follow/shared/hono"
import { app, nativeTheme, Notification, shell } from "electron"
import contextMenu from "electron-context-menu"
import { getIconPath } from "./helper"
import { apiClient } from "./lib/api-client"
import { t } from "./lib/i18n"
import { store } from "./lib/store"
import { registerAppMenu } from "./menu"
import type { RendererHandlers } from "./renderer-handlers"
import { initializeSentry } from "./sentry"
import { router } from "./tipc"
import { createMainWindow, getMainWindow } from "./window"
const appFolder = {
prod: "Follow",
@@ -55,6 +61,8 @@ export const initializeAppStage1 = () => {
// code. You can also put them in separate files and require them here.
registerMenuAndContextMenu()
registerPushNotifications()
}
let contextMenuDisposer: () => void
@@ -115,3 +123,74 @@ export const registerMenuAndContextMenu = () => {
},
})
}
const registerPushNotifications = async () => {
if (!env.VITE_FIREBASE_CONFIG) {
return
}
const credentialsKey = "notifications-credentials"
const persistentIdsKey = "notifications-persistent-ids"
const credentials = store.get(credentialsKey)
const persistentIds = store.get(persistentIdsKey)
if (credentials) {
apiClient.messaging.$post({
json: {
token: credentials.fcm.token,
channel: "desktop",
},
})
}
const instance = new PushReceiver({
debug: isDev,
firebase: env.VITE_FIREBASE_CONFIG,
persistentIds: persistentIds || [],
credentials,
})
instance.onCredentialsChanged(({ newCredentials }) => {
store.set(credentialsKey, newCredentials)
apiClient.messaging.$post({
json: {
token: newCredentials.fcm.token,
channel: "desktop",
},
})
})
instance.onNotification((notification) => {
const data = notification.message.data as MessagingData
switch (data.type) {
case "new-entry": {
const notification = new Notification({
title: data.title,
body: data.description,
})
notification.on("click", () => {
let mainWindow = getMainWindow()
if (!mainWindow) {
mainWindow = createMainWindow()
}
mainWindow.restore()
mainWindow.focus()
const handlers = getRendererHandlers<RendererHandlers>(mainWindow.webContents)
handlers.navigateEntry.send({
feedId: data.feedId,
entryId: data.entryId,
view: Number.parseInt(data.view),
})
})
notification.show()
break
}
default: {
break
}
}
store.set(persistentIdsKey, instance.persistentIds)
})
await instance.connect()
}
+1
View File
@@ -1,4 +1,5 @@
export type RendererHandlers = {
invalidateQuery: (key: (string | number | undefined)[]) => void
updateDownloaded: () => void
navigateEntry: (options: { feedId: string; entryId: string; view: number }) => void
}
+5
View File
@@ -6,6 +6,7 @@ import { queryClient } from "~/lib/query-client"
import { useAppIsReady } from "./atoms/app"
import { useUISettingKey } from "./atoms/settings/ui"
import { navigateEntry } from "./hooks/biz/useNavigateEntry"
import { applyAfterReadyCallbacks } from "./initialize/queue"
import { appLog } from "./lib/log"
import { cn, getOS } from "./lib/utils"
@@ -21,6 +22,10 @@ function App() {
})
})
handlers?.navigateEntry.listen((options) => {
navigateEntry(options)
})
return cleanup
}, [])
+1
View File
@@ -101,6 +101,7 @@ export type ActionsInput = {
summary?: boolean
readability?: boolean
silence?: boolean
newEntryNotification?: boolean
rewriteRules?: {
from: string
to: string
@@ -452,6 +452,20 @@ export function ActionCard({
</div>
<Divider />
<div className="flex w-full items-center justify-between">
<span className="w-0 shrink grow truncate">
{t("actions.action_card.new_entry_notification")}
</span>
<Switch
checked={data.result.newEntryNotification}
onCheckedChange={(checked) => {
data.result.newEntryNotification = checked
onChange(data)
}}
/>
</div>
<Divider />
<div className="flex w-full items-center justify-between">
<span className="w-0 shrink grow truncate">
{t("actions.action_card.silence")}
+1
View File
@@ -26,6 +26,7 @@
"actions.action_card.from": "From",
"actions.action_card.generate_summary": "Generate summary using AI",
"actions.action_card.name": "Name",
"actions.action_card.new_entry_notification": "Notification of new entry",
"actions.action_card.no_translation": "No translation",
"actions.action_card.operation_options.contains": "contains",
"actions.action_card.operation_options.does_not_contain": "does not contain",
+21
View File
@@ -11,6 +11,27 @@ export const env = createEnv({
VITE_SENTRY_DSN: z.string().optional(),
VITE_POSTHOG_KEY: z.string().optional(),
VITE_INBOXES_EMAIL: z.string().default("@follow.re"),
VITE_FIREBASE_CONFIG: z
.string()
.transform((content) => {
try {
return JSON.parse(content)
} catch {
return z.NEVER
}
})
.pipe(
z.object({
apiKey: z.string(),
authDomain: z.string(),
projectId: z.string(),
storageBucket: z.string(),
messagingSenderId: z.string(),
appId: z.string(),
measurementId: z.string(),
}),
)
.optional(),
},
emptyStringAsUndefined: true,
+130 -1
View File
@@ -216,6 +216,7 @@ declare const actions: drizzle_orm_pg_core.PgTableWithColumns<{
summary?: boolean;
readability?: boolean;
silence?: boolean;
newEntryNotification?: boolean;
rewriteRules?: {
from: string;
to: string;
@@ -261,6 +262,7 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
summary: z.ZodOptional<z.ZodBoolean>;
readability: z.ZodOptional<z.ZodBoolean>;
silence: z.ZodOptional<z.ZodBoolean>;
newEntryNotification: z.ZodOptional<z.ZodBoolean>;
rewriteRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
from: z.ZodString;
to: z.ZodString;
@@ -290,6 +292,7 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -305,6 +308,7 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -323,6 +327,7 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -346,6 +351,7 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -391,6 +397,7 @@ declare const actionsOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
summary: z.ZodOptional<z.ZodBoolean>;
readability: z.ZodOptional<z.ZodBoolean>;
silence: z.ZodOptional<z.ZodBoolean>;
newEntryNotification: z.ZodOptional<z.ZodBoolean>;
rewriteRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
from: z.ZodString;
to: z.ZodString;
@@ -420,6 +427,7 @@ declare const actionsOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -435,6 +443,7 @@ declare const actionsOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -453,6 +462,7 @@ declare const actionsOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -476,6 +486,7 @@ declare const actionsOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -502,6 +513,7 @@ declare const actionsOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -528,6 +540,7 @@ declare const actionsOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -3204,6 +3217,91 @@ declare const listsTimelineRelations: drizzle_orm.Relations<"lists_timeline", {
feeds: drizzle_orm.One<"feeds", true>;
}>;
declare const messaging: drizzle_orm_pg_core.PgTableWithColumns<{
name: "messaging";
schema: undefined;
columns: {
userId: drizzle_orm_pg_core.PgColumn<{
name: "user_id";
tableName: "messaging";
dataType: "string";
columnType: "PgText";
data: string;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
generated: undefined;
}, {}, {}>;
token: drizzle_orm_pg_core.PgColumn<{
name: "token";
tableName: "messaging";
dataType: "string";
columnType: "PgText";
data: string;
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
generated: undefined;
}, {}, {}>;
channel: drizzle_orm_pg_core.PgColumn<{
name: "channel";
tableName: "messaging";
dataType: "string";
columnType: "PgText";
data: string;
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
generated: undefined;
}, {}, {}>;
};
dialect: "pg";
}>;
declare const messagingOpenAPISchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
userId: z.ZodNullable<z.ZodString>;
token: z.ZodString;
channel: z.ZodString;
}, "channel">, {
channel: z.ZodEnum<["desktop", "mobile"]>;
}>, "strip", z.ZodTypeAny, {
userId: string | null;
token: string;
channel: "desktop" | "mobile";
}, {
userId: string | null;
token: string;
channel: "desktop" | "mobile";
}>;
declare const messagingRelations: drizzle_orm.Relations<"messaging", {
users: drizzle_orm.One<"user", false>;
}>;
declare enum MessagingType {
NewEntry = "new-entry"
}
type MessagingData = {
type: MessagingType.NewEntry;
feedId: string;
entryId: string;
view: string;
title: string;
description: string;
};
declare const settings: drizzle_orm_pg_core.PgTableWithColumns<{
name: "settings";
schema: undefined;
@@ -3751,6 +3849,7 @@ declare const usersRelations: drizzle_orm.Relations<"user", {
wallets: drizzle_orm.One<"wallets", true>;
feeds: drizzle_orm.Many<"feeds">;
inboxes: drizzle_orm.One<"inboxes", true>;
messaging: drizzle_orm.Many<"messaging">;
}>;
declare const wallets: drizzle_orm_pg_core.PgTableWithColumns<{
@@ -4149,6 +4248,32 @@ declare const feedPowerTokensRelations: drizzle_orm.Relations<"feedPowerTokens",
}>;
declare const _routes: hono_hono_base.HonoBase<Env, {
"/messaging": {
$post: {
input: {
json: {
token: string;
channel: "desktop" | "mobile";
};
};
output: {
code: 0;
};
outputFormat: "json" | "text";
status: 200;
};
};
"/messaging/test": {
$get: {
input: {};
output: {
code: 0;
};
outputFormat: "json" | "text";
status: 200;
};
};
} & {
"/inboxes": {
$delete: {
input: {
@@ -5454,6 +5579,7 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -5687,6 +5813,7 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -6181,6 +6308,7 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -6213,6 +6341,7 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
translation?: "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
readability?: boolean | undefined;
silence?: boolean | undefined;
newEntryNotification?: boolean | undefined;
rewriteRules?: {
from: string;
to: string;
@@ -6304,4 +6433,4 @@ declare const _routes: hono_hono_base.HonoBase<Env, {
}, "/">;
type AppType = typeof _routes;
export { type ActionsModel, type AppType, type AttachmentsModel, CommonEntryFields, type EntriesModel, type EntryReadHistoriesModel, type ExtraModel, type FeedModel, type MediaModel, type SettingsModel, accounts, achievements, achievementsOpenAPISchema, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, attachmentsZodSchema, collections, collectionsOpenAPISchema, collectionsRelations, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, extraZodSchema, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsOpenAPISchema, feedsRelations, inboxHandleSchema, inboxes, inboxesEntries, inboxesEntriesInsertOpenAPISchema, type inboxesEntriesModel, inboxesEntriesOpenAPISchema, inboxesEntriesRelations, inboxesOpenAPISchema, inboxesRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, lists, listsOpenAPISchema, listsRelations, listsSubscriptions, listsSubscriptionsOpenAPISchema, listsSubscriptionsRelations, listsTimeline, listsTimelineOpenAPISchema, listsTimelineRelations, mediaZodSchema, sessions, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, users, usersOpenApiSchema, usersRelations, verificationTokens, wallets, walletsOpenAPISchema, walletsRelations };
export { type ActionsModel, type AppType, type AttachmentsModel, CommonEntryFields, type EntriesModel, type EntryReadHistoriesModel, type ExtraModel, type FeedModel, type MediaModel, type MessagingData, MessagingType, type SettingsModel, accounts, achievements, achievementsOpenAPISchema, actions, actionsItemOpenAPISchema, actionsOpenAPISchema, actionsRelations, attachmentsZodSchema, collections, collectionsOpenAPISchema, collectionsRelations, entries, entriesOpenAPISchema, entriesRelations, entryReadHistories, entryReadHistoriesOpenAPISchema, entryReadHistoriesRelations, extraZodSchema, feedPowerTokens, feedPowerTokensOpenAPISchema, feedPowerTokensRelations, feeds, feedsOpenAPISchema, feedsRelations, inboxHandleSchema, inboxes, inboxesEntries, inboxesEntriesInsertOpenAPISchema, type inboxesEntriesModel, inboxesEntriesOpenAPISchema, inboxesEntriesRelations, inboxesOpenAPISchema, inboxesRelations, invitations, invitationsOpenAPISchema, invitationsRelations, languageSchema, lists, listsOpenAPISchema, listsRelations, listsSubscriptions, listsSubscriptionsOpenAPISchema, listsSubscriptionsRelations, listsTimeline, listsTimelineOpenAPISchema, listsTimelineRelations, mediaZodSchema, messaging, messagingOpenAPISchema, messagingRelations, sessions, settings, subscriptions, subscriptionsOpenAPISchema, subscriptionsRelations, timeline, timelineOpenAPISchema, timelineRelations, transactionType, transactions, transactionsOpenAPISchema, transactionsRelations, users, usersOpenApiSchema, usersRelations, verificationTokens, wallets, walletsOpenAPISchema, walletsRelations };
+173
View File
@@ -227,6 +227,9 @@ importers:
'@electron-toolkit/utils':
specifier: ^3.0.0
version: 3.0.0(electron@32.1.2)
'@eneris/push-receiver':
specifier: 4.2.0
version: 4.2.0
'@follow/shared':
specifier: workspace:*
version: link:../../packages/shared
@@ -1530,6 +1533,10 @@ packages:
'@emotion/memoize@0.9.0':
resolution: {integrity: sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==}
'@eneris/push-receiver@4.2.0':
resolution: {integrity: sha512-OGc4dUcy9yvKTIShOpBVHsYGEC7qRo6JNRRlsL7kaa3/uJSJyRoLOUdKsTqH8q76qldViXb8mEdOzCGv8wwK4A==}
engines: {node: '>=20'}
'@es-joy/jsdoccomment@0.48.0':
resolution: {integrity: sha512-G6QUWIcC+KvSwXNsJyDTHvqUdNoAVJPPgkc3+Uk4WBKqZvoXhlvazOgm9aL0HwihJLQf0l+tOE2UFzXBqCqgDw==}
engines: {node: '>=16'}
@@ -2380,6 +2387,36 @@ packages:
'@prisma/instrumentation@5.17.0':
resolution: {integrity: sha512-c1Sle4ji8aasMcYfBBHFM56We4ljfenVtRmS8aY06BllS7SoU6SmJBwG7vil+GHiR0Yrh+t9iBwt4AY0Jr4KNQ==}
'@protobufjs/aspromise@1.1.2':
resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
'@protobufjs/base64@1.1.2':
resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==}
'@protobufjs/codegen@2.0.4':
resolution: {integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==}
'@protobufjs/eventemitter@1.1.0':
resolution: {integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==}
'@protobufjs/fetch@1.1.0':
resolution: {integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==}
'@protobufjs/float@1.0.2':
resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==}
'@protobufjs/inquire@1.1.0':
resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==}
'@protobufjs/path@1.1.2':
resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==}
'@protobufjs/pool@1.1.0':
resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==}
'@protobufjs/utf8@1.1.0':
resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==}
'@radix-ui/number@1.1.0':
resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==}
@@ -4060,6 +4097,9 @@ packages:
buffer-crc32@0.2.13:
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
buffer-equal-constant-time@1.0.1:
resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==}
buffer-equal@1.0.1:
resolution: {integrity: sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==}
engines: {node: '>=0.4'}
@@ -4846,6 +4886,9 @@ packages:
eastasianwidth@0.2.0:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
ecdsa-sig-formatter@1.0.11:
resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}
ejs@3.1.10:
resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==}
engines: {node: '>=0.10.0'}
@@ -5760,6 +5803,10 @@ packages:
resolution: {integrity: sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==}
engines: {node: '>=10.19.0'}
http_ece@1.2.1:
resolution: {integrity: sha512-+tzLoMYgXvicu60sVFoswTiu6BiQ6EX3DORRJQ3W2dNpNWCyZ3tcmRFZZ3jgVyw8ziWUCeUARKCkYDY6JgFx+w==}
engines: {node: '>=16'}
https-proxy-agent@5.0.1:
resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}
engines: {node: '>= 6'}
@@ -6112,6 +6159,10 @@ packages:
resolution: {integrity: sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==}
engines: {node: '>=0.10.0'}
jsonwebtoken@9.0.2:
resolution: {integrity: sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==}
engines: {node: '>=12', npm: '>=6'}
jszip@3.10.1:
resolution: {integrity: sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==}
@@ -6119,6 +6170,12 @@ packages:
resolution: {integrity: sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==}
engines: {node: '>=8'}
jwa@1.4.1:
resolution: {integrity: sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==}
jws@3.2.2:
resolution: {integrity: sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==}
keycode@2.2.1:
resolution: {integrity: sha512-Rdgz9Hl9Iv4QKi8b0OlCRQEzp4AgVxyCtz5S/+VIHezDmrDhkp2N2TqBWOLz0/gbeREXOOiI9/4b8BY9uw2vFg==}
@@ -6223,18 +6280,36 @@ packages:
lodash.get@4.4.2:
resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==}
lodash.includes@4.3.0:
resolution: {integrity: sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==}
lodash.isboolean@3.0.3:
resolution: {integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==}
lodash.isequal@4.5.0:
resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
lodash.isinteger@4.0.4:
resolution: {integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==}
lodash.isnumber@3.0.3:
resolution: {integrity: sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==}
lodash.isplainobject@4.0.6:
resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}
lodash.isstring@4.0.1:
resolution: {integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==}
lodash.memoize@4.1.2:
resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==}
lodash.merge@4.6.2:
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
lodash.once@4.1.1:
resolution: {integrity: sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==}
lodash.sortby@4.7.0:
resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==}
@@ -6259,6 +6334,9 @@ packages:
resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==}
engines: {node: '>=18'}
long@5.2.3:
resolution: {integrity: sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==}
longest-streak@3.1.0:
resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==}
@@ -7384,6 +7462,10 @@ packages:
property-information@6.5.0:
resolution: {integrity: sha512-PgTgs/BlvHxOu8QuEN7wi5A0OmXaBcHpmCSTehcs6Uuu9IkDIEo13Hy7n898RHfrQ49vKCoGeWZSaAK01nwVig==}
protobufjs@7.4.0:
resolution: {integrity: sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==}
engines: {node: '>=12.0.0'}
proxy-from-env@1.1.0:
resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==}
@@ -10143,6 +10225,13 @@ snapshots:
'@emotion/memoize@0.9.0':
optional: true
'@eneris/push-receiver@4.2.0':
dependencies:
http_ece: 1.2.1
jsonwebtoken: 9.0.2
long: 5.2.3
protobufjs: 7.4.0
'@es-joy/jsdoccomment@0.48.0':
dependencies:
comment-parser: 1.4.1
@@ -11082,6 +11171,29 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@protobufjs/aspromise@1.1.2': {}
'@protobufjs/base64@1.1.2': {}
'@protobufjs/codegen@2.0.4': {}
'@protobufjs/eventemitter@1.1.0': {}
'@protobufjs/fetch@1.1.0':
dependencies:
'@protobufjs/aspromise': 1.1.2
'@protobufjs/inquire': 1.1.0
'@protobufjs/float@1.0.2': {}
'@protobufjs/inquire@1.1.0': {}
'@protobufjs/path@1.1.2': {}
'@protobufjs/pool@1.1.0': {}
'@protobufjs/utf8@1.1.0': {}
'@radix-ui/number@1.1.0': {}
'@radix-ui/primitive@1.0.1':
@@ -13032,6 +13144,8 @@ snapshots:
buffer-crc32@0.2.13: {}
buffer-equal-constant-time@1.0.1: {}
buffer-equal@1.0.1: {}
buffer-from@1.1.2: {}
@@ -13864,6 +13978,10 @@ snapshots:
eastasianwidth@0.2.0: {}
ecdsa-sig-formatter@1.0.11:
dependencies:
safe-buffer: 5.2.1
ejs@3.1.10:
dependencies:
jake: 10.9.2
@@ -15226,6 +15344,8 @@ snapshots:
quick-lru: 5.1.1
resolve-alpn: 1.2.1
http_ece@1.2.1: {}
https-proxy-agent@5.0.1:
dependencies:
agent-base: 6.0.2
@@ -15527,6 +15647,19 @@ snapshots:
jsonpointer@5.0.1:
optional: true
jsonwebtoken@9.0.2:
dependencies:
jws: 3.2.2
lodash.includes: 4.3.0
lodash.isboolean: 3.0.3
lodash.isinteger: 4.0.4
lodash.isnumber: 3.0.3
lodash.isplainobject: 4.0.6
lodash.isstring: 4.0.1
lodash.once: 4.1.1
ms: 2.1.3
semver: 7.6.3
jszip@3.10.1:
dependencies:
lie: 3.3.0
@@ -15536,6 +15669,17 @@ snapshots:
junk@3.1.0: {}
jwa@1.4.1:
dependencies:
buffer-equal-constant-time: 1.0.1
ecdsa-sig-formatter: 1.0.11
safe-buffer: 5.2.1
jws@3.2.2:
dependencies:
jwa: 1.4.1
safe-buffer: 5.2.1
keycode@2.2.1: {}
keycon@1.4.0:
@@ -15658,14 +15802,26 @@ snapshots:
lodash.get@4.4.2: {}
lodash.includes@4.3.0: {}
lodash.isboolean@3.0.3: {}
lodash.isequal@4.5.0: {}
lodash.isinteger@4.0.4: {}
lodash.isnumber@3.0.3: {}
lodash.isplainobject@4.0.6: {}
lodash.isstring@4.0.1: {}
lodash.memoize@4.1.2: {}
lodash.merge@4.6.2: {}
lodash.once@4.1.1: {}
lodash.sortby@4.7.0: {}
lodash.union@4.6.0: {}
@@ -15695,6 +15851,8 @@ snapshots:
strip-ansi: 7.1.0
wrap-ansi: 9.0.0
long@5.2.3: {}
longest-streak@3.1.0: {}
loose-envify@1.4.0:
@@ -17023,6 +17181,21 @@ snapshots:
property-information@6.5.0: {}
protobufjs@7.4.0:
dependencies:
'@protobufjs/aspromise': 1.1.2
'@protobufjs/base64': 1.1.2
'@protobufjs/codegen': 2.0.4
'@protobufjs/eventemitter': 1.1.0
'@protobufjs/fetch': 1.1.0
'@protobufjs/float': 1.0.2
'@protobufjs/inquire': 1.1.0
'@protobufjs/path': 1.1.2
'@protobufjs/pool': 1.1.0
'@protobufjs/utf8': 1.1.0
'@types/node': 22.7.4
long: 5.2.3
proxy-from-env@1.1.0: {}
public-encrypt@4.0.3: