@rebasepro/server 0.9.1-canary.ff338b5 → 0.10.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.
- package/dist/api/errors.d.ts +16 -1
- package/dist/api/rest/write-validation.d.ts +3 -0
- package/dist/api/types.d.ts +2 -2
- package/dist/auth/admin-users-route.d.ts +3 -3
- package/dist/auth/auth-hooks.d.ts +7 -7
- package/dist/auth/interfaces.d.ts +28 -28
- package/dist/auth/jwt.d.ts +8 -3
- package/dist/auth/magic-link-routes.d.ts +2 -2
- package/dist/auth/mfa-routes.d.ts +1 -1
- package/dist/auth/middleware.d.ts +3 -3
- package/dist/auth/reset-password-admin.d.ts +1 -1
- package/dist/auth/session-routes.d.ts +2 -2
- package/dist/index.es.js +507 -172
- package/dist/index.es.js.map +1 -1
- package/dist/init.d.ts +1 -1
- package/dist/{jwt-BJzQOa8a.js → jwt-B3zjddCa.js} +5 -5
- package/dist/{jwt-BJzQOa8a.js.map → jwt-B3zjddCa.js.map} +1 -1
- package/dist/src-CsHhSKbi.js.map +1 -1
- package/dist/storage/types.d.ts +1 -1
- package/dist/utils/sql.d.ts +2 -2
- package/package.json +5 -5
package/dist/storage/types.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export type BackendStorageConfig = LocalStorageConfig | S3StorageConfig | GCSSto
|
|
|
82
82
|
export type StorageOperation = "read" | "write" | "delete" | "list";
|
|
83
83
|
/** The caller, as resolved by whichever auth middleware ran. */
|
|
84
84
|
export interface StorageAuthorizeUser {
|
|
85
|
-
|
|
85
|
+
uid: string;
|
|
86
86
|
email?: string;
|
|
87
87
|
roles?: string[];
|
|
88
88
|
}
|
package/dist/utils/sql.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { SQL } from "drizzle-orm";
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns a SQL chunk calling `auth.uid()` — the current user's ID.
|
|
4
4
|
* This is a PostgreSQL RLS helper function created in the `auth` schema
|
|
5
|
-
* that reads `app.
|
|
5
|
+
* that reads `app.uid` set per-transaction by `withAuth()`.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
|
-
* sql`${table.
|
|
8
|
+
* sql`${table.uid} = ${authUid()}`
|
|
9
9
|
*/
|
|
10
10
|
export declare const authUid: () => SQL;
|
|
11
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "Database-Agnostic Backend Core for Rebase",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/rebaseco"
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"jsonwebtoken": "^9.0.3",
|
|
45
45
|
"ws": "^8.21.0",
|
|
46
46
|
"zod": "^4.4.3",
|
|
47
|
-
"@rebasepro/
|
|
48
|
-
"@rebasepro/common": "0.
|
|
49
|
-
"@rebasepro/
|
|
50
|
-
"@rebasepro/
|
|
47
|
+
"@rebasepro/types": "0.10.0",
|
|
48
|
+
"@rebasepro/common": "0.10.0",
|
|
49
|
+
"@rebasepro/client": "0.10.0",
|
|
50
|
+
"@rebasepro/utils": "0.10.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@jest/globals": "^30.4.1",
|