@protobase/config 0.105.2 → 0.106.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/package.json +2 -2
- package/schema.json +112 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.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.106.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/schema.json
CHANGED
|
@@ -2126,7 +2126,7 @@
|
|
|
2126
2126
|
]
|
|
2127
2127
|
},
|
|
2128
2128
|
"socialProviders": {
|
|
2129
|
-
"description": "Sign-in providers for Better Auth, for example `{ github: { clientId, clientSecret } }`; the callback is\n`{baseURL}/api/auth/callback/<provider>`. A provider also signs up people without an account, with the default role.\nOne with the id of `
|
|
2129
|
+
"description": "Sign-in providers for Better Auth, for example `{ github: { clientId, clientSecret } }`; the callback is\n`{baseURL}/api/auth/callback/<provider>`. A provider also signs up people without an account, with the default role.\nOne with the id of a provider of `signInProviders` takes its place. Default none.",
|
|
2130
2130
|
"anyOf": [
|
|
2131
2131
|
{
|
|
2132
2132
|
"type": "object"
|
|
@@ -2257,14 +2257,21 @@
|
|
|
2257
2257
|
}
|
|
2258
2258
|
]
|
|
2259
2259
|
},
|
|
2260
|
-
"
|
|
2261
|
-
"description": "
|
|
2260
|
+
"signInProviders": {
|
|
2261
|
+
"description": "The sign-in providers the platform adds for people who already have an account: OpenID Connect providers that never\nsign anyone up, each with its own id. Defaults to those the platform passes in `PROTOBASE_SIGN_IN_ISSUER`,\n`PROTOBASE_SIGN_IN_CLIENT_ID` and `PROTOBASE_SIGN_IN_CLIENT_SECRET`, and the numbered sets after them such as\n`PROTOBASE_SIGN_IN_2_ISSUER` (see `readPlatformSignIns`); `[]` turns them off whatever the environment says. One\nis left out when `socialProviders` has a provider with its id. Without `clientSecret`, one signs in by token sign-in\nalone, with tokens for the origin of `baseURL` unless `clientId` names another.",
|
|
2262
2262
|
"anyOf": [
|
|
2263
2263
|
{
|
|
2264
|
-
"
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2264
|
+
"type": "array",
|
|
2265
|
+
"items": {
|
|
2266
|
+
"anyOf": [
|
|
2267
|
+
{
|
|
2268
|
+
"$ref": "#/definitions/PlatformSignIn"
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"$ref": "#/definitions/EnvValue"
|
|
2272
|
+
}
|
|
2273
|
+
]
|
|
2274
|
+
}
|
|
2268
2275
|
},
|
|
2269
2276
|
{
|
|
2270
2277
|
"$ref": "#/definitions/EnvValue"
|
|
@@ -2293,6 +2300,20 @@
|
|
|
2293
2300
|
}
|
|
2294
2301
|
]
|
|
2295
2302
|
},
|
|
2303
|
+
"openIdProvider": {
|
|
2304
|
+
"description": "Turns the app into an OpenID provider for the clients its admins register (`/api/auth/openid-provider/clients`),\nsuch as other apps that let people sign in with it: a person signs in on the app's own pages and the client gets\nan ID token with their `sub`, `email` and `email_verified`, without being asked to allow it. Nothing registers\nitself, and any other client or redirect URI is refused. A client allowed to exchange gets ID tokens for the other\nclients from its own access token (RFC 8693), without a browser. `true` for the defaults, or the `connectPage`\n(default `/-/connect`). Not with `mcp`. Off by default.",
|
|
2305
|
+
"anyOf": [
|
|
2306
|
+
{
|
|
2307
|
+
"const": true
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
"$ref": "#/definitions/OpenIdProviderOptions"
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
"$ref": "#/definitions/EnvValue"
|
|
2314
|
+
}
|
|
2315
|
+
]
|
|
2316
|
+
},
|
|
2296
2317
|
"personalAccessTokens": {
|
|
2297
2318
|
"description": "Turns on personal access tokens: a signed-in person makes long-lived tokens on their account page, for a script to\ncall the app's API as them with `Authorization: Bearer <token>`. `prefix` starts every token, lowercase letters,\ndigits and underscores ending in `_`, such as `invoices_`; it has no default. Off by default.",
|
|
2298
2319
|
"anyOf": [
|
|
@@ -2721,6 +2742,7 @@
|
|
|
2721
2742
|
]
|
|
2722
2743
|
},
|
|
2723
2744
|
"clientId": {
|
|
2745
|
+
"description": "This app's client id at the provider, which its ID tokens name as their audience; default the origin of `baseURL` without `clientSecret`.",
|
|
2724
2746
|
"anyOf": [
|
|
2725
2747
|
{
|
|
2726
2748
|
"type": "string"
|
|
@@ -2731,6 +2753,7 @@
|
|
|
2731
2753
|
]
|
|
2732
2754
|
},
|
|
2733
2755
|
"clientSecret": {
|
|
2756
|
+
"description": "The client secret for sign-in through the provider's pages; without it, only `tokenSignIn`, which must then be on.",
|
|
2734
2757
|
"anyOf": [
|
|
2735
2758
|
{
|
|
2736
2759
|
"type": "string"
|
|
@@ -2783,6 +2806,38 @@
|
|
|
2783
2806
|
}
|
|
2784
2807
|
]
|
|
2785
2808
|
},
|
|
2809
|
+
"authorizationParams": {
|
|
2810
|
+
"description": "Parameters every authorization request to the provider carries as given, such as one naming which of its own\nsign-in methods it must use; a client cannot add to them or change them. None of those the flow sets itself\n(`state`, `client_id`, `redirect_uri`, `response_type`, `scope`, `nonce`, `code_challenge`, `code_challenge_method`).",
|
|
2811
|
+
"anyOf": [
|
|
2812
|
+
{
|
|
2813
|
+
"type": "object",
|
|
2814
|
+
"additionalProperties": {
|
|
2815
|
+
"anyOf": [
|
|
2816
|
+
{
|
|
2817
|
+
"type": "string"
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
"$ref": "#/definitions/EnvValue"
|
|
2821
|
+
}
|
|
2822
|
+
]
|
|
2823
|
+
}
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
"$ref": "#/definitions/EnvValue"
|
|
2827
|
+
}
|
|
2828
|
+
]
|
|
2829
|
+
},
|
|
2830
|
+
"hidden": {
|
|
2831
|
+
"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.",
|
|
2832
|
+
"anyOf": [
|
|
2833
|
+
{
|
|
2834
|
+
"type": "boolean"
|
|
2835
|
+
},
|
|
2836
|
+
{
|
|
2837
|
+
"$ref": "#/definitions/EnvValue"
|
|
2838
|
+
}
|
|
2839
|
+
]
|
|
2840
|
+
},
|
|
2786
2841
|
"tokenSignIn": {
|
|
2787
2842
|
"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.",
|
|
2788
2843
|
"anyOf": [
|
|
@@ -2793,12 +2848,21 @@
|
|
|
2793
2848
|
"$ref": "#/definitions/EnvValue"
|
|
2794
2849
|
}
|
|
2795
2850
|
]
|
|
2851
|
+
},
|
|
2852
|
+
"devices": {
|
|
2853
|
+
"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.",
|
|
2854
|
+
"anyOf": [
|
|
2855
|
+
{
|
|
2856
|
+
"type": "boolean"
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"$ref": "#/definitions/EnvValue"
|
|
2860
|
+
}
|
|
2861
|
+
]
|
|
2796
2862
|
}
|
|
2797
2863
|
},
|
|
2798
2864
|
"required": [
|
|
2799
|
-
"issuer"
|
|
2800
|
-
"clientId",
|
|
2801
|
-
"clientSecret"
|
|
2865
|
+
"issuer"
|
|
2802
2866
|
],
|
|
2803
2867
|
"additionalProperties": false
|
|
2804
2868
|
},
|
|
@@ -3037,6 +3101,44 @@
|
|
|
3037
3101
|
},
|
|
3038
3102
|
"additionalProperties": false
|
|
3039
3103
|
},
|
|
3104
|
+
"OpenIdProviderOptions": {
|
|
3105
|
+
"type": "object",
|
|
3106
|
+
"properties": {
|
|
3107
|
+
"connectPage": {
|
|
3108
|
+
"description": "The connect page's path on the app's origin, where people sign in on the way to a client; default `/-/connect`, for a UI at the root.",
|
|
3109
|
+
"anyOf": [
|
|
3110
|
+
{
|
|
3111
|
+
"type": "string"
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
"$ref": "#/definitions/EnvValue"
|
|
3115
|
+
}
|
|
3116
|
+
]
|
|
3117
|
+
},
|
|
3118
|
+
"audiences": {
|
|
3119
|
+
"description": "The origins the token exchange issues ID tokens for besides the registered clients, as patterns such as\n`https://*.example.app` (see `AudiencePattern`): the ID token's audience is the origin itself, so the apps there\nneed no registration. No browser is ever sent to them. Default none.",
|
|
3120
|
+
"anyOf": [
|
|
3121
|
+
{
|
|
3122
|
+
"type": "array",
|
|
3123
|
+
"items": {
|
|
3124
|
+
"anyOf": [
|
|
3125
|
+
{
|
|
3126
|
+
"type": "string"
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
"$ref": "#/definitions/EnvValue"
|
|
3130
|
+
}
|
|
3131
|
+
]
|
|
3132
|
+
}
|
|
3133
|
+
},
|
|
3134
|
+
{
|
|
3135
|
+
"$ref": "#/definitions/EnvValue"
|
|
3136
|
+
}
|
|
3137
|
+
]
|
|
3138
|
+
}
|
|
3139
|
+
},
|
|
3140
|
+
"additionalProperties": false
|
|
3141
|
+
},
|
|
3040
3142
|
"PersonalAccessTokensOptions": {
|
|
3041
3143
|
"type": "object",
|
|
3042
3144
|
"properties": {
|