@protobase/config 0.59.1 → 0.59.3

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, 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`,
@@ -86,10 +86,12 @@ export type ProtobaseConfig = AppKeys & ApiOptionKeys & {
86
86
  history?: HistoryOptions;
87
87
  /** Webhook subscriptions made in the admin app (see `WebhooksOptions`); `{}` turns them on. */
88
88
  webhooks?: Omit<WebhooksOptions, 'ownerRoles'>;
89
- /** How supabase-js's Realtime is served: `{ processes: 'many' }` when several processes serve the app (see `RealtimeOptions`). */
89
+ /** 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`). */
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.59.1",
3
+ "version": "0.59.3",
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.59.1"
34
+ "@protobase/server": "0.59.3"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -659,7 +659,7 @@
659
659
  ]
660
660
  },
661
661
  "realtime": {
662
- "description": "How supabase-js's Realtime is served: `{ processes: 'many' }` when several processes serve the app (see `RealtimeOptions`).",
662
+ "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`).",
663
663
  "anyOf": [
664
664
  {
665
665
  "$ref": "#/definitions/RealtimeOptions"
@@ -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": [
@@ -3523,6 +3534,34 @@
3523
3534
  "$ref": "#/definitions/EnvValue"
3524
3535
  }
3525
3536
  ]
3537
+ },
3538
+ "sqlSends": {
3539
+ "description": "`true` lets SQL in the app's database broadcast to the record channels with `channels.send()`, from the `channels`\nschema `protobase migration` writes.",
3540
+ "anyOf": [
3541
+ {
3542
+ "type": "boolean"
3543
+ },
3544
+ {
3545
+ "$ref": "#/definitions/EnvValue"
3546
+ }
3547
+ ]
3548
+ }
3549
+ },
3550
+ "additionalProperties": false
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
+ ]
3526
3565
  }
3527
3566
  },
3528
3567
  "additionalProperties": false