@protobase/config 0.105.3 → 0.106.1

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 +57 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.105.3",
3
+ "version": "0.106.1",
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.3"
34
+ "@protobase/server": "0.106.1"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -2126,7 +2126,7 @@
2126
2126
  ]
2127
2127
  },
2128
2128
  "socialProviders": {
2129
- "description": "Sign-in providers for Better Auth, for example `{ github: { clientId, clientSecret } }`; the callback is\n`{baseURL}/api/auth/callback/<provider>`. A provider also signs up people without an account, with the default role.\nOne with the id of `signInProvider` takes its place. Default none.",
2129
+ "description": "Sign-in providers for Better Auth, for example `{ github: { clientId, clientSecret } }`; the callback is\n`{baseURL}/api/auth/callback/<provider>`. A provider also signs up people without an account, with the default role.\nOne with the id of a provider of `signInProviders` takes its place. Default none.",
2130
2130
  "anyOf": [
2131
2131
  {
2132
2132
  "type": "object"
@@ -2257,14 +2257,21 @@
2257
2257
  }
2258
2258
  ]
2259
2259
  },
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. Without `clientSecret`, it\nsigns in by token sign-in alone, with tokens for the origin of `baseURL` unless `clientId` names another.",
2260
+ "signInProviders": {
2261
+ "description": "The sign-in providers the platform adds for people who already have an account: OpenID Connect providers that never\nsign anyone up, each with its own id. Defaults to those the platform passes in `PROTOBASE_SIGN_IN_ISSUER`,\n`PROTOBASE_SIGN_IN_CLIENT_ID` and `PROTOBASE_SIGN_IN_CLIENT_SECRET`, and the numbered sets after them such as\n`PROTOBASE_SIGN_IN_2_ISSUER` (see `readPlatformSignIns`); `[]` turns them off whatever the environment says. One\nis left out when `socialProviders` has a provider with its id. Without `clientSecret`, one signs in by token sign-in\nalone, with tokens for the origin of `baseURL` unless `clientId` names another.",
2262
2262
  "anyOf": [
2263
2263
  {
2264
- "const": false
2265
- },
2266
- {
2267
- "$ref": "#/definitions/PlatformSignIn"
2264
+ "type": "array",
2265
+ "items": {
2266
+ "anyOf": [
2267
+ {
2268
+ "$ref": "#/definitions/PlatformSignIn"
2269
+ },
2270
+ {
2271
+ "$ref": "#/definitions/EnvValue"
2272
+ }
2273
+ ]
2274
+ }
2268
2275
  },
2269
2276
  {
2270
2277
  "$ref": "#/definitions/EnvValue"
@@ -2799,6 +2806,38 @@
2799
2806
  }
2800
2807
  ]
2801
2808
  },
2809
+ "authorizationParams": {
2810
+ "description": "Parameters every authorization request to the provider carries as given, such as one naming which of its own\nsign-in methods it must use; a client cannot add to them or change them. None of those the flow sets itself\n(`state`, `client_id`, `redirect_uri`, `response_type`, `scope`, `nonce`, `code_challenge`, `code_challenge_method`).",
2811
+ "anyOf": [
2812
+ {
2813
+ "type": "object",
2814
+ "additionalProperties": {
2815
+ "anyOf": [
2816
+ {
2817
+ "type": "string"
2818
+ },
2819
+ {
2820
+ "$ref": "#/definitions/EnvValue"
2821
+ }
2822
+ ]
2823
+ }
2824
+ },
2825
+ {
2826
+ "$ref": "#/definitions/EnvValue"
2827
+ }
2828
+ ]
2829
+ },
2830
+ "hidden": {
2831
+ "description": "Keeps people's links to the provider off their account page: not listed among the connected accounts, and not\nconnected or disconnected there. The link still signs them in, and goes with the person. Default off.",
2832
+ "anyOf": [
2833
+ {
2834
+ "type": "boolean"
2835
+ },
2836
+ {
2837
+ "$ref": "#/definitions/EnvValue"
2838
+ }
2839
+ ]
2840
+ },
2802
2841
  "tokenSignIn": {
2803
2842
  "description": "Token sign-in: a client that holds a fresh ID token the provider issued for this app posts it instead of sending\nthe browser through the provider, and gets the app's own session (see `idTokenSignInPlugin`). Default off.",
2804
2843
  "anyOf": [
@@ -2809,6 +2848,17 @@
2809
2848
  "$ref": "#/definitions/EnvValue"
2810
2849
  }
2811
2850
  ]
2851
+ },
2852
+ "devices": {
2853
+ "description": "Each device is an account of its own: the provider gives every device a subject of its own, and a person holds\nas many accounts of it as they have devices, each linked by the address on its first sign-in like any other. The\naccount page lists them among the devices, named by `name` and the token's `device_name` claim, not among the\nconnected accounts; signing one out there removes it and ends its sessions, and its subject never signs in again.\nNeeds `tokenSignIn` without a `clientSecret`: a device signs in by token alone. Default off.",
2854
+ "anyOf": [
2855
+ {
2856
+ "type": "boolean"
2857
+ },
2858
+ {
2859
+ "$ref": "#/definitions/EnvValue"
2860
+ }
2861
+ ]
2812
2862
  }
2813
2863
  },
2814
2864
  "required": [