@protobase/config 0.67.8 → 0.67.10
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 +3 -1
- package/package.json +2 -2
- package/schema.json +57 -0
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, StatusOptions, WebhooksOptions } from "@protobase/server";
|
|
1
|
+
import { AdminOptions, AppIdentity, AssistantOptions, AuthSettings, AuthenticateSettings, CallsOptions, EventsOptions, FileProviderSettings, FilesOptions, HistoryOptions, JobDeclaration, MobileConfig, NotificationsOptions, RealtimeOptions, StatusOptions, WebhooksOptions, WorkflowsOptions } 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,6 +86,8 @@ 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
91
|
/** 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
92
|
realtime?: RealtimeOptions;
|
|
91
93
|
/** 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.
|
|
3
|
+
"version": "0.67.10",
|
|
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.
|
|
34
|
+
"@protobase/server": "0.67.10"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/schema.json
CHANGED
|
@@ -658,6 +658,63 @@
|
|
|
658
658
|
}
|
|
659
659
|
]
|
|
660
660
|
},
|
|
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`.",
|
|
663
|
+
"anyOf": [
|
|
664
|
+
{
|
|
665
|
+
"type": "object",
|
|
666
|
+
"properties": {
|
|
667
|
+
"schema": {
|
|
668
|
+
"description": "The schema of the workflows, their versions, runs and steps; default `workflows`.",
|
|
669
|
+
"anyOf": [
|
|
670
|
+
{
|
|
671
|
+
"type": "string"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"$ref": "#/definitions/EnvValue"
|
|
675
|
+
}
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
"allowPrivateAddresses": {
|
|
679
|
+
"description": "Lets the `app:http` step reach private, loopback and link-local addresses, for development and tests. Default\nfalse: a URL whose host resolves to one fails the step, so a workflow cannot reach the app's own network.",
|
|
680
|
+
"anyOf": [
|
|
681
|
+
{
|
|
682
|
+
"type": "boolean"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"$ref": "#/definitions/EnvValue"
|
|
686
|
+
}
|
|
687
|
+
]
|
|
688
|
+
},
|
|
689
|
+
"secrets": {
|
|
690
|
+
"description": "The environment variables workflows may read, each as `$states.context.Secrets.<NAME>`; no other is reachable.\nTheir values are blanked out of all a run records. Startup stops when one is unset or shorter than 8 characters.",
|
|
691
|
+
"anyOf": [
|
|
692
|
+
{
|
|
693
|
+
"type": "array",
|
|
694
|
+
"items": {
|
|
695
|
+
"anyOf": [
|
|
696
|
+
{
|
|
697
|
+
"type": "string"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"$ref": "#/definitions/EnvValue"
|
|
701
|
+
}
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"$ref": "#/definitions/EnvValue"
|
|
707
|
+
}
|
|
708
|
+
]
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"additionalProperties": false
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"$ref": "#/definitions/EnvValue"
|
|
715
|
+
}
|
|
716
|
+
]
|
|
717
|
+
},
|
|
661
718
|
"realtime": {
|
|
662
719
|
"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
720
|
"anyOf": [
|