@protobase/config 0.111.1 → 0.112.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 +9 -2
- package/package.json +2 -2
- package/schema.json +149 -313
package/dist/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ type AppKeys = AppIdentity & {
|
|
|
27
27
|
*/
|
|
28
28
|
url?: string;
|
|
29
29
|
/**
|
|
30
|
-
* The app's secret, made with `openssl rand -base64 32`: it signs session cookies, upload tickets and download links
|
|
31
|
-
*
|
|
30
|
+
* The app's secret, made with `openssl rand -base64 32`: it signs session cookies, upload tickets and download links,
|
|
31
|
+
* public forms' bot checks and unsubscribe links, and encrypts the token signing keys. Default `PROTOBASE_SECRET`; required with sign-in.
|
|
32
32
|
*/
|
|
33
33
|
secret?: string;
|
|
34
34
|
/**
|
|
@@ -104,6 +104,13 @@ export type ProtobaseConfig = AppKeys & ApiOptionKeys & {
|
|
|
104
104
|
calls?: CallsOptions;
|
|
105
105
|
/** The app's iOS and Android build (see `MobileConfig`). */
|
|
106
106
|
mobile?: MobileConfig;
|
|
107
|
+
/**
|
|
108
|
+
* `true` gives bulk mail a one-click unsubscribe: mail a job sends with `bulk: true` and a `topic` carries the
|
|
109
|
+
* recipient's own unsubscribe link, and is not sent to whoever unsubscribed from its topic. Its links are on `url`
|
|
110
|
+
* and signed with `secret`; `protobase migration` writes its table, `mail.unsubscribes`. The server that signs the mail must DKIM-sign
|
|
111
|
+
* both unsubscribe headers, or mail clients show no button. Off by default.
|
|
112
|
+
*/
|
|
113
|
+
unsubscribe?: boolean;
|
|
107
114
|
/**
|
|
108
115
|
* `true` keeps the tables the app's users add in its own database and serves each one like a resource of the config;
|
|
109
116
|
* `protobase migration` writes the schemas they need. Off by default. With organizations, each keeps its own tables;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.112.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.
|
|
34
|
+
"@protobase/server": "0.112.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/schema.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
"secret": {
|
|
56
|
-
"description": "The app's secret, made with `openssl rand -base64 32`: it signs session cookies, upload tickets and download links
|
|
56
|
+
"description": "The app's secret, made with `openssl rand -base64 32`: it signs session cookies, upload tickets and download links,\npublic forms' bot checks and unsubscribe links, and encrypts the token signing keys. Default `PROTOBASE_SECRET`; required with sign-in.",
|
|
57
57
|
"anyOf": [
|
|
58
58
|
{
|
|
59
59
|
"type": "string"
|
|
@@ -422,14 +422,7 @@
|
|
|
422
422
|
"type": "object",
|
|
423
423
|
"properties": {
|
|
424
424
|
"sql": {
|
|
425
|
-
"
|
|
426
|
-
{
|
|
427
|
-
"type": "boolean"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
"$ref": "#/definitions/EnvValue"
|
|
431
|
-
}
|
|
432
|
-
]
|
|
425
|
+
"type": "boolean"
|
|
433
426
|
},
|
|
434
427
|
"writes": {
|
|
435
428
|
"anyOf": [
|
|
@@ -640,25 +633,11 @@
|
|
|
640
633
|
},
|
|
641
634
|
"deliveryLog": {
|
|
642
635
|
"description": "Also keep every try, successes too, for 30 days, listed as Webhook delivery log. Default false.",
|
|
643
|
-
"
|
|
644
|
-
{
|
|
645
|
-
"type": "boolean"
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
"$ref": "#/definitions/EnvValue"
|
|
649
|
-
}
|
|
650
|
-
]
|
|
636
|
+
"type": "boolean"
|
|
651
637
|
},
|
|
652
638
|
"allowPrivateAddresses": {
|
|
653
639
|
"description": "Lets subscriptions send to private, loopback and link-local addresses, for development and tests. Default false:\na URL whose host resolves to one is refused, so a subscription cannot reach the app's own network.",
|
|
654
|
-
"
|
|
655
|
-
{
|
|
656
|
-
"type": "boolean"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
"$ref": "#/definitions/EnvValue"
|
|
660
|
-
}
|
|
661
|
-
]
|
|
640
|
+
"type": "boolean"
|
|
662
641
|
}
|
|
663
642
|
},
|
|
664
643
|
"additionalProperties": false
|
|
@@ -731,14 +710,7 @@
|
|
|
731
710
|
},
|
|
732
711
|
"allowPrivateAddresses": {
|
|
733
712
|
"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.",
|
|
734
|
-
"
|
|
735
|
-
{
|
|
736
|
-
"type": "boolean"
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"$ref": "#/definitions/EnvValue"
|
|
740
|
-
}
|
|
741
|
-
]
|
|
713
|
+
"type": "boolean"
|
|
742
714
|
},
|
|
743
715
|
"secrets": {
|
|
744
716
|
"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.",
|
|
@@ -778,14 +750,7 @@
|
|
|
778
750
|
},
|
|
779
751
|
"customSteps": {
|
|
780
752
|
"description": "Turns on custom steps, step types the app's authors keep as records, each saved version a type of its own,\n`custom:<name>:<version>`, which a workflow saves with and the app's runners run. Their jobs' arguments are sealed\nwith the app's secret, its sign-in's, else `PROTOBASE_SECRET`; startup stops without either. Default false; any\nother value than `true` or `false` stops startup.",
|
|
781
|
-
"
|
|
782
|
-
{
|
|
783
|
-
"type": "boolean"
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
"$ref": "#/definitions/EnvValue"
|
|
787
|
-
}
|
|
788
|
-
]
|
|
753
|
+
"type": "boolean"
|
|
789
754
|
},
|
|
790
755
|
"runners": {
|
|
791
756
|
"description": "How custom steps' jobs reach runners, in seconds: how long a claim is held open waiting for a job (`claimSeconds`,\ndefault 50), how long a runner holds a job without a heartbeat (`leaseSeconds`, 30), how long a job whose best free\nrunner lacks its image waits for one that has it (`coldWaitSeconds`, 5), and how long one whose best has its image\nwaits for a warm instance (`warmWaitSeconds`, 1). Startup stops on one that is not a number above 0, or for a wait,\n0 or more.",
|
|
@@ -900,14 +865,7 @@
|
|
|
900
865
|
},
|
|
901
866
|
"ui": {
|
|
902
867
|
"description": "The bell in the top bar; default true. `false` keeps only the backend.",
|
|
903
|
-
"
|
|
904
|
-
{
|
|
905
|
-
"type": "boolean"
|
|
906
|
-
},
|
|
907
|
-
{
|
|
908
|
-
"$ref": "#/definitions/EnvValue"
|
|
909
|
-
}
|
|
910
|
-
]
|
|
868
|
+
"type": "boolean"
|
|
911
869
|
},
|
|
912
870
|
"devices": {
|
|
913
871
|
"description": "The devices table: its name, default `devices`, and its columns named otherwise than Protobase names them.",
|
|
@@ -930,7 +888,7 @@
|
|
|
930
888
|
{
|
|
931
889
|
"type": "object",
|
|
932
890
|
"properties": {
|
|
933
|
-
"
|
|
891
|
+
"auth": {
|
|
934
892
|
"anyOf": [
|
|
935
893
|
{
|
|
936
894
|
"type": "string"
|
|
@@ -940,7 +898,7 @@
|
|
|
940
898
|
}
|
|
941
899
|
]
|
|
942
900
|
},
|
|
943
|
-
"
|
|
901
|
+
"created_at": {
|
|
944
902
|
"anyOf": [
|
|
945
903
|
{
|
|
946
904
|
"type": "string"
|
|
@@ -950,7 +908,7 @@
|
|
|
950
908
|
}
|
|
951
909
|
]
|
|
952
910
|
},
|
|
953
|
-
"
|
|
911
|
+
"token": {
|
|
954
912
|
"anyOf": [
|
|
955
913
|
{
|
|
956
914
|
"type": "string"
|
|
@@ -960,7 +918,7 @@
|
|
|
960
918
|
}
|
|
961
919
|
]
|
|
962
920
|
},
|
|
963
|
-
"
|
|
921
|
+
"user_agent": {
|
|
964
922
|
"anyOf": [
|
|
965
923
|
{
|
|
966
924
|
"type": "string"
|
|
@@ -970,7 +928,7 @@
|
|
|
970
928
|
}
|
|
971
929
|
]
|
|
972
930
|
},
|
|
973
|
-
"
|
|
931
|
+
"user_id": {
|
|
974
932
|
"anyOf": [
|
|
975
933
|
{
|
|
976
934
|
"type": "string"
|
|
@@ -980,7 +938,7 @@
|
|
|
980
938
|
}
|
|
981
939
|
]
|
|
982
940
|
},
|
|
983
|
-
"
|
|
941
|
+
"session_id": {
|
|
984
942
|
"anyOf": [
|
|
985
943
|
{
|
|
986
944
|
"type": "string"
|
|
@@ -990,7 +948,7 @@
|
|
|
990
948
|
}
|
|
991
949
|
]
|
|
992
950
|
},
|
|
993
|
-
"
|
|
951
|
+
"id": {
|
|
994
952
|
"anyOf": [
|
|
995
953
|
{
|
|
996
954
|
"type": "string"
|
|
@@ -1000,7 +958,7 @@
|
|
|
1000
958
|
}
|
|
1001
959
|
]
|
|
1002
960
|
},
|
|
1003
|
-
"
|
|
961
|
+
"kind": {
|
|
1004
962
|
"anyOf": [
|
|
1005
963
|
{
|
|
1006
964
|
"type": "string"
|
|
@@ -1010,7 +968,7 @@
|
|
|
1010
968
|
}
|
|
1011
969
|
]
|
|
1012
970
|
},
|
|
1013
|
-
"
|
|
971
|
+
"p256dh": {
|
|
1014
972
|
"anyOf": [
|
|
1015
973
|
{
|
|
1016
974
|
"type": "string"
|
|
@@ -1020,7 +978,7 @@
|
|
|
1020
978
|
}
|
|
1021
979
|
]
|
|
1022
980
|
},
|
|
1023
|
-
"
|
|
981
|
+
"environment": {
|
|
1024
982
|
"anyOf": [
|
|
1025
983
|
{
|
|
1026
984
|
"type": "string"
|
|
@@ -1030,7 +988,7 @@
|
|
|
1030
988
|
}
|
|
1031
989
|
]
|
|
1032
990
|
},
|
|
1033
|
-
"
|
|
991
|
+
"app_id": {
|
|
1034
992
|
"anyOf": [
|
|
1035
993
|
{
|
|
1036
994
|
"type": "string"
|
|
@@ -1107,7 +1065,7 @@
|
|
|
1107
1065
|
}
|
|
1108
1066
|
]
|
|
1109
1067
|
},
|
|
1110
|
-
"
|
|
1068
|
+
"user_id": {
|
|
1111
1069
|
"anyOf": [
|
|
1112
1070
|
{
|
|
1113
1071
|
"type": "string"
|
|
@@ -1117,7 +1075,7 @@
|
|
|
1117
1075
|
}
|
|
1118
1076
|
]
|
|
1119
1077
|
},
|
|
1120
|
-
"
|
|
1078
|
+
"id": {
|
|
1121
1079
|
"anyOf": [
|
|
1122
1080
|
{
|
|
1123
1081
|
"type": "string"
|
|
@@ -1224,16 +1182,13 @@
|
|
|
1224
1182
|
}
|
|
1225
1183
|
]
|
|
1226
1184
|
},
|
|
1185
|
+
"unsubscribe": {
|
|
1186
|
+
"description": "`true` gives bulk mail a one-click unsubscribe: mail a job sends with `bulk: true` and a `topic` carries the\nrecipient's own unsubscribe link, and is not sent to whoever unsubscribed from its topic. Its links are on `url`\nand signed with `secret`; `protobase migration` writes its table, `mail.unsubscribes`. The server that signs the mail must DKIM-sign\nboth unsubscribe headers, or mail clients show no button. Off by default.",
|
|
1187
|
+
"type": "boolean"
|
|
1188
|
+
},
|
|
1227
1189
|
"userTables": {
|
|
1228
1190
|
"description": "`true` keeps the tables the app's users add in its own database and serves each one like a resource of the config;\n`protobase migration` writes the schemas they need. Off by default. With organizations, each keeps its own tables;\nrefused with `authenticate.organizations` alone.",
|
|
1229
|
-
"
|
|
1230
|
-
{
|
|
1231
|
-
"type": "boolean"
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
"$ref": "#/definitions/EnvValue"
|
|
1235
|
-
}
|
|
1236
|
-
]
|
|
1191
|
+
"type": "boolean"
|
|
1237
1192
|
},
|
|
1238
1193
|
"resources": {
|
|
1239
1194
|
"description": "`'none'` says the app has no resources on purpose, such as an app that only signs people in: `protobase doctor`\nthen accepts a config with none, and refuses one that exports any. Unset, doctor refuses an app with none, which\nhas usually lost them by mistake.",
|
|
@@ -1541,14 +1496,7 @@
|
|
|
1541
1496
|
]
|
|
1542
1497
|
},
|
|
1543
1498
|
"beforeSignIn": {
|
|
1544
|
-
"
|
|
1545
|
-
{
|
|
1546
|
-
"type": "boolean"
|
|
1547
|
-
},
|
|
1548
|
-
{
|
|
1549
|
-
"$ref": "#/definitions/EnvValue"
|
|
1550
|
-
}
|
|
1551
|
-
]
|
|
1499
|
+
"type": "boolean"
|
|
1552
1500
|
}
|
|
1553
1501
|
},
|
|
1554
1502
|
"required": [
|
|
@@ -1882,6 +1830,17 @@
|
|
|
1882
1830
|
}
|
|
1883
1831
|
]
|
|
1884
1832
|
},
|
|
1833
|
+
"users": {
|
|
1834
|
+
"description": "The user table, when it is one another system made, such as Supabase's `auth.users`: its name, the columns named\notherwise than Protobase names them, and a JSON column for each user's metadata, for example `{ table: 'users',\ncolumns: { role: 'app_role' }, metadata: 'raw_user_meta_data' }`. The other tables keep their names. Default the\ntable `protobase auth migration` makes.",
|
|
1835
|
+
"anyOf": [
|
|
1836
|
+
{
|
|
1837
|
+
"$ref": "#/definitions/UserTableSettings"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"$ref": "#/definitions/EnvValue"
|
|
1841
|
+
}
|
|
1842
|
+
]
|
|
1843
|
+
},
|
|
1885
1844
|
"origins": {
|
|
1886
1845
|
"description": "The other origins the app is served on, for example `['https://admin.shop.com']`. A request to one of them is\nanswered for that host: its sign-in callbacks and the links it mails, such as a password reset, stay there, and\npasskeys work on every origin. Tokens keep `baseURL` as issuer, whatever host issued them. Defaults to the\ncomma-separated list the platform passes in `PROTOBASE_ORIGINS`, when set; none otherwise.",
|
|
1887
1846
|
"anyOf": [
|
|
@@ -1990,8 +1949,8 @@
|
|
|
1990
1949
|
"anyOf": [
|
|
1991
1950
|
{
|
|
1992
1951
|
"enum": [
|
|
1993
|
-
"
|
|
1994
|
-
"
|
|
1952
|
+
"name",
|
|
1953
|
+
"email"
|
|
1995
1954
|
]
|
|
1996
1955
|
},
|
|
1997
1956
|
{
|
|
@@ -2052,9 +2011,9 @@
|
|
|
2052
2011
|
"anyOf": [
|
|
2053
2012
|
{
|
|
2054
2013
|
"enum": [
|
|
2014
|
+
"required",
|
|
2055
2015
|
"allowed",
|
|
2056
|
-
"forbidden"
|
|
2057
|
-
"required"
|
|
2016
|
+
"forbidden"
|
|
2058
2017
|
]
|
|
2059
2018
|
},
|
|
2060
2019
|
{
|
|
@@ -2066,9 +2025,9 @@
|
|
|
2066
2025
|
"anyOf": [
|
|
2067
2026
|
{
|
|
2068
2027
|
"enum": [
|
|
2028
|
+
"required",
|
|
2069
2029
|
"allowed",
|
|
2070
|
-
"forbidden"
|
|
2071
|
-
"required"
|
|
2030
|
+
"forbidden"
|
|
2072
2031
|
]
|
|
2073
2032
|
},
|
|
2074
2033
|
{
|
|
@@ -2170,14 +2129,7 @@
|
|
|
2170
2129
|
},
|
|
2171
2130
|
"encryptOAuthTokens": {
|
|
2172
2131
|
"description": "Encrypt the OAuth access and refresh tokens Better Auth stores for social sign-ins, with `secret`; `personalMail` and workflow connections need it. Default off.",
|
|
2173
|
-
"
|
|
2174
|
-
{
|
|
2175
|
-
"type": "boolean"
|
|
2176
|
-
},
|
|
2177
|
-
{
|
|
2178
|
-
"$ref": "#/definitions/EnvValue"
|
|
2179
|
-
}
|
|
2180
|
-
]
|
|
2132
|
+
"type": "boolean"
|
|
2181
2133
|
},
|
|
2182
2134
|
"connections": {
|
|
2183
2135
|
"description": "The OAuth client of each workflow plugin's connection that signs in through a provider of its own, by\n`<plugin>:<connection>`, such as `{ 'acme:account': { clientId, clientSecret } }`; its redirect URI is\n`{baseURL}/api/auth/callback/workflow-<plugin>-<connection>`. A connection through one of `socialProviders` needs none.",
|
|
@@ -2200,17 +2152,6 @@
|
|
|
2200
2152
|
}
|
|
2201
2153
|
]
|
|
2202
2154
|
},
|
|
2203
|
-
"users": {
|
|
2204
|
-
"description": "The user table, when it is one another system made, such as Supabase's `auth.users`: its name, the columns named\notherwise than Protobase names them, and a JSON column for each user's metadata, for example `{ table: 'users',\ncolumns: { role: 'app_role' }, metadata: 'raw_user_meta_data' }`. The other tables keep their names. Default the\ntable `protobase auth migration` makes.",
|
|
2205
|
-
"anyOf": [
|
|
2206
|
-
{
|
|
2207
|
-
"$ref": "#/definitions/UserTableOptions"
|
|
2208
|
-
},
|
|
2209
|
-
{
|
|
2210
|
-
"$ref": "#/definitions/EnvValue"
|
|
2211
|
-
}
|
|
2212
|
-
]
|
|
2213
|
-
},
|
|
2214
2155
|
"passwordHashes": {
|
|
2215
2156
|
"description": "Password hashes another system wrote that sign-in accepts besides Better Auth's own, such as `['bcrypt']` for\nSupabase Auth's. The first sign-in with one stores the password again as Better Auth hashes it. Default none.",
|
|
2216
2157
|
"anyOf": [
|
|
@@ -2234,25 +2175,11 @@
|
|
|
2234
2175
|
},
|
|
2235
2176
|
"leakedPasswords": {
|
|
2236
2177
|
"description": "Refuses a new password that appears in a known data breach, by Have I Been Pwned's password list: at sign-up, from\nan invitation, and when a password is set, changed, reset or given by an admin. Only the first five characters of\nthe password's SHA-1 hash leave the server. While the list cannot be reached, setting a password fails. Default off.",
|
|
2237
|
-
"
|
|
2238
|
-
{
|
|
2239
|
-
"type": "boolean"
|
|
2240
|
-
},
|
|
2241
|
-
{
|
|
2242
|
-
"$ref": "#/definitions/EnvValue"
|
|
2243
|
-
}
|
|
2244
|
-
]
|
|
2178
|
+
"type": "boolean"
|
|
2245
2179
|
},
|
|
2246
2180
|
"accountDeletion": {
|
|
2247
2181
|
"description": "Lets the signed-in person delete their own account from the account page, with their password or from a session\nthat signed in within the last day; `false` turns it off, for apps whose accounts are managed by an organization's\nadmins. Default on, as app stores require an app that makes accounts to delete them too.",
|
|
2248
|
-
"
|
|
2249
|
-
{
|
|
2250
|
-
"type": "boolean"
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
"$ref": "#/definitions/EnvValue"
|
|
2254
|
-
}
|
|
2255
|
-
]
|
|
2182
|
+
"type": "boolean"
|
|
2256
2183
|
},
|
|
2257
2184
|
"operator": {
|
|
2258
2185
|
"description": "The identity provider the operator's staff sign in with to sign in as people of this app, for support. Defaults\nto the one the platform passes in `PROTOBASE_OPERATOR_ISSUER`, `PROTOBASE_OPERATOR_CLIENT_ID` and\n`PROTOBASE_OPERATOR_CLIENT_SECRET` (see `readOperatorSettings`), when set; `false` turns staff sign-in off\nwhatever the environment says.",
|
|
@@ -2350,10 +2277,11 @@
|
|
|
2350
2277
|
},
|
|
2351
2278
|
"additionalProperties": false
|
|
2352
2279
|
},
|
|
2353
|
-
"
|
|
2280
|
+
"UserTableSettings": {
|
|
2354
2281
|
"type": "object",
|
|
2355
2282
|
"properties": {
|
|
2356
|
-
"
|
|
2283
|
+
"metadata": {
|
|
2284
|
+
"description": "A JSON column that holds each user's metadata, such as `raw_user_meta_data`; none by default.",
|
|
2357
2285
|
"anyOf": [
|
|
2358
2286
|
{
|
|
2359
2287
|
"type": "string"
|
|
@@ -2363,26 +2291,65 @@
|
|
|
2363
2291
|
}
|
|
2364
2292
|
]
|
|
2365
2293
|
},
|
|
2366
|
-
"
|
|
2294
|
+
"keyTable": {
|
|
2295
|
+
"description": "The table that holds the user ids, when the user table is a view over another system's user table, such as\n`{ schema: 'auth', table: 'users' }` under a view over Supabase's `auth.users`: the store's migrations then make\nnothing of the user table, which the app's own migration makes, and every foreign key points at this table.",
|
|
2367
2296
|
"anyOf": [
|
|
2368
2297
|
{
|
|
2369
|
-
"type": "
|
|
2298
|
+
"type": "object",
|
|
2299
|
+
"properties": {
|
|
2300
|
+
"schema": {
|
|
2301
|
+
"anyOf": [
|
|
2302
|
+
{
|
|
2303
|
+
"type": "string"
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
"$ref": "#/definitions/EnvValue"
|
|
2307
|
+
}
|
|
2308
|
+
]
|
|
2309
|
+
},
|
|
2310
|
+
"table": {
|
|
2311
|
+
"anyOf": [
|
|
2312
|
+
{
|
|
2313
|
+
"type": "string"
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"$ref": "#/definitions/EnvValue"
|
|
2317
|
+
}
|
|
2318
|
+
]
|
|
2319
|
+
}
|
|
2320
|
+
},
|
|
2321
|
+
"required": [
|
|
2322
|
+
"schema",
|
|
2323
|
+
"table"
|
|
2324
|
+
],
|
|
2325
|
+
"additionalProperties": false
|
|
2370
2326
|
},
|
|
2371
2327
|
{
|
|
2372
2328
|
"$ref": "#/definitions/EnvValue"
|
|
2373
2329
|
}
|
|
2374
2330
|
]
|
|
2375
|
-
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2331
|
+
},
|
|
2332
|
+
"guardedSchemas": {
|
|
2333
|
+
"description": "Schemas the other system that made the user table keeps its sign-in data in, such as `['auth']` for Supabase Auth's\nidentities, sessions, refresh tokens and two-factor secrets: every table in them, today's or one added later,\ncounts among the store's tables. Name only a schema that holds none of the app's own tables.",
|
|
2334
|
+
"anyOf": [
|
|
2335
|
+
{
|
|
2336
|
+
"type": "array",
|
|
2337
|
+
"items": {
|
|
2338
|
+
"anyOf": [
|
|
2339
|
+
{
|
|
2340
|
+
"type": "string"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
"$ref": "#/definitions/EnvValue"
|
|
2344
|
+
}
|
|
2345
|
+
]
|
|
2346
|
+
}
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
"$ref": "#/definitions/EnvValue"
|
|
2350
|
+
}
|
|
2351
|
+
]
|
|
2352
|
+
},
|
|
2386
2353
|
"table": {
|
|
2387
2354
|
"description": "The table's name, default `user`, for example `users` for Supabase's `auth.users`.",
|
|
2388
2355
|
"anyOf": [
|
|
@@ -2400,7 +2367,7 @@
|
|
|
2400
2367
|
{
|
|
2401
2368
|
"type": "object",
|
|
2402
2369
|
"properties": {
|
|
2403
|
-
"
|
|
2370
|
+
"name": {
|
|
2404
2371
|
"anyOf": [
|
|
2405
2372
|
{
|
|
2406
2373
|
"type": "string"
|
|
@@ -2410,7 +2377,7 @@
|
|
|
2410
2377
|
}
|
|
2411
2378
|
]
|
|
2412
2379
|
},
|
|
2413
|
-
"
|
|
2380
|
+
"email": {
|
|
2414
2381
|
"anyOf": [
|
|
2415
2382
|
{
|
|
2416
2383
|
"type": "string"
|
|
@@ -2420,7 +2387,7 @@
|
|
|
2420
2387
|
}
|
|
2421
2388
|
]
|
|
2422
2389
|
},
|
|
2423
|
-
"
|
|
2390
|
+
"email_verified": {
|
|
2424
2391
|
"anyOf": [
|
|
2425
2392
|
{
|
|
2426
2393
|
"type": "string"
|
|
@@ -2430,7 +2397,7 @@
|
|
|
2430
2397
|
}
|
|
2431
2398
|
]
|
|
2432
2399
|
},
|
|
2433
|
-
"
|
|
2400
|
+
"image": {
|
|
2434
2401
|
"anyOf": [
|
|
2435
2402
|
{
|
|
2436
2403
|
"type": "string"
|
|
@@ -2440,7 +2407,7 @@
|
|
|
2440
2407
|
}
|
|
2441
2408
|
]
|
|
2442
2409
|
},
|
|
2443
|
-
"
|
|
2410
|
+
"created_at": {
|
|
2444
2411
|
"anyOf": [
|
|
2445
2412
|
{
|
|
2446
2413
|
"type": "string"
|
|
@@ -2450,7 +2417,7 @@
|
|
|
2450
2417
|
}
|
|
2451
2418
|
]
|
|
2452
2419
|
},
|
|
2453
|
-
"
|
|
2420
|
+
"updated_at": {
|
|
2454
2421
|
"anyOf": [
|
|
2455
2422
|
{
|
|
2456
2423
|
"type": "string"
|
|
@@ -2460,7 +2427,7 @@
|
|
|
2460
2427
|
}
|
|
2461
2428
|
]
|
|
2462
2429
|
},
|
|
2463
|
-
"
|
|
2430
|
+
"role": {
|
|
2464
2431
|
"anyOf": [
|
|
2465
2432
|
{
|
|
2466
2433
|
"type": "string"
|
|
@@ -2470,7 +2437,7 @@
|
|
|
2470
2437
|
}
|
|
2471
2438
|
]
|
|
2472
2439
|
},
|
|
2473
|
-
"
|
|
2440
|
+
"banned": {
|
|
2474
2441
|
"anyOf": [
|
|
2475
2442
|
{
|
|
2476
2443
|
"type": "string"
|
|
@@ -2480,7 +2447,7 @@
|
|
|
2480
2447
|
}
|
|
2481
2448
|
]
|
|
2482
2449
|
},
|
|
2483
|
-
"
|
|
2450
|
+
"ban_reason": {
|
|
2484
2451
|
"anyOf": [
|
|
2485
2452
|
{
|
|
2486
2453
|
"type": "string"
|
|
@@ -2490,7 +2457,7 @@
|
|
|
2490
2457
|
}
|
|
2491
2458
|
]
|
|
2492
2459
|
},
|
|
2493
|
-
"
|
|
2460
|
+
"ban_expires": {
|
|
2494
2461
|
"anyOf": [
|
|
2495
2462
|
{
|
|
2496
2463
|
"type": "string"
|
|
@@ -2500,7 +2467,7 @@
|
|
|
2500
2467
|
}
|
|
2501
2468
|
]
|
|
2502
2469
|
},
|
|
2503
|
-
"
|
|
2470
|
+
"last_role": {
|
|
2504
2471
|
"anyOf": [
|
|
2505
2472
|
{
|
|
2506
2473
|
"type": "string"
|
|
@@ -2510,7 +2477,7 @@
|
|
|
2510
2477
|
}
|
|
2511
2478
|
]
|
|
2512
2479
|
},
|
|
2513
|
-
"
|
|
2480
|
+
"email_confirmed_at": {
|
|
2514
2481
|
"anyOf": [
|
|
2515
2482
|
{
|
|
2516
2483
|
"type": "string"
|
|
@@ -2520,7 +2487,7 @@
|
|
|
2520
2487
|
}
|
|
2521
2488
|
]
|
|
2522
2489
|
},
|
|
2523
|
-
"
|
|
2490
|
+
"two_factor_enabled": {
|
|
2524
2491
|
"anyOf": [
|
|
2525
2492
|
{
|
|
2526
2493
|
"type": "string"
|
|
@@ -2547,9 +2514,14 @@
|
|
|
2547
2514
|
"$ref": "#/definitions/EnvValue"
|
|
2548
2515
|
}
|
|
2549
2516
|
]
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
|
|
2517
|
+
}
|
|
2518
|
+
},
|
|
2519
|
+
"additionalProperties": false
|
|
2520
|
+
},
|
|
2521
|
+
"ConnectionClient": {
|
|
2522
|
+
"type": "object",
|
|
2523
|
+
"properties": {
|
|
2524
|
+
"clientId": {
|
|
2553
2525
|
"anyOf": [
|
|
2554
2526
|
{
|
|
2555
2527
|
"type": "string"
|
|
@@ -2559,59 +2531,10 @@
|
|
|
2559
2531
|
}
|
|
2560
2532
|
]
|
|
2561
2533
|
},
|
|
2562
|
-
"
|
|
2563
|
-
"description": "The table that holds the user ids, when `table` is a view over another system's user table, such as\n`{ schema: 'auth', table: 'users' }` under a view over Supabase's `auth.users`: the store's migrations then make\nnothing of the user table, which the app's own migration makes, and every foreign key points at this table.",
|
|
2564
|
-
"anyOf": [
|
|
2565
|
-
{
|
|
2566
|
-
"type": "object",
|
|
2567
|
-
"properties": {
|
|
2568
|
-
"schema": {
|
|
2569
|
-
"anyOf": [
|
|
2570
|
-
{
|
|
2571
|
-
"type": "string"
|
|
2572
|
-
},
|
|
2573
|
-
{
|
|
2574
|
-
"$ref": "#/definitions/EnvValue"
|
|
2575
|
-
}
|
|
2576
|
-
]
|
|
2577
|
-
},
|
|
2578
|
-
"table": {
|
|
2579
|
-
"anyOf": [
|
|
2580
|
-
{
|
|
2581
|
-
"type": "string"
|
|
2582
|
-
},
|
|
2583
|
-
{
|
|
2584
|
-
"$ref": "#/definitions/EnvValue"
|
|
2585
|
-
}
|
|
2586
|
-
]
|
|
2587
|
-
}
|
|
2588
|
-
},
|
|
2589
|
-
"required": [
|
|
2590
|
-
"schema",
|
|
2591
|
-
"table"
|
|
2592
|
-
],
|
|
2593
|
-
"additionalProperties": false
|
|
2594
|
-
},
|
|
2595
|
-
{
|
|
2596
|
-
"$ref": "#/definitions/EnvValue"
|
|
2597
|
-
}
|
|
2598
|
-
]
|
|
2599
|
-
},
|
|
2600
|
-
"guardedSchemas": {
|
|
2601
|
-
"description": "Schemas the other system that made the user table keeps its sign-in data in, such as `['auth']` for Supabase Auth's\nidentities, sessions, refresh tokens and two-factor secrets: every table in them, today's or one added later,\ncounts among the store's tables. Name only a schema that holds none of the app's own tables.",
|
|
2534
|
+
"clientSecret": {
|
|
2602
2535
|
"anyOf": [
|
|
2603
2536
|
{
|
|
2604
|
-
"type": "
|
|
2605
|
-
"items": {
|
|
2606
|
-
"anyOf": [
|
|
2607
|
-
{
|
|
2608
|
-
"type": "string"
|
|
2609
|
-
},
|
|
2610
|
-
{
|
|
2611
|
-
"$ref": "#/definitions/EnvValue"
|
|
2612
|
-
}
|
|
2613
|
-
]
|
|
2614
|
-
}
|
|
2537
|
+
"type": "string"
|
|
2615
2538
|
},
|
|
2616
2539
|
{
|
|
2617
2540
|
"$ref": "#/definitions/EnvValue"
|
|
@@ -2619,6 +2542,10 @@
|
|
|
2619
2542
|
]
|
|
2620
2543
|
}
|
|
2621
2544
|
},
|
|
2545
|
+
"required": [
|
|
2546
|
+
"clientId",
|
|
2547
|
+
"clientSecret"
|
|
2548
|
+
],
|
|
2622
2549
|
"additionalProperties": false
|
|
2623
2550
|
},
|
|
2624
2551
|
"OperatorProvider": {
|
|
@@ -2840,47 +2767,19 @@
|
|
|
2840
2767
|
},
|
|
2841
2768
|
"hidden": {
|
|
2842
2769
|
"description": "Keeps people's links to the provider off their account page: not listed among the connected accounts, and not\nconnected or disconnected there. The link still signs them in, and goes with the person. Default off.",
|
|
2843
|
-
"
|
|
2844
|
-
{
|
|
2845
|
-
"type": "boolean"
|
|
2846
|
-
},
|
|
2847
|
-
{
|
|
2848
|
-
"$ref": "#/definitions/EnvValue"
|
|
2849
|
-
}
|
|
2850
|
-
]
|
|
2770
|
+
"type": "boolean"
|
|
2851
2771
|
},
|
|
2852
2772
|
"button": {
|
|
2853
2773
|
"description": "Whether the sign-in page shows \"Continue with {name}\" for it. With `false`, people sign in through its pages only\nwhen something sends them there: a sign-in link (`?sign-in={provider}`) or a redirect another app starts. Only for a\nprovider with pages. Default on.",
|
|
2854
|
-
"
|
|
2855
|
-
{
|
|
2856
|
-
"type": "boolean"
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
"$ref": "#/definitions/EnvValue"
|
|
2860
|
-
}
|
|
2861
|
-
]
|
|
2774
|
+
"type": "boolean"
|
|
2862
2775
|
},
|
|
2863
2776
|
"tokenSignIn": {
|
|
2864
2777
|
"description": "Token sign-in: a client that holds a fresh ID token the provider issued for this app posts it instead of sending\nthe browser through the provider, and gets the app's own session (see `idTokenSignInPlugin`). Default off.",
|
|
2865
|
-
"
|
|
2866
|
-
{
|
|
2867
|
-
"type": "boolean"
|
|
2868
|
-
},
|
|
2869
|
-
{
|
|
2870
|
-
"$ref": "#/definitions/EnvValue"
|
|
2871
|
-
}
|
|
2872
|
-
]
|
|
2778
|
+
"type": "boolean"
|
|
2873
2779
|
},
|
|
2874
2780
|
"devices": {
|
|
2875
2781
|
"description": "Each device is an account of its own: the provider gives every device a subject of its own, and a person holds\nas many accounts of it as they have devices, each linked by the address on its first sign-in like any other. The\naccount page lists them among the devices, named by `name` and the token's `device_name` claim, not among the\nconnected accounts; signing one out there removes it and ends its sessions, and its subject never signs in again.\nNeeds `tokenSignIn` without a `clientSecret`: a device signs in by token alone. Default off.",
|
|
2876
|
-
"
|
|
2877
|
-
{
|
|
2878
|
-
"type": "boolean"
|
|
2879
|
-
},
|
|
2880
|
-
{
|
|
2881
|
-
"$ref": "#/definitions/EnvValue"
|
|
2882
|
-
}
|
|
2883
|
-
]
|
|
2782
|
+
"type": "boolean"
|
|
2884
2783
|
}
|
|
2885
2784
|
},
|
|
2886
2785
|
"required": [
|
|
@@ -3111,14 +3010,7 @@
|
|
|
3111
3010
|
"properties": {
|
|
3112
3011
|
"api": {
|
|
3113
3012
|
"description": "OAuth clients may ask for access tokens for the app's API (`resource=<origin>/api`), such as a native app that signs\nin through the connect page, and the API takes them as `Authorization: Bearer <token>`. Off by default.",
|
|
3114
|
-
"
|
|
3115
|
-
{
|
|
3116
|
-
"type": "boolean"
|
|
3117
|
-
},
|
|
3118
|
-
{
|
|
3119
|
-
"$ref": "#/definitions/EnvValue"
|
|
3120
|
-
}
|
|
3121
|
-
]
|
|
3013
|
+
"type": "boolean"
|
|
3122
3014
|
}
|
|
3123
3015
|
},
|
|
3124
3016
|
"additionalProperties": false
|
|
@@ -3255,14 +3147,7 @@
|
|
|
3255
3147
|
},
|
|
3256
3148
|
"exchange": {
|
|
3257
3149
|
"description": "May exchange its access token for an ID token of another client or an origin of `audiences`. Default false.",
|
|
3258
|
-
"
|
|
3259
|
-
{
|
|
3260
|
-
"type": "boolean"
|
|
3261
|
-
},
|
|
3262
|
-
{
|
|
3263
|
-
"$ref": "#/definitions/EnvValue"
|
|
3264
|
-
}
|
|
3265
|
-
]
|
|
3150
|
+
"type": "boolean"
|
|
3266
3151
|
}
|
|
3267
3152
|
},
|
|
3268
3153
|
"required": [
|
|
@@ -3297,17 +3182,10 @@
|
|
|
3297
3182
|
"properties": {
|
|
3298
3183
|
"organizations": {
|
|
3299
3184
|
"description": "Whether the tokens carry organizations; read from `auth` when given. Needed with `jwksUrl` only.",
|
|
3300
|
-
"
|
|
3301
|
-
{
|
|
3302
|
-
"type": "boolean"
|
|
3303
|
-
},
|
|
3304
|
-
{
|
|
3305
|
-
"$ref": "#/definitions/EnvValue"
|
|
3306
|
-
}
|
|
3307
|
-
]
|
|
3185
|
+
"type": "boolean"
|
|
3308
3186
|
},
|
|
3309
|
-
"
|
|
3310
|
-
"description": "
|
|
3187
|
+
"issuer": {
|
|
3188
|
+
"description": "Defaults to the auth instance's `issuer`, its `baseURL`; it is both issuer and audience of its tokens.",
|
|
3311
3189
|
"anyOf": [
|
|
3312
3190
|
{
|
|
3313
3191
|
"type": "string"
|
|
@@ -3317,8 +3195,8 @@
|
|
|
3317
3195
|
}
|
|
3318
3196
|
]
|
|
3319
3197
|
},
|
|
3320
|
-
"
|
|
3321
|
-
"description": "
|
|
3198
|
+
"jwksUrl": {
|
|
3199
|
+
"description": "Or its JWKS endpoint, for an API that runs apart from the auth server. Needs `issuer`.",
|
|
3322
3200
|
"anyOf": [
|
|
3323
3201
|
{
|
|
3324
3202
|
"type": "string"
|
|
@@ -3540,14 +3418,7 @@
|
|
|
3540
3418
|
},
|
|
3541
3419
|
"longQueries": {
|
|
3542
3420
|
"description": "Its queries through `db` may run up to 30 seconds instead of the database's own limit, on a connection kept for\nsuch work: for imports, backfills, large deletes and other bulk work.",
|
|
3543
|
-
"
|
|
3544
|
-
{
|
|
3545
|
-
"type": "boolean"
|
|
3546
|
-
},
|
|
3547
|
-
{
|
|
3548
|
-
"$ref": "#/definitions/EnvValue"
|
|
3549
|
-
}
|
|
3550
|
-
]
|
|
3421
|
+
"type": "boolean"
|
|
3551
3422
|
},
|
|
3552
3423
|
"concurrency": {
|
|
3553
3424
|
"description": "Jobs of this name running at once in each worker process. Default 1.",
|
|
@@ -3562,14 +3433,7 @@
|
|
|
3562
3433
|
},
|
|
3563
3434
|
"ordered": {
|
|
3564
3435
|
"description": "Jobs run one at a time per group, in the order they were enqueued, and every enqueue names its group. A job that is\nretrying or failed holds back the rest of its group until it succeeds, or is retried or deleted in the admin app.",
|
|
3565
|
-
"
|
|
3566
|
-
{
|
|
3567
|
-
"type": "boolean"
|
|
3568
|
-
},
|
|
3569
|
-
{
|
|
3570
|
-
"$ref": "#/definitions/EnvValue"
|
|
3571
|
-
}
|
|
3572
|
-
]
|
|
3436
|
+
"type": "boolean"
|
|
3573
3437
|
},
|
|
3574
3438
|
"schedule": {
|
|
3575
3439
|
"description": "Runs the job on this cron schedule, such as `0 7 * * *` (with an optional seconds field first), with no payload: one\nrun per time, however many workers run. A run missed while no worker ran happens once, as soon as one does.",
|
|
@@ -3627,13 +3491,13 @@
|
|
|
3627
3491
|
"bigint",
|
|
3628
3492
|
"boolean",
|
|
3629
3493
|
"uuid",
|
|
3494
|
+
"date",
|
|
3495
|
+
"json",
|
|
3630
3496
|
"text",
|
|
3631
3497
|
"integer",
|
|
3632
3498
|
"decimal",
|
|
3633
|
-
"date",
|
|
3634
3499
|
"timestamp",
|
|
3635
3500
|
"enum",
|
|
3636
|
-
"json",
|
|
3637
3501
|
"currency",
|
|
3638
3502
|
"country"
|
|
3639
3503
|
]
|
|
@@ -3649,13 +3513,13 @@
|
|
|
3649
3513
|
"bigint",
|
|
3650
3514
|
"boolean",
|
|
3651
3515
|
"uuid",
|
|
3516
|
+
"date",
|
|
3517
|
+
"json",
|
|
3652
3518
|
"text",
|
|
3653
3519
|
"integer",
|
|
3654
3520
|
"decimal",
|
|
3655
|
-
"date",
|
|
3656
3521
|
"timestamp",
|
|
3657
3522
|
"enum",
|
|
3658
|
-
"json",
|
|
3659
3523
|
"currency",
|
|
3660
3524
|
"country"
|
|
3661
3525
|
]
|
|
@@ -3667,14 +3531,7 @@
|
|
|
3667
3531
|
},
|
|
3668
3532
|
"optional": {
|
|
3669
3533
|
"description": "It may be left out.",
|
|
3670
|
-
"
|
|
3671
|
-
{
|
|
3672
|
-
"type": "boolean"
|
|
3673
|
-
},
|
|
3674
|
-
{
|
|
3675
|
-
"$ref": "#/definitions/EnvValue"
|
|
3676
|
-
}
|
|
3677
|
-
]
|
|
3534
|
+
"type": "boolean"
|
|
3678
3535
|
},
|
|
3679
3536
|
"values": {
|
|
3680
3537
|
"description": "An enum's values.",
|
|
@@ -3929,14 +3786,7 @@
|
|
|
3929
3786
|
},
|
|
3930
3787
|
"public": {
|
|
3931
3788
|
"description": "Files anyone with the link may open, served without a signature.",
|
|
3932
|
-
"
|
|
3933
|
-
{
|
|
3934
|
-
"type": "boolean"
|
|
3935
|
-
},
|
|
3936
|
-
{
|
|
3937
|
-
"$ref": "#/definitions/EnvValue"
|
|
3938
|
-
}
|
|
3939
|
-
]
|
|
3789
|
+
"type": "boolean"
|
|
3940
3790
|
},
|
|
3941
3791
|
"publicUrl": {
|
|
3942
3792
|
"description": "Where public files are linked from instead of the app's own `/api/files/<provider>`, such as a CDN in front of it.",
|
|
@@ -4073,14 +3923,7 @@
|
|
|
4073
3923
|
},
|
|
4074
3924
|
"public": {
|
|
4075
3925
|
"description": "Files anyone with the link may open.",
|
|
4076
|
-
"
|
|
4077
|
-
{
|
|
4078
|
-
"type": "boolean"
|
|
4079
|
-
},
|
|
4080
|
-
{
|
|
4081
|
-
"$ref": "#/definitions/EnvValue"
|
|
4082
|
-
}
|
|
4083
|
-
]
|
|
3926
|
+
"type": "boolean"
|
|
4084
3927
|
},
|
|
4085
3928
|
"publicUrl": {
|
|
4086
3929
|
"description": "The bucket's public address, such as an R2 custom domain; public files are linked from there, under `prefix`.",
|
|
@@ -4211,14 +4054,7 @@
|
|
|
4211
4054
|
},
|
|
4212
4055
|
"sqlSends": {
|
|
4213
4056
|
"description": "`true` lets SQL in the app's database broadcast to the record channels with `channels.send()`, from the `channels`\nschema `protobase migration` writes.",
|
|
4214
|
-
"
|
|
4215
|
-
{
|
|
4216
|
-
"type": "boolean"
|
|
4217
|
-
},
|
|
4218
|
-
{
|
|
4219
|
-
"$ref": "#/definitions/EnvValue"
|
|
4220
|
-
}
|
|
4221
|
-
]
|
|
4057
|
+
"type": "boolean"
|
|
4222
4058
|
}
|
|
4223
4059
|
},
|
|
4224
4060
|
"additionalProperties": false
|