@protobase/config 0.105.1 → 0.105.3

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/schema.json +82 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.105.1",
3
+ "version": "0.105.3",
4
4
  "description": "defineConfig and the types of a Protobase project's protobase.config.ts, and the JSON Schema of protobase.config.json.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -31,6 +31,6 @@
31
31
  "access": "public"
32
32
  },
33
33
  "peerDependencies": {
34
- "@protobase/server": "0.105.1"
34
+ "@protobase/server": "0.105.3"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -1936,7 +1936,7 @@
1936
1936
  ]
1937
1937
  },
1938
1938
  "signUp": {
1939
- "description": "Open sign-up: anyone makes their own account from the sign-in page, with `role`, after proving their address with\nan emailed code. Off by default, so accounts come only from the host, an admin, an invitation or a sign-in provider.\nNeeds a mailer: without one it is not offered. `role` is one of `roles` and never `admin`; give it the least\na stranger may hold. Not with `organizations`, whose people come from invitations. `domains`, for example\n`['example.com']`, limits it to addresses there (subdomains count); `PROTOBASE_SIGN_UP_DOMAINS`, when set, replaces\nit. An empty list leaves open sign-up off.",
1939
+ "description": "Open sign-up: anyone makes their own account from the sign-in page, with `role`, after proving their address with\nan emailed code. Off by default, so accounts come only from the host, an admin, an invitation or a sign-in provider.\nNeeds a mailer: without one it is not offered. `role` is one of `roles` and never `admin`; give it the least\na stranger may hold. Not with `organizations`, whose people come from invitations. `domains`, for example\n`['example.com']`, limits it to addresses there (subdomains count); `PROTOBASE_SIGN_UP_DOMAINS`, when set, replaces\nit. An empty list leaves open sign-up off. `fields` is what it asks for: `['email', 'name']` by default, or\n`['email']`, when the emailed sign-in code makes the account of an address without one on the spot.",
1940
1940
  "anyOf": [
1941
1941
  {
1942
1942
  "type": "object",
@@ -1970,6 +1970,29 @@
1970
1970
  "$ref": "#/definitions/EnvValue"
1971
1971
  }
1972
1972
  ]
1973
+ },
1974
+ "fields": {
1975
+ "anyOf": [
1976
+ {
1977
+ "type": "array",
1978
+ "items": {
1979
+ "anyOf": [
1980
+ {
1981
+ "enum": [
1982
+ "email",
1983
+ "name"
1984
+ ]
1985
+ },
1986
+ {
1987
+ "$ref": "#/definitions/EnvValue"
1988
+ }
1989
+ ]
1990
+ }
1991
+ },
1992
+ {
1993
+ "$ref": "#/definitions/EnvValue"
1994
+ }
1995
+ ]
1973
1996
  }
1974
1997
  },
1975
1998
  "required": [
@@ -2235,7 +2258,7 @@
2235
2258
  ]
2236
2259
  },
2237
2260
  "signInProvider": {
2238
- "description": "A sign-in provider the platform adds for people who already have an account: an OpenID Connect provider that never\nsigns anyone up. Defaults to the one the platform passes in `PROTOBASE_SIGN_IN_ISSUER`, `PROTOBASE_SIGN_IN_CLIENT_ID`\nand `PROTOBASE_SIGN_IN_CLIENT_SECRET` (see `readPlatformSignIn`), when set; `false` turns it off whatever the\nenvironment says. Left out when `socialProviders` has a provider with the same id.",
2261
+ "description": "A sign-in provider the platform adds for people who already have an account: an OpenID Connect provider that never\nsigns anyone up. Defaults to the one the platform passes in `PROTOBASE_SIGN_IN_ISSUER`, `PROTOBASE_SIGN_IN_CLIENT_ID`\nand `PROTOBASE_SIGN_IN_CLIENT_SECRET` (see `readPlatformSignIn`), when set; `false` turns it off whatever the\nenvironment says. Left out when `socialProviders` has a provider with the same id. Without `clientSecret`, it\nsigns in by token sign-in alone, with tokens for the origin of `baseURL` unless `clientId` names another.",
2239
2262
  "anyOf": [
2240
2263
  {
2241
2264
  "const": false
@@ -2270,6 +2293,20 @@
2270
2293
  }
2271
2294
  ]
2272
2295
  },
2296
+ "openIdProvider": {
2297
+ "description": "Turns the app into an OpenID provider for the clients its admins register (`/api/auth/openid-provider/clients`),\nsuch as other apps that let people sign in with it: a person signs in on the app's own pages and the client gets\nan ID token with their `sub`, `email` and `email_verified`, without being asked to allow it. Nothing registers\nitself, and any other client or redirect URI is refused. A client allowed to exchange gets ID tokens for the other\nclients from its own access token (RFC 8693), without a browser. `true` for the defaults, or the `connectPage`\n(default `/-/connect`). Not with `mcp`. Off by default.",
2298
+ "anyOf": [
2299
+ {
2300
+ "const": true
2301
+ },
2302
+ {
2303
+ "$ref": "#/definitions/OpenIdProviderOptions"
2304
+ },
2305
+ {
2306
+ "$ref": "#/definitions/EnvValue"
2307
+ }
2308
+ ]
2309
+ },
2273
2310
  "personalAccessTokens": {
2274
2311
  "description": "Turns on personal access tokens: a signed-in person makes long-lived tokens on their account page, for a script to\ncall the app's API as them with `Authorization: Bearer <token>`. `prefix` starts every token, lowercase letters,\ndigits and underscores ending in `_`, such as `invoices_`; it has no default. Off by default.",
2275
2312
  "anyOf": [
@@ -2345,7 +2382,7 @@
2345
2382
  {
2346
2383
  "type": "object",
2347
2384
  "properties": {
2348
- "name": {
2385
+ "email": {
2349
2386
  "anyOf": [
2350
2387
  {
2351
2388
  "type": "string"
@@ -2355,7 +2392,7 @@
2355
2392
  }
2356
2393
  ]
2357
2394
  },
2358
- "email": {
2395
+ "name": {
2359
2396
  "anyOf": [
2360
2397
  {
2361
2398
  "type": "string"
@@ -2698,6 +2735,7 @@
2698
2735
  ]
2699
2736
  },
2700
2737
  "clientId": {
2738
+ "description": "This app's client id at the provider, which its ID tokens name as their audience; default the origin of `baseURL` without `clientSecret`.",
2701
2739
  "anyOf": [
2702
2740
  {
2703
2741
  "type": "string"
@@ -2708,6 +2746,7 @@
2708
2746
  ]
2709
2747
  },
2710
2748
  "clientSecret": {
2749
+ "description": "The client secret for sign-in through the provider's pages; without it, only `tokenSignIn`, which must then be on.",
2711
2750
  "anyOf": [
2712
2751
  {
2713
2752
  "type": "string"
@@ -2773,9 +2812,7 @@
2773
2812
  }
2774
2813
  },
2775
2814
  "required": [
2776
- "issuer",
2777
- "clientId",
2778
- "clientSecret"
2815
+ "issuer"
2779
2816
  ],
2780
2817
  "additionalProperties": false
2781
2818
  },
@@ -3014,6 +3051,44 @@
3014
3051
  },
3015
3052
  "additionalProperties": false
3016
3053
  },
3054
+ "OpenIdProviderOptions": {
3055
+ "type": "object",
3056
+ "properties": {
3057
+ "connectPage": {
3058
+ "description": "The connect page's path on the app's origin, where people sign in on the way to a client; default `/-/connect`, for a UI at the root.",
3059
+ "anyOf": [
3060
+ {
3061
+ "type": "string"
3062
+ },
3063
+ {
3064
+ "$ref": "#/definitions/EnvValue"
3065
+ }
3066
+ ]
3067
+ },
3068
+ "audiences": {
3069
+ "description": "The origins the token exchange issues ID tokens for besides the registered clients, as patterns such as\n`https://*.example.app` (see `AudiencePattern`): the ID token's audience is the origin itself, so the apps there\nneed no registration. No browser is ever sent to them. Default none.",
3070
+ "anyOf": [
3071
+ {
3072
+ "type": "array",
3073
+ "items": {
3074
+ "anyOf": [
3075
+ {
3076
+ "type": "string"
3077
+ },
3078
+ {
3079
+ "$ref": "#/definitions/EnvValue"
3080
+ }
3081
+ ]
3082
+ }
3083
+ },
3084
+ {
3085
+ "$ref": "#/definitions/EnvValue"
3086
+ }
3087
+ ]
3088
+ }
3089
+ },
3090
+ "additionalProperties": false
3091
+ },
3017
3092
  "PersonalAccessTokensOptions": {
3018
3093
  "type": "object",
3019
3094
  "properties": {