@protobase/config 0.121.9 → 0.121.11

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 +72 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.121.9",
3
+ "version": "0.121.11",
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.121.9"
34
+ "@protobase/server": "0.121.11"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -6378,6 +6378,10 @@
6378
6378
  "additionalProperties": {
6379
6379
  "$ref": "#/definitions/RelayChannelOptions"
6380
6380
  }
6381
+ },
6382
+ "presence": {
6383
+ "description": "Turns on presence: the relay reports who is online, away or offline, and the app keeps it in this resource.",
6384
+ "$ref": "#/definitions/RelayPresence"
6381
6385
  }
6382
6386
  },
6383
6387
  "required": [
@@ -6454,6 +6458,74 @@
6454
6458
  ],
6455
6459
  "additionalProperties": false
6456
6460
  },
6461
+ "RelayPresence": {
6462
+ "type": "object",
6463
+ "properties": {
6464
+ "resource": {
6465
+ "description": "The resource, such as `presences`: captured, such as with `.live()`, and keyed by its user field.",
6466
+ "anyOf": [
6467
+ {
6468
+ "type": "string"
6469
+ },
6470
+ {
6471
+ "$ref": "#/definitions/EnvValue"
6472
+ }
6473
+ ]
6474
+ },
6475
+ "user": {
6476
+ "description": "Its field holding the person's user id, its key, such as `user_id`.",
6477
+ "anyOf": [
6478
+ {
6479
+ "type": "string"
6480
+ },
6481
+ {
6482
+ "$ref": "#/definitions/EnvValue"
6483
+ }
6484
+ ]
6485
+ },
6486
+ "status": {
6487
+ "description": "Its field holding `online`, `away` or `offline`, such as `status`.",
6488
+ "anyOf": [
6489
+ {
6490
+ "type": "string"
6491
+ },
6492
+ {
6493
+ "$ref": "#/definitions/EnvValue"
6494
+ }
6495
+ ]
6496
+ },
6497
+ "at": {
6498
+ "description": "Its timestamp field holding when the status began, such as `since`.",
6499
+ "anyOf": [
6500
+ {
6501
+ "type": "string"
6502
+ },
6503
+ {
6504
+ "$ref": "#/definitions/EnvValue"
6505
+ }
6506
+ ]
6507
+ },
6508
+ "key": {
6509
+ "description": "The bearer token the relay's presence reports carry, at least 32 characters.",
6510
+ "anyOf": [
6511
+ {
6512
+ "type": "string"
6513
+ },
6514
+ {
6515
+ "$ref": "#/definitions/EnvValue"
6516
+ }
6517
+ ]
6518
+ }
6519
+ },
6520
+ "required": [
6521
+ "resource",
6522
+ "user",
6523
+ "status",
6524
+ "at",
6525
+ "key"
6526
+ ],
6527
+ "additionalProperties": false
6528
+ },
6457
6529
  "StatusOptions": {
6458
6530
  "type": "object",
6459
6531
  "properties": {