@protobase/config 0.105.1 → 0.105.2

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 +26 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.105.1",
3
+ "version": "0.105.2",
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.2"
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": [
@@ -2345,7 +2368,7 @@
2345
2368
  {
2346
2369
  "type": "object",
2347
2370
  "properties": {
2348
- "name": {
2371
+ "email": {
2349
2372
  "anyOf": [
2350
2373
  {
2351
2374
  "type": "string"
@@ -2355,7 +2378,7 @@
2355
2378
  }
2356
2379
  ]
2357
2380
  },
2358
- "email": {
2381
+ "name": {
2359
2382
  "anyOf": [
2360
2383
  {
2361
2384
  "type": "string"