@protobase/config 0.51.3 → 0.52.1

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, WebhooksOptions } from "@protobase/server";
1
+ import { AdminOptions, AppIdentity, AssistantOptions, AuthSettings, AuthenticateSettings, 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`,
@@ -83,6 +83,8 @@ export type ProtobaseConfig = AppKeys & ApiOptionKeys & {
83
83
  history?: HistoryOptions;
84
84
  /** Webhook subscriptions made in the admin app (see `WebhooksOptions`); `{}` turns them on. */
85
85
  webhooks?: Omit<WebhooksOptions, 'ownerRoles'>;
86
+ /** How supabase-js's Realtime is served: `{ processes: 'many' }` when several processes serve the app (see `RealtimeOptions`). */
87
+ realtime?: RealtimeOptions;
86
88
  /** Each user's devices and inbox (see `NotificationsOptions`); `{}` turns them on. */
87
89
  notifications?: Omit<NotificationsOptions, 'store' | 'historyStore' | 'senders'>;
88
90
  /** 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.51.3",
3
+ "version": "0.52.1",
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.51.3"
34
+ "@protobase/server": "0.52.1"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -658,6 +658,17 @@
658
658
  }
659
659
  ]
660
660
  },
661
+ "realtime": {
662
+ "description": "How supabase-js's Realtime is served: `{ processes: 'many' }` when several processes serve the app (see `RealtimeOptions`).",
663
+ "anyOf": [
664
+ {
665
+ "$ref": "#/definitions/RealtimeOptions"
666
+ },
667
+ {
668
+ "$ref": "#/definitions/EnvValue"
669
+ }
670
+ ]
671
+ },
661
672
  "notifications": {
662
673
  "description": "Each user's devices and inbox (see `NotificationsOptions`); `{}` turns them on.",
663
674
  "anyOf": [
@@ -3415,6 +3426,26 @@
3415
3426
  },
3416
3427
  "additionalProperties": false
3417
3428
  },
3429
+ "RealtimeOptions": {
3430
+ "type": "object",
3431
+ "properties": {
3432
+ "processes": {
3433
+ "description": "`'one'`, the default, when one process serves the app: broadcasts and presence go between its channels in memory.\n`'many'` when several processes serve it behind one address: they go between the processes through the\n`realtime_relay` schema of the app's database, which `protobase migration` writes.",
3434
+ "anyOf": [
3435
+ {
3436
+ "enum": [
3437
+ "one",
3438
+ "many"
3439
+ ]
3440
+ },
3441
+ {
3442
+ "$ref": "#/definitions/EnvValue"
3443
+ }
3444
+ ]
3445
+ }
3446
+ },
3447
+ "additionalProperties": false
3448
+ },
3418
3449
  "MobileConfig": {
3419
3450
  "type": "object",
3420
3451
  "properties": {