@protobase/config 0.59.2 → 0.60.0
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 +3 -1
- package/package.json +2 -2
- package/schema.json +63 -0
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminOptions, AppIdentity, AssistantOptions, AuthSettings, AuthenticateSettings, CallsOptions, EventsOptions, FileProviderSettings, FilesOptions, HistoryOptions, JobDeclaration, MobileConfig, NotificationsOptions, RealtimeOptions, WebhooksOptions } from "@protobase/server";
|
|
1
|
+
import { AdminOptions, AppIdentity, AssistantOptions, AuthSettings, AuthenticateSettings, CallsOptions, EventsOptions, FileProviderSettings, FilesOptions, HistoryOptions, JobDeclaration, MobileConfig, NotificationsOptions, RealtimeOptions, StatusOptions, WebhooksOptions } from "@protobase/server";
|
|
2
2
|
//#region src/config.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* `auth`: sign-in (see `AuthSettings`). Its URL, secrets and name are the app's (`url`, `secret`, `previousSecrets`,
|
|
@@ -90,6 +90,8 @@ export type ProtobaseConfig = AppKeys & ApiOptionKeys & {
|
|
|
90
90
|
realtime?: RealtimeOptions;
|
|
91
91
|
/** Each user's devices and inbox (see `NotificationsOptions`); `{}` turns them on. */
|
|
92
92
|
notifications?: Omit<NotificationsOptions, 'store' | 'historyStore' | 'senders'>;
|
|
93
|
+
/** People set their own status and see those they share an organization with (see `StatusOptions`); `{}` turns it on, and it needs organizations. */
|
|
94
|
+
status?: StatusOptions;
|
|
93
95
|
/** The media server behind the calls functions admit members to with `calls.join` (see `CallsOptions`). */
|
|
94
96
|
calls?: CallsOptions;
|
|
95
97
|
/** The app's iOS and Android build (see `MobileConfig`). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
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.
|
|
34
|
+
"@protobase/server": "0.60.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/schema.json
CHANGED
|
@@ -979,6 +979,17 @@
|
|
|
979
979
|
}
|
|
980
980
|
]
|
|
981
981
|
},
|
|
982
|
+
"status": {
|
|
983
|
+
"description": "People set their own status and see those they share an organization with (see `StatusOptions`); `{}` turns it on, and it needs organizations.",
|
|
984
|
+
"anyOf": [
|
|
985
|
+
{
|
|
986
|
+
"$ref": "#/definitions/StatusOptions"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"$ref": "#/definitions/EnvValue"
|
|
990
|
+
}
|
|
991
|
+
]
|
|
992
|
+
},
|
|
982
993
|
"calls": {
|
|
983
994
|
"description": "The media server behind the calls functions admit members to with `calls.join` (see `CallsOptions`).",
|
|
984
995
|
"anyOf": [
|
|
@@ -3538,6 +3549,23 @@
|
|
|
3538
3549
|
},
|
|
3539
3550
|
"additionalProperties": false
|
|
3540
3551
|
},
|
|
3552
|
+
"StatusOptions": {
|
|
3553
|
+
"type": "object",
|
|
3554
|
+
"properties": {
|
|
3555
|
+
"schema": {
|
|
3556
|
+
"description": "The schema of the statuses table; default `status`.",
|
|
3557
|
+
"anyOf": [
|
|
3558
|
+
{
|
|
3559
|
+
"type": "string"
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
"$ref": "#/definitions/EnvValue"
|
|
3563
|
+
}
|
|
3564
|
+
]
|
|
3565
|
+
}
|
|
3566
|
+
},
|
|
3567
|
+
"additionalProperties": false
|
|
3568
|
+
},
|
|
3541
3569
|
"CallsOptions": {
|
|
3542
3570
|
"type": "object",
|
|
3543
3571
|
"properties": {
|
|
@@ -3553,6 +3581,31 @@
|
|
|
3553
3581
|
"$ref": "#/definitions/EnvValue"
|
|
3554
3582
|
}
|
|
3555
3583
|
]
|
|
3584
|
+
},
|
|
3585
|
+
"maxMinutes": {
|
|
3586
|
+
"description": "How long a call lasts at most, in minutes, 240 by default: then it ends, whoever is still in it.",
|
|
3587
|
+
"anyOf": [
|
|
3588
|
+
{
|
|
3589
|
+
"type": "number"
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
"$ref": "#/definitions/EnvValue"
|
|
3593
|
+
}
|
|
3594
|
+
]
|
|
3595
|
+
},
|
|
3596
|
+
"processes": {
|
|
3597
|
+
"description": "`'one'`, the default, when one process serves the app. `'many'` when several serve it behind one address: the\nmembers' signaling then goes between the processes through the `calls` schema.",
|
|
3598
|
+
"anyOf": [
|
|
3599
|
+
{
|
|
3600
|
+
"enum": [
|
|
3601
|
+
"one",
|
|
3602
|
+
"many"
|
|
3603
|
+
]
|
|
3604
|
+
},
|
|
3605
|
+
{
|
|
3606
|
+
"$ref": "#/definitions/EnvValue"
|
|
3607
|
+
}
|
|
3608
|
+
]
|
|
3556
3609
|
}
|
|
3557
3610
|
},
|
|
3558
3611
|
"required": [
|
|
@@ -3646,6 +3699,16 @@
|
|
|
3646
3699
|
"$ref": "#/definitions/EnvValue"
|
|
3647
3700
|
}
|
|
3648
3701
|
]
|
|
3702
|
+
},
|
|
3703
|
+
"maxMembers": {
|
|
3704
|
+
"anyOf": [
|
|
3705
|
+
{
|
|
3706
|
+
"type": "number"
|
|
3707
|
+
},
|
|
3708
|
+
{
|
|
3709
|
+
"$ref": "#/definitions/EnvValue"
|
|
3710
|
+
}
|
|
3711
|
+
]
|
|
3649
3712
|
}
|
|
3650
3713
|
},
|
|
3651
3714
|
"required": [
|