@protobase/config 0.105.2 → 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 +56 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.105.2",
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.2"
34
+ "@protobase/server": "0.105.3"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -2258,7 +2258,7 @@
2258
2258
  ]
2259
2259
  },
2260
2260
  "signInProvider": {
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.",
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.",
2262
2262
  "anyOf": [
2263
2263
  {
2264
2264
  "const": false
@@ -2293,6 +2293,20 @@
2293
2293
  }
2294
2294
  ]
2295
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
+ },
2296
2310
  "personalAccessTokens": {
2297
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.",
2298
2312
  "anyOf": [
@@ -2721,6 +2735,7 @@
2721
2735
  ]
2722
2736
  },
2723
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`.",
2724
2739
  "anyOf": [
2725
2740
  {
2726
2741
  "type": "string"
@@ -2731,6 +2746,7 @@
2731
2746
  ]
2732
2747
  },
2733
2748
  "clientSecret": {
2749
+ "description": "The client secret for sign-in through the provider's pages; without it, only `tokenSignIn`, which must then be on.",
2734
2750
  "anyOf": [
2735
2751
  {
2736
2752
  "type": "string"
@@ -2796,9 +2812,7 @@
2796
2812
  }
2797
2813
  },
2798
2814
  "required": [
2799
- "issuer",
2800
- "clientId",
2801
- "clientSecret"
2815
+ "issuer"
2802
2816
  ],
2803
2817
  "additionalProperties": false
2804
2818
  },
@@ -3037,6 +3051,44 @@
3037
3051
  },
3038
3052
  "additionalProperties": false
3039
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
+ },
3040
3092
  "PersonalAccessTokensOptions": {
3041
3093
  "type": "object",
3042
3094
  "properties": {