@protobase/server 0.123.4 → 0.123.5
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/create-admin.js +1 -1
- package/dist/meta.d.ts +10 -1
- package/dist/package.js +1 -1
- package/dist/relay/relay-runtime.js +10 -2
- package/package.json +6 -6
package/dist/create-admin.js
CHANGED
|
@@ -348,7 +348,7 @@ const createAdmin = ({ resources: appResources, views: appViews = [], userTables
|
|
|
348
348
|
if (auth) auth.mailSenderUse.set(mailSenderUse(db, registry.entries));
|
|
349
349
|
const appName = shownAppName(auth, globalThis.process?.env ?? {});
|
|
350
350
|
const appIcon = icons?.favicon ? faviconPath : void 0;
|
|
351
|
-
const meta = createMeta(deps, appName, appIcon, relay
|
|
351
|
+
const meta = createMeta(deps, appName, appIcon, relay?.meta);
|
|
352
352
|
const onError = createErrorHandler(options.onUnhandledError, deps.statementTimeoutMs);
|
|
353
353
|
const guarded = (routes, caller = authenticate) => {
|
|
354
354
|
const app = new Hono();
|
package/dist/meta.d.ts
CHANGED
|
@@ -63,9 +63,18 @@ export type CallerMeta = {
|
|
|
63
63
|
status?: true;
|
|
64
64
|
/** With `calls`: the app's calls ring people, on any page they have open, through the live stream. */
|
|
65
65
|
calls?: true;
|
|
66
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* With `realtime.relay`: the resources whose changes the relay notices on its channels, which pages hear of from it,
|
|
68
|
+
* and, with its presence, the resource and fields pages read who is online, away or offline from.
|
|
69
|
+
*/
|
|
67
70
|
relay?: {
|
|
68
71
|
resources: string[];
|
|
72
|
+
presence?: {
|
|
73
|
+
resource: string;
|
|
74
|
+
user: string;
|
|
75
|
+
status: string;
|
|
76
|
+
at: string;
|
|
77
|
+
};
|
|
69
78
|
};
|
|
70
79
|
/** The language the admin app's screens are in, when the app sets one for everyone. */
|
|
71
80
|
locale?: Locale;
|
package/dist/package.js
CHANGED
|
@@ -46,11 +46,19 @@ const relayRuntime = (options, auth, deps) => {
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
const
|
|
49
|
+
const meta = {
|
|
50
|
+
resources: [...models.placements.keys()].sort(),
|
|
51
|
+
...models.presence && { presence: {
|
|
52
|
+
resource: models.presence.model.name,
|
|
53
|
+
user: models.presence.user,
|
|
54
|
+
status: models.presence.status,
|
|
55
|
+
at: models.presence.at
|
|
56
|
+
} }
|
|
57
|
+
};
|
|
50
58
|
return {
|
|
51
59
|
jobs: jobs.jobs,
|
|
52
60
|
onChanges,
|
|
53
|
-
|
|
61
|
+
meta,
|
|
54
62
|
routes: () => ticketRoutes({
|
|
55
63
|
deps,
|
|
56
64
|
options,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/server",
|
|
3
|
-
"version": "0.123.
|
|
3
|
+
"version": "0.123.5",
|
|
4
4
|
"description": "The Protobase REST API as a Hono app, with Better Auth sign-in.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@better-auth/sso": "^1.7.12",
|
|
45
45
|
"@livekit/protocol": "1.53.1",
|
|
46
46
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
47
|
-
"@protobase/layout": "0.123.
|
|
48
|
-
"@protobase/query": "0.123.
|
|
49
|
-
"@protobase/schema": "0.123.
|
|
50
|
-
"@protobase/workflow-plugins": "0.123.
|
|
51
|
-
"@protobase/workflows": "0.123.
|
|
47
|
+
"@protobase/layout": "0.123.5",
|
|
48
|
+
"@protobase/query": "0.123.5",
|
|
49
|
+
"@protobase/schema": "0.123.5",
|
|
50
|
+
"@protobase/workflow-plugins": "0.123.5",
|
|
51
|
+
"@protobase/workflows": "0.123.5",
|
|
52
52
|
"@react-email/render": "^2.1.0",
|
|
53
53
|
"@react-pdf/primitives": "^4.4.0",
|
|
54
54
|
"@react-pdf/renderer": "^4.9.0",
|