@protobase/client 0.12.8 → 0.12.10
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/auth-types.d.ts +3 -1
- package/dist/auth.js +2 -1
- package/package.json +3 -3
package/dist/auth-types.d.ts
CHANGED
|
@@ -26,7 +26,8 @@ export type PlatformSignIn = {
|
|
|
26
26
|
* `needsAdmin` while no user exists yet; `signInMethods` the ways to sign in the server's policy leaves on;
|
|
27
27
|
* `passwordReset` when the server can email reset links; `socialProviders` the ids of the sign-in providers, for example
|
|
28
28
|
* `github`; `platformSignIn` the one of them the platform adds; `staffSignIn` the operator provider's name when its staff
|
|
29
|
-
* can sign in as people; `organizations` when the app has them
|
|
29
|
+
* can sign in as people; `organizations` when the app has them; `anonymous` when visitors may browse what the project's
|
|
30
|
+
* anonymous role reads without signing in.
|
|
30
31
|
*/
|
|
31
32
|
export type SetupStatus = {
|
|
32
33
|
needsAdmin: boolean;
|
|
@@ -45,6 +46,7 @@ export type SetupStatus = {
|
|
|
45
46
|
create: 'admins' | 'everyone';
|
|
46
47
|
roles: RoleLabel[];
|
|
47
48
|
};
|
|
49
|
+
anonymous?: boolean;
|
|
48
50
|
};
|
|
49
51
|
/** A role with its label; `membership` when a member can hold it, `grants` the other roles its holders may give. */
|
|
50
52
|
export type RoleLabel = {
|
package/dist/auth.js
CHANGED
|
@@ -77,7 +77,8 @@ const createAuthSession = (options = {}) => {
|
|
|
77
77
|
...body.platformSignIn && { platformSignIn: body.platformSignIn },
|
|
78
78
|
...body.staffSignIn && { staffSignIn: body.staffSignIn },
|
|
79
79
|
...body.passkeyDomains && { passkeyDomains: body.passkeyDomains },
|
|
80
|
-
...body.organizations && { organizations: body.organizations }
|
|
80
|
+
...body.organizations && { organizations: body.organizations },
|
|
81
|
+
...body.anonymous && { anonymous: true }
|
|
81
82
|
};
|
|
82
83
|
},
|
|
83
84
|
/** The signed-in user from the session cookie, or `undefined`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/client",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.10",
|
|
4
4
|
"description": "Typed fetch client for the Protobase REST API.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@better-auth/passkey": "^1.7.7",
|
|
33
|
-
"@protobase/layout": "0.12.
|
|
34
|
-
"@protobase/schema": "0.12.
|
|
33
|
+
"@protobase/layout": "0.12.10",
|
|
34
|
+
"@protobase/schema": "0.12.10",
|
|
35
35
|
"@simplewebauthn/browser": "^13.3.0",
|
|
36
36
|
"better-auth": "^1.7.7"
|
|
37
37
|
}
|