@protobase/config 0.58.4 → 0.58.6

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.4",
3
+ "version": "0.58.6",
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.4"
34
+ "@protobase/server": "0.58.6"
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": [
@@ -3457,6 +3468,170 @@
3457
3468
  },
3458
3469
  "additionalProperties": false
3459
3470
  },
3471
+ "CallsOptions": {
3472
+ "type": "object",
3473
+ "properties": {
3474
+ "backend": {
3475
+ "anyOf": [
3476
+ {
3477
+ "$ref": "#/definitions/LiveKitBackend"
3478
+ },
3479
+ {
3480
+ "$ref": "#/definitions/PeerBackend"
3481
+ },
3482
+ {
3483
+ "$ref": "#/definitions/EnvValue"
3484
+ }
3485
+ ]
3486
+ }
3487
+ },
3488
+ "required": [
3489
+ "backend"
3490
+ ],
3491
+ "additionalProperties": false
3492
+ },
3493
+ "LiveKitBackend": {
3494
+ "type": "object",
3495
+ "properties": {
3496
+ "kind": {
3497
+ "anyOf": [
3498
+ {
3499
+ "const": "livekit"
3500
+ },
3501
+ {
3502
+ "$ref": "#/definitions/EnvValue"
3503
+ }
3504
+ ]
3505
+ },
3506
+ "url": {
3507
+ "description": "Its address, such as `wss://livekit.example.com` or `ws://127.0.0.1:7880`.",
3508
+ "anyOf": [
3509
+ {
3510
+ "type": "string"
3511
+ },
3512
+ {
3513
+ "$ref": "#/definitions/EnvValue"
3514
+ }
3515
+ ]
3516
+ },
3517
+ "apiKey": {
3518
+ "description": "The API key and secret Protobase signs each member's LiveKit token with.",
3519
+ "anyOf": [
3520
+ {
3521
+ "type": "string"
3522
+ },
3523
+ {
3524
+ "$ref": "#/definitions/EnvValue"
3525
+ }
3526
+ ]
3527
+ },
3528
+ "apiSecret": {
3529
+ "anyOf": [
3530
+ {
3531
+ "type": "string"
3532
+ },
3533
+ {
3534
+ "$ref": "#/definitions/EnvValue"
3535
+ }
3536
+ ]
3537
+ }
3538
+ },
3539
+ "required": [
3540
+ "kind",
3541
+ "url",
3542
+ "apiKey",
3543
+ "apiSecret"
3544
+ ],
3545
+ "additionalProperties": false
3546
+ },
3547
+ "PeerBackend": {
3548
+ "type": "object",
3549
+ "properties": {
3550
+ "kind": {
3551
+ "anyOf": [
3552
+ {
3553
+ "const": "peer"
3554
+ },
3555
+ {
3556
+ "$ref": "#/definitions/EnvValue"
3557
+ }
3558
+ ]
3559
+ },
3560
+ "iceServers": {
3561
+ "anyOf": [
3562
+ {
3563
+ "type": "array",
3564
+ "items": {
3565
+ "anyOf": [
3566
+ {
3567
+ "$ref": "#/definitions/CallIceServer"
3568
+ },
3569
+ {
3570
+ "$ref": "#/definitions/EnvValue"
3571
+ }
3572
+ ]
3573
+ }
3574
+ },
3575
+ {
3576
+ "$ref": "#/definitions/EnvValue"
3577
+ }
3578
+ ]
3579
+ }
3580
+ },
3581
+ "required": [
3582
+ "kind"
3583
+ ],
3584
+ "additionalProperties": false
3585
+ },
3586
+ "CallIceServer": {
3587
+ "type": "object",
3588
+ "properties": {
3589
+ "urls": {
3590
+ "anyOf": [
3591
+ {
3592
+ "type": "array",
3593
+ "items": {
3594
+ "anyOf": [
3595
+ {
3596
+ "type": "string"
3597
+ },
3598
+ {
3599
+ "$ref": "#/definitions/EnvValue"
3600
+ }
3601
+ ]
3602
+ }
3603
+ },
3604
+ {
3605
+ "$ref": "#/definitions/EnvValue"
3606
+ }
3607
+ ]
3608
+ },
3609
+ "username": {
3610
+ "anyOf": [
3611
+ {
3612
+ "type": "string"
3613
+ },
3614
+ {
3615
+ "$ref": "#/definitions/EnvValue"
3616
+ }
3617
+ ]
3618
+ },
3619
+ "credential": {
3620
+ "anyOf": [
3621
+ {
3622
+ "type": "string"
3623
+ },
3624
+ {
3625
+ "$ref": "#/definitions/EnvValue"
3626
+ }
3627
+ ]
3628
+ }
3629
+ },
3630
+ "required": [
3631
+ "urls"
3632
+ ],
3633
+ "additionalProperties": false
3634
+ },
3460
3635
  "MobileConfig": {
3461
3636
  "type": "object",
3462
3637
  "properties": {