@protobase/config 0.67.11 → 0.68.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 CHANGED
@@ -86,8 +86,14 @@ 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
- /** Workflows made in the admin app and run on the app's jobs (see `WorkflowsOptions`); `{}` turns them on. Its saver roles are `workflows/saved-by-roles.ts`. */
90
- workflows?: Omit<WorkflowsOptions, 'savedByRoles'>;
89
+ /**
90
+ * Workflows made in the admin app and run on the app's jobs (see `WorkflowsOptions`); `{}` turns them on. Its saver
91
+ * roles are `workflows/saved-by-roles.ts`; its own plugins are `workflows/plugins/<name>.ts`.
92
+ */
93
+ workflows?: Omit<WorkflowsOptions, 'savedByRoles' | 'plugins'> & {
94
+ /** Packages of workflow plugins the app runs beside the built-in types and its own plugins, by package name. */
95
+ plugins?: string[];
96
+ };
91
97
  /** 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`). */
92
98
  realtime?: RealtimeOptions;
93
99
  /** Each user's devices and inbox (see `NotificationsOptions`); `{}` turns them on. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.67.11",
3
+ "version": "0.68.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.67.11"
34
+ "@protobase/server": "0.68.0"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -659,7 +659,7 @@
659
659
  ]
660
660
  },
661
661
  "workflows": {
662
- "description": "Workflows made in the admin app and run on the app's jobs (see `WorkflowsOptions`); `{}` turns them on. Its saver roles are `workflows/saved-by-roles.ts`.",
662
+ "description": "Workflows made in the admin app and run on the app's jobs (see `WorkflowsOptions`); `{}` turns them on. Its saver\nroles are `workflows/saved-by-roles.ts`; its own plugins are `workflows/plugins/<name>.ts`.",
663
663
  "anyOf": [
664
664
  {
665
665
  "type": "object",
@@ -706,6 +706,27 @@
706
706
  "$ref": "#/definitions/EnvValue"
707
707
  }
708
708
  ]
709
+ },
710
+ "plugins": {
711
+ "description": "Packages of workflow plugins the app runs beside the built-in types and its own plugins, by package name.",
712
+ "anyOf": [
713
+ {
714
+ "type": "array",
715
+ "items": {
716
+ "anyOf": [
717
+ {
718
+ "type": "string"
719
+ },
720
+ {
721
+ "$ref": "#/definitions/EnvValue"
722
+ }
723
+ ]
724
+ }
725
+ },
726
+ {
727
+ "$ref": "#/definitions/EnvValue"
728
+ }
729
+ ]
709
730
  }
710
731
  },
711
732
  "additionalProperties": false