@protobase/config 0.58.5 → 0.58.7

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { AdminOptions, AppIdentity, AssistantOptions, AuthSettings, AuthenticateSettings, 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, 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
+ /** The media server behind the calls functions admit members to with `calls.join` (see `CallsOptions`). */
94
+ calls?: CallsOptions;
93
95
  /** The app's iOS and Android build (see `MobileConfig`). */
94
96
  mobile?: MobileConfig;
95
97
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.58.5",
3
+ "version": "0.58.7",
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.58.5"
34
+ "@protobase/server": "0.58.7"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -979,6 +979,17 @@
979
979
  }
980
980
  ]
981
981
  },
982
+ "calls": {
983
+ "description": "The media server behind the calls functions admit members to with `calls.join` (see `CallsOptions`).",
984
+ "anyOf": [
985
+ {
986
+ "$ref": "#/definitions/CallsOptions"
987
+ },
988
+ {
989
+ "$ref": "#/definitions/EnvValue"
990
+ }
991
+ ]
992
+ },
982
993
  "mobile": {
983
994
  "description": "The app's iOS and Android build (see `MobileConfig`).",
984
995
  "anyOf": [
@@ -2144,6 +2155,44 @@
2144
2155
  "$ref": "#/definitions/EnvValue"
2145
2156
  }
2146
2157
  ]
2158
+ },
2159
+ "keyTable": {
2160
+ "description": "The table that holds the user ids, when `table` is a view over another system's user table, such as\n`{ schema: 'auth', table: 'users' }` under a view over Supabase's `auth.users`: the store's migrations then make\nnothing of the user table, which the app's own migration makes, and every foreign key points at this table.",
2161
+ "anyOf": [
2162
+ {
2163
+ "type": "object",
2164
+ "properties": {
2165
+ "schema": {
2166
+ "anyOf": [
2167
+ {
2168
+ "type": "string"
2169
+ },
2170
+ {
2171
+ "$ref": "#/definitions/EnvValue"
2172
+ }
2173
+ ]
2174
+ },
2175
+ "table": {
2176
+ "anyOf": [
2177
+ {
2178
+ "type": "string"
2179
+ },
2180
+ {
2181
+ "$ref": "#/definitions/EnvValue"
2182
+ }
2183
+ ]
2184
+ }
2185
+ },
2186
+ "required": [
2187
+ "schema",
2188
+ "table"
2189
+ ],
2190
+ "additionalProperties": false
2191
+ },
2192
+ {
2193
+ "$ref": "#/definitions/EnvValue"
2194
+ }
2195
+ ]
2147
2196
  }
2148
2197
  },
2149
2198
  "additionalProperties": false
@@ -3457,6 +3506,170 @@
3457
3506
  },
3458
3507
  "additionalProperties": false
3459
3508
  },
3509
+ "CallsOptions": {
3510
+ "type": "object",
3511
+ "properties": {
3512
+ "backend": {
3513
+ "anyOf": [
3514
+ {
3515
+ "$ref": "#/definitions/LiveKitBackend"
3516
+ },
3517
+ {
3518
+ "$ref": "#/definitions/PeerBackend"
3519
+ },
3520
+ {
3521
+ "$ref": "#/definitions/EnvValue"
3522
+ }
3523
+ ]
3524
+ }
3525
+ },
3526
+ "required": [
3527
+ "backend"
3528
+ ],
3529
+ "additionalProperties": false
3530
+ },
3531
+ "LiveKitBackend": {
3532
+ "type": "object",
3533
+ "properties": {
3534
+ "kind": {
3535
+ "anyOf": [
3536
+ {
3537
+ "const": "livekit"
3538
+ },
3539
+ {
3540
+ "$ref": "#/definitions/EnvValue"
3541
+ }
3542
+ ]
3543
+ },
3544
+ "url": {
3545
+ "description": "Its address, such as `wss://livekit.example.com` or `ws://127.0.0.1:7880`.",
3546
+ "anyOf": [
3547
+ {
3548
+ "type": "string"
3549
+ },
3550
+ {
3551
+ "$ref": "#/definitions/EnvValue"
3552
+ }
3553
+ ]
3554
+ },
3555
+ "apiKey": {
3556
+ "description": "The API key and secret Protobase signs each member's LiveKit token with.",
3557
+ "anyOf": [
3558
+ {
3559
+ "type": "string"
3560
+ },
3561
+ {
3562
+ "$ref": "#/definitions/EnvValue"
3563
+ }
3564
+ ]
3565
+ },
3566
+ "apiSecret": {
3567
+ "anyOf": [
3568
+ {
3569
+ "type": "string"
3570
+ },
3571
+ {
3572
+ "$ref": "#/definitions/EnvValue"
3573
+ }
3574
+ ]
3575
+ }
3576
+ },
3577
+ "required": [
3578
+ "kind",
3579
+ "url",
3580
+ "apiKey",
3581
+ "apiSecret"
3582
+ ],
3583
+ "additionalProperties": false
3584
+ },
3585
+ "PeerBackend": {
3586
+ "type": "object",
3587
+ "properties": {
3588
+ "kind": {
3589
+ "anyOf": [
3590
+ {
3591
+ "const": "peer"
3592
+ },
3593
+ {
3594
+ "$ref": "#/definitions/EnvValue"
3595
+ }
3596
+ ]
3597
+ },
3598
+ "iceServers": {
3599
+ "anyOf": [
3600
+ {
3601
+ "type": "array",
3602
+ "items": {
3603
+ "anyOf": [
3604
+ {
3605
+ "$ref": "#/definitions/CallIceServer"
3606
+ },
3607
+ {
3608
+ "$ref": "#/definitions/EnvValue"
3609
+ }
3610
+ ]
3611
+ }
3612
+ },
3613
+ {
3614
+ "$ref": "#/definitions/EnvValue"
3615
+ }
3616
+ ]
3617
+ }
3618
+ },
3619
+ "required": [
3620
+ "kind"
3621
+ ],
3622
+ "additionalProperties": false
3623
+ },
3624
+ "CallIceServer": {
3625
+ "type": "object",
3626
+ "properties": {
3627
+ "urls": {
3628
+ "anyOf": [
3629
+ {
3630
+ "type": "array",
3631
+ "items": {
3632
+ "anyOf": [
3633
+ {
3634
+ "type": "string"
3635
+ },
3636
+ {
3637
+ "$ref": "#/definitions/EnvValue"
3638
+ }
3639
+ ]
3640
+ }
3641
+ },
3642
+ {
3643
+ "$ref": "#/definitions/EnvValue"
3644
+ }
3645
+ ]
3646
+ },
3647
+ "username": {
3648
+ "anyOf": [
3649
+ {
3650
+ "type": "string"
3651
+ },
3652
+ {
3653
+ "$ref": "#/definitions/EnvValue"
3654
+ }
3655
+ ]
3656
+ },
3657
+ "credential": {
3658
+ "anyOf": [
3659
+ {
3660
+ "type": "string"
3661
+ },
3662
+ {
3663
+ "$ref": "#/definitions/EnvValue"
3664
+ }
3665
+ ]
3666
+ }
3667
+ },
3668
+ "required": [
3669
+ "urls"
3670
+ ],
3671
+ "additionalProperties": false
3672
+ },
3460
3673
  "MobileConfig": {
3461
3674
  "type": "object",
3462
3675
  "properties": {