@protobase/config 0.121.1 → 0.121.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.
- package/dist/config.d.ts +1 -1
- package/package.json +2 -2
- package/schema.json +134 -1
package/dist/config.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export type ProtobaseConfig = AppKeys & ApiOptionKeys & {
|
|
|
94
94
|
/** Packages of workflow plugins the app runs beside the built-in types and its own plugins, by package name. */
|
|
95
95
|
plugins?: string[];
|
|
96
96
|
};
|
|
97
|
-
/** How the record channels and supabase-js's Realtime are served: `{ processes: 'many' }` when several processes serve the app, `{ sqlSends: true }` to broadcast to channels from SQL (see `RealtimeOptions`). */
|
|
97
|
+
/** How the record channels and supabase-js's Realtime are served: `{ processes: 'many' }` when several processes serve the app, `{ sqlSends: true }` to broadcast to channels from SQL, `{ relay }` to hand the connections to a realtime relay (see `RealtimeOptions`). */
|
|
98
98
|
realtime?: RealtimeOptions;
|
|
99
99
|
/** Each user's devices and inbox (see `NotificationsOptions`); `{}` turns them on. */
|
|
100
100
|
notifications?: Omit<NotificationsOptions, 'store' | 'historyStore' | 'senders'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/config",
|
|
3
|
-
"version": "0.121.
|
|
3
|
+
"version": "0.121.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.121.
|
|
34
|
+
"@protobase/server": "0.121.2"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/schema.json
CHANGED
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
"additionalProperties": false
|
|
719
719
|
},
|
|
720
720
|
"realtime": {
|
|
721
|
-
"description": "How the record channels and supabase-js's Realtime are served: `{ processes: 'many' }` when several processes serve the app, `{ sqlSends: true }` to broadcast to channels from SQL (see `RealtimeOptions`).",
|
|
721
|
+
"description": "How the record channels and supabase-js's Realtime are served: `{ processes: 'many' }` when several processes serve the app, `{ sqlSends: true }` to broadcast to channels from SQL, `{ relay }` to hand the connections to a realtime relay (see `RealtimeOptions`).",
|
|
722
722
|
"$ref": "#/definitions/RealtimeOptions"
|
|
723
723
|
},
|
|
724
724
|
"notifications": {
|
|
@@ -6313,10 +6313,143 @@
|
|
|
6313
6313
|
"sqlSends": {
|
|
6314
6314
|
"description": "`true` lets SQL in the app's database broadcast to the record channels with `channels.send()`, from the `channels`\nschema `protobase migration` writes.",
|
|
6315
6315
|
"type": "boolean"
|
|
6316
|
+
},
|
|
6317
|
+
"relay": {
|
|
6318
|
+
"description": "The relay the app hands realtime connections to, beside its own channels, so the app can sleep while people stay\nconnected (see `RealtimeRelayOptions`).",
|
|
6319
|
+
"$ref": "#/definitions/RealtimeRelayOptions"
|
|
6320
|
+
}
|
|
6321
|
+
},
|
|
6322
|
+
"additionalProperties": false
|
|
6323
|
+
},
|
|
6324
|
+
"RealtimeRelayOptions": {
|
|
6325
|
+
"type": "object",
|
|
6326
|
+
"properties": {
|
|
6327
|
+
"url": {
|
|
6328
|
+
"description": "The relay's address, such as `https://relay.example.com`: its app commands, and its socket at `/socket`.",
|
|
6329
|
+
"anyOf": [
|
|
6330
|
+
{
|
|
6331
|
+
"type": "string"
|
|
6332
|
+
},
|
|
6333
|
+
{
|
|
6334
|
+
"$ref": "#/definitions/EnvValue"
|
|
6335
|
+
}
|
|
6336
|
+
]
|
|
6337
|
+
},
|
|
6338
|
+
"app": {
|
|
6339
|
+
"description": "The app's id on the relay.",
|
|
6340
|
+
"anyOf": [
|
|
6341
|
+
{
|
|
6342
|
+
"type": "string"
|
|
6343
|
+
},
|
|
6344
|
+
{
|
|
6345
|
+
"$ref": "#/definitions/EnvValue"
|
|
6346
|
+
}
|
|
6347
|
+
]
|
|
6348
|
+
},
|
|
6349
|
+
"apiKey": {
|
|
6350
|
+
"description": "One of the app's API keys on the relay, which its commands carry.",
|
|
6351
|
+
"anyOf": [
|
|
6352
|
+
{
|
|
6353
|
+
"type": "string"
|
|
6354
|
+
},
|
|
6355
|
+
{
|
|
6356
|
+
"$ref": "#/definitions/EnvValue"
|
|
6357
|
+
}
|
|
6358
|
+
]
|
|
6359
|
+
},
|
|
6360
|
+
"ticketKey": {
|
|
6361
|
+
"description": "One of the app's ticket keys on the relay, which signs the connect tickets.",
|
|
6362
|
+
"anyOf": [
|
|
6363
|
+
{
|
|
6364
|
+
"type": "string"
|
|
6365
|
+
},
|
|
6366
|
+
{
|
|
6367
|
+
"$ref": "#/definitions/EnvValue"
|
|
6368
|
+
}
|
|
6369
|
+
]
|
|
6370
|
+
},
|
|
6371
|
+
"channels": {
|
|
6372
|
+
"description": "The channel resources by name.",
|
|
6373
|
+
"type": "object",
|
|
6374
|
+
"additionalProperties": {
|
|
6375
|
+
"$ref": "#/definitions/RelayChannelOptions"
|
|
6376
|
+
}
|
|
6377
|
+
}
|
|
6378
|
+
},
|
|
6379
|
+
"required": [
|
|
6380
|
+
"url",
|
|
6381
|
+
"app",
|
|
6382
|
+
"apiKey",
|
|
6383
|
+
"ticketKey",
|
|
6384
|
+
"channels"
|
|
6385
|
+
],
|
|
6386
|
+
"additionalProperties": false
|
|
6387
|
+
},
|
|
6388
|
+
"RelayChannelOptions": {
|
|
6389
|
+
"type": "object",
|
|
6390
|
+
"properties": {
|
|
6391
|
+
"members": {
|
|
6392
|
+
"description": "Who is in each channel. Without it the channel is open: whoever may read the record gets it in a ticket when they\nask for it, a visitor of the anonymous role too.",
|
|
6393
|
+
"$ref": "#/definitions/RelayMembers"
|
|
6394
|
+
},
|
|
6395
|
+
"mentions": {
|
|
6396
|
+
"description": "A field of the records noticed on the channel that lists the user ids a record mentions, such as a message's `mentions`.",
|
|
6397
|
+
"anyOf": [
|
|
6398
|
+
{
|
|
6399
|
+
"type": "string"
|
|
6400
|
+
},
|
|
6401
|
+
{
|
|
6402
|
+
"$ref": "#/definitions/EnvValue"
|
|
6403
|
+
}
|
|
6404
|
+
]
|
|
6316
6405
|
}
|
|
6317
6406
|
},
|
|
6318
6407
|
"additionalProperties": false
|
|
6319
6408
|
},
|
|
6409
|
+
"RelayMembers": {
|
|
6410
|
+
"type": "object",
|
|
6411
|
+
"properties": {
|
|
6412
|
+
"resource": {
|
|
6413
|
+
"description": "The resource, such as `conversation_members`.",
|
|
6414
|
+
"anyOf": [
|
|
6415
|
+
{
|
|
6416
|
+
"type": "string"
|
|
6417
|
+
},
|
|
6418
|
+
{
|
|
6419
|
+
"$ref": "#/definitions/EnvValue"
|
|
6420
|
+
}
|
|
6421
|
+
]
|
|
6422
|
+
},
|
|
6423
|
+
"channel": {
|
|
6424
|
+
"description": "Its relation field to the channel resource, such as `conversation_id`.",
|
|
6425
|
+
"anyOf": [
|
|
6426
|
+
{
|
|
6427
|
+
"type": "string"
|
|
6428
|
+
},
|
|
6429
|
+
{
|
|
6430
|
+
"$ref": "#/definitions/EnvValue"
|
|
6431
|
+
}
|
|
6432
|
+
]
|
|
6433
|
+
},
|
|
6434
|
+
"user": {
|
|
6435
|
+
"description": "Its field holding the person's user id, such as `user_id`.",
|
|
6436
|
+
"anyOf": [
|
|
6437
|
+
{
|
|
6438
|
+
"type": "string"
|
|
6439
|
+
},
|
|
6440
|
+
{
|
|
6441
|
+
"$ref": "#/definitions/EnvValue"
|
|
6442
|
+
}
|
|
6443
|
+
]
|
|
6444
|
+
}
|
|
6445
|
+
},
|
|
6446
|
+
"required": [
|
|
6447
|
+
"resource",
|
|
6448
|
+
"channel",
|
|
6449
|
+
"user"
|
|
6450
|
+
],
|
|
6451
|
+
"additionalProperties": false
|
|
6452
|
+
},
|
|
6320
6453
|
"StatusOptions": {
|
|
6321
6454
|
"type": "object",
|
|
6322
6455
|
"properties": {
|