@protobase/config 0.111.2 → 0.112.1

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/schema.json +120 -120
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/config",
3
- "version": "0.111.2",
3
+ "version": "0.112.1",
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.111.2"
34
+ "@protobase/server": "0.112.1"
35
35
  }
36
36
  }
package/schema.json CHANGED
@@ -888,7 +888,7 @@
888
888
  {
889
889
  "type": "object",
890
890
  "properties": {
891
- "created_at": {
891
+ "auth": {
892
892
  "anyOf": [
893
893
  {
894
894
  "type": "string"
@@ -898,7 +898,7 @@
898
898
  }
899
899
  ]
900
900
  },
901
- "auth": {
901
+ "created_at": {
902
902
  "anyOf": [
903
903
  {
904
904
  "type": "string"
@@ -908,7 +908,7 @@
908
908
  }
909
909
  ]
910
910
  },
911
- "id": {
911
+ "token": {
912
912
  "anyOf": [
913
913
  {
914
914
  "type": "string"
@@ -918,7 +918,7 @@
918
918
  }
919
919
  ]
920
920
  },
921
- "user_id": {
921
+ "user_agent": {
922
922
  "anyOf": [
923
923
  {
924
924
  "type": "string"
@@ -928,7 +928,7 @@
928
928
  }
929
929
  ]
930
930
  },
931
- "kind": {
931
+ "user_id": {
932
932
  "anyOf": [
933
933
  {
934
934
  "type": "string"
@@ -938,7 +938,7 @@
938
938
  }
939
939
  ]
940
940
  },
941
- "token": {
941
+ "session_id": {
942
942
  "anyOf": [
943
943
  {
944
944
  "type": "string"
@@ -948,7 +948,7 @@
948
948
  }
949
949
  ]
950
950
  },
951
- "p256dh": {
951
+ "id": {
952
952
  "anyOf": [
953
953
  {
954
954
  "type": "string"
@@ -958,7 +958,7 @@
958
958
  }
959
959
  ]
960
960
  },
961
- "environment": {
961
+ "kind": {
962
962
  "anyOf": [
963
963
  {
964
964
  "type": "string"
@@ -968,7 +968,7 @@
968
968
  }
969
969
  ]
970
970
  },
971
- "app_id": {
971
+ "p256dh": {
972
972
  "anyOf": [
973
973
  {
974
974
  "type": "string"
@@ -978,7 +978,7 @@
978
978
  }
979
979
  ]
980
980
  },
981
- "user_agent": {
981
+ "environment": {
982
982
  "anyOf": [
983
983
  {
984
984
  "type": "string"
@@ -988,7 +988,7 @@
988
988
  }
989
989
  ]
990
990
  },
991
- "session_id": {
991
+ "app_id": {
992
992
  "anyOf": [
993
993
  {
994
994
  "type": "string"
@@ -1065,7 +1065,7 @@
1065
1065
  }
1066
1066
  ]
1067
1067
  },
1068
- "id": {
1068
+ "user_id": {
1069
1069
  "anyOf": [
1070
1070
  {
1071
1071
  "type": "string"
@@ -1075,7 +1075,7 @@
1075
1075
  }
1076
1076
  ]
1077
1077
  },
1078
- "user_id": {
1078
+ "id": {
1079
1079
  "anyOf": [
1080
1080
  {
1081
1081
  "type": "string"
@@ -1830,6 +1830,17 @@
1830
1830
  }
1831
1831
  ]
1832
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
+ },
1833
1844
  "origins": {
1834
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.",
1835
1846
  "anyOf": [
@@ -1938,8 +1949,8 @@
1938
1949
  "anyOf": [
1939
1950
  {
1940
1951
  "enum": [
1941
- "email",
1942
- "name"
1952
+ "name",
1953
+ "email"
1943
1954
  ]
1944
1955
  },
1945
1956
  {
@@ -2000,9 +2011,9 @@
2000
2011
  "anyOf": [
2001
2012
  {
2002
2013
  "enum": [
2014
+ "required",
2003
2015
  "allowed",
2004
- "forbidden",
2005
- "required"
2016
+ "forbidden"
2006
2017
  ]
2007
2018
  },
2008
2019
  {
@@ -2014,9 +2025,9 @@
2014
2025
  "anyOf": [
2015
2026
  {
2016
2027
  "enum": [
2028
+ "required",
2017
2029
  "allowed",
2018
- "forbidden",
2019
- "required"
2030
+ "forbidden"
2020
2031
  ]
2021
2032
  },
2022
2033
  {
@@ -2141,17 +2152,6 @@
2141
2152
  }
2142
2153
  ]
2143
2154
  },
2144
- "users": {
2145
- "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.",
2146
- "anyOf": [
2147
- {
2148
- "$ref": "#/definitions/UserTableOptions"
2149
- },
2150
- {
2151
- "$ref": "#/definitions/EnvValue"
2152
- }
2153
- ]
2154
- },
2155
2155
  "passwordHashes": {
2156
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.",
2157
2157
  "anyOf": [
@@ -2277,10 +2277,11 @@
2277
2277
  },
2278
2278
  "additionalProperties": false
2279
2279
  },
2280
- "ConnectionClient": {
2280
+ "UserTableSettings": {
2281
2281
  "type": "object",
2282
2282
  "properties": {
2283
- "clientId": {
2283
+ "metadata": {
2284
+ "description": "A JSON column that holds each user's metadata, such as `raw_user_meta_data`; none by default.",
2284
2285
  "anyOf": [
2285
2286
  {
2286
2287
  "type": "string"
@@ -2290,26 +2291,65 @@
2290
2291
  }
2291
2292
  ]
2292
2293
  },
2293
- "clientSecret": {
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.",
2294
2296
  "anyOf": [
2295
2297
  {
2296
- "type": "string"
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
2297
2326
  },
2298
2327
  {
2299
2328
  "$ref": "#/definitions/EnvValue"
2300
2329
  }
2301
2330
  ]
2302
- }
2303
- },
2304
- "required": [
2305
- "clientId",
2306
- "clientSecret"
2307
- ],
2308
- "additionalProperties": false
2309
- },
2310
- "UserTableOptions": {
2311
- "type": "object",
2312
- "properties": {
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
+ },
2313
2353
  "table": {
2314
2354
  "description": "The table's name, default `user`, for example `users` for Supabase's `auth.users`.",
2315
2355
  "anyOf": [
@@ -2327,7 +2367,7 @@
2327
2367
  {
2328
2368
  "type": "object",
2329
2369
  "properties": {
2330
- "email": {
2370
+ "name": {
2331
2371
  "anyOf": [
2332
2372
  {
2333
2373
  "type": "string"
@@ -2337,7 +2377,7 @@
2337
2377
  }
2338
2378
  ]
2339
2379
  },
2340
- "name": {
2380
+ "email": {
2341
2381
  "anyOf": [
2342
2382
  {
2343
2383
  "type": "string"
@@ -2347,7 +2387,7 @@
2347
2387
  }
2348
2388
  ]
2349
2389
  },
2350
- "image": {
2390
+ "email_verified": {
2351
2391
  "anyOf": [
2352
2392
  {
2353
2393
  "type": "string"
@@ -2357,7 +2397,7 @@
2357
2397
  }
2358
2398
  ]
2359
2399
  },
2360
- "role": {
2400
+ "image": {
2361
2401
  "anyOf": [
2362
2402
  {
2363
2403
  "type": "string"
@@ -2367,7 +2407,7 @@
2367
2407
  }
2368
2408
  ]
2369
2409
  },
2370
- "banned": {
2410
+ "created_at": {
2371
2411
  "anyOf": [
2372
2412
  {
2373
2413
  "type": "string"
@@ -2377,7 +2417,7 @@
2377
2417
  }
2378
2418
  ]
2379
2419
  },
2380
- "email_verified": {
2420
+ "updated_at": {
2381
2421
  "anyOf": [
2382
2422
  {
2383
2423
  "type": "string"
@@ -2387,7 +2427,7 @@
2387
2427
  }
2388
2428
  ]
2389
2429
  },
2390
- "email_confirmed_at": {
2430
+ "role": {
2391
2431
  "anyOf": [
2392
2432
  {
2393
2433
  "type": "string"
@@ -2397,7 +2437,7 @@
2397
2437
  }
2398
2438
  ]
2399
2439
  },
2400
- "created_at": {
2440
+ "banned": {
2401
2441
  "anyOf": [
2402
2442
  {
2403
2443
  "type": "string"
@@ -2407,7 +2447,7 @@
2407
2447
  }
2408
2448
  ]
2409
2449
  },
2410
- "updated_at": {
2450
+ "ban_reason": {
2411
2451
  "anyOf": [
2412
2452
  {
2413
2453
  "type": "string"
@@ -2417,7 +2457,7 @@
2417
2457
  }
2418
2458
  ]
2419
2459
  },
2420
- "ban_reason": {
2460
+ "ban_expires": {
2421
2461
  "anyOf": [
2422
2462
  {
2423
2463
  "type": "string"
@@ -2427,7 +2467,7 @@
2427
2467
  }
2428
2468
  ]
2429
2469
  },
2430
- "ban_expires": {
2470
+ "last_role": {
2431
2471
  "anyOf": [
2432
2472
  {
2433
2473
  "type": "string"
@@ -2437,7 +2477,7 @@
2437
2477
  }
2438
2478
  ]
2439
2479
  },
2440
- "two_factor_enabled": {
2480
+ "email_confirmed_at": {
2441
2481
  "anyOf": [
2442
2482
  {
2443
2483
  "type": "string"
@@ -2447,7 +2487,7 @@
2447
2487
  }
2448
2488
  ]
2449
2489
  },
2450
- "last_role": {
2490
+ "two_factor_enabled": {
2451
2491
  "anyOf": [
2452
2492
  {
2453
2493
  "type": "string"
@@ -2474,9 +2514,14 @@
2474
2514
  "$ref": "#/definitions/EnvValue"
2475
2515
  }
2476
2516
  ]
2477
- },
2478
- "metadata": {
2479
- "description": "A JSON column that holds each user's metadata, such as `raw_user_meta_data`; none by default.",
2517
+ }
2518
+ },
2519
+ "additionalProperties": false
2520
+ },
2521
+ "ConnectionClient": {
2522
+ "type": "object",
2523
+ "properties": {
2524
+ "clientId": {
2480
2525
  "anyOf": [
2481
2526
  {
2482
2527
  "type": "string"
@@ -2486,59 +2531,10 @@
2486
2531
  }
2487
2532
  ]
2488
2533
  },
2489
- "keyTable": {
2490
- "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.",
2491
- "anyOf": [
2492
- {
2493
- "type": "object",
2494
- "properties": {
2495
- "schema": {
2496
- "anyOf": [
2497
- {
2498
- "type": "string"
2499
- },
2500
- {
2501
- "$ref": "#/definitions/EnvValue"
2502
- }
2503
- ]
2504
- },
2505
- "table": {
2506
- "anyOf": [
2507
- {
2508
- "type": "string"
2509
- },
2510
- {
2511
- "$ref": "#/definitions/EnvValue"
2512
- }
2513
- ]
2514
- }
2515
- },
2516
- "required": [
2517
- "schema",
2518
- "table"
2519
- ],
2520
- "additionalProperties": false
2521
- },
2522
- {
2523
- "$ref": "#/definitions/EnvValue"
2524
- }
2525
- ]
2526
- },
2527
- "guardedSchemas": {
2528
- "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": {
2529
2535
  "anyOf": [
2530
2536
  {
2531
- "type": "array",
2532
- "items": {
2533
- "anyOf": [
2534
- {
2535
- "type": "string"
2536
- },
2537
- {
2538
- "$ref": "#/definitions/EnvValue"
2539
- }
2540
- ]
2541
- }
2537
+ "type": "string"
2542
2538
  },
2543
2539
  {
2544
2540
  "$ref": "#/definitions/EnvValue"
@@ -2546,6 +2542,10 @@
2546
2542
  ]
2547
2543
  }
2548
2544
  },
2545
+ "required": [
2546
+ "clientId",
2547
+ "clientSecret"
2548
+ ],
2549
2549
  "additionalProperties": false
2550
2550
  },
2551
2551
  "OperatorProvider": {
@@ -3184,8 +3184,8 @@
3184
3184
  "description": "Whether the tokens carry organizations; read from `auth` when given. Needed with `jwksUrl` only.",
3185
3185
  "type": "boolean"
3186
3186
  },
3187
- "jwksUrl": {
3188
- "description": "Or its JWKS endpoint, for an API that runs apart from the auth server. Needs `issuer`.",
3187
+ "issuer": {
3188
+ "description": "Defaults to the auth instance's `issuer`, its `baseURL`; it is both issuer and audience of its tokens.",
3189
3189
  "anyOf": [
3190
3190
  {
3191
3191
  "type": "string"
@@ -3195,8 +3195,8 @@
3195
3195
  }
3196
3196
  ]
3197
3197
  },
3198
- "issuer": {
3199
- "description": "Defaults to the auth instance's `issuer`, its `baseURL`; it is both issuer and audience of its tokens.",
3198
+ "jwksUrl": {
3199
+ "description": "Or its JWKS endpoint, for an API that runs apart from the auth server. Needs `issuer`.",
3200
3200
  "anyOf": [
3201
3201
  {
3202
3202
  "type": "string"
@@ -3491,13 +3491,13 @@
3491
3491
  "bigint",
3492
3492
  "boolean",
3493
3493
  "uuid",
3494
+ "date",
3495
+ "json",
3494
3496
  "text",
3495
3497
  "integer",
3496
3498
  "decimal",
3497
- "date",
3498
3499
  "timestamp",
3499
3500
  "enum",
3500
- "json",
3501
3501
  "currency",
3502
3502
  "country"
3503
3503
  ]
@@ -3513,13 +3513,13 @@
3513
3513
  "bigint",
3514
3514
  "boolean",
3515
3515
  "uuid",
3516
+ "date",
3517
+ "json",
3516
3518
  "text",
3517
3519
  "integer",
3518
3520
  "decimal",
3519
- "date",
3520
3521
  "timestamp",
3521
3522
  "enum",
3522
- "json",
3523
3523
  "currency",
3524
3524
  "country"
3525
3525
  ]