@appweaver/cli 1.4.0 → 1.4.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.
- package/generate/generate-types.js +7 -0
- package/package.json +1 -1
- package/skill/references/configuration.md +6 -5
- package/skill/references/resources.md +1478 -1424
|
@@ -106,6 +106,13 @@ function transformUnsafeTypes(schema) {
|
|
|
106
106
|
if (field.nullable === true) {
|
|
107
107
|
properties[name] = (0, common_1.NullType)(properties[name]);
|
|
108
108
|
}
|
|
109
|
+
// A nullable model reference points at the nullable variant of that model,
|
|
110
|
+
// a schema of its own the response serializer can expand once. The type is
|
|
111
|
+
// written as the union it stands for instead.
|
|
112
|
+
const nullableRef = field.$ref?.match(/^(.+Single)Nullable$/)?.[1];
|
|
113
|
+
if (nullableRef) {
|
|
114
|
+
properties[name] = (0, common_1.NullType)(typebox_1.Type.Ref(nullableRef));
|
|
115
|
+
}
|
|
109
116
|
}
|
|
110
117
|
return typebox_1.Type.Object(properties, { ...schema });
|
|
111
118
|
}
|
package/package.json
CHANGED
|
@@ -99,6 +99,7 @@ The config object is frozen with `Object.freeze()` after loading to prevent runt
|
|
|
99
99
|
| `LOG_ROTATE_INTERVAL` | string | `'1d'` | Rotation interval (e.g. `'1d'` for daily). |
|
|
100
100
|
| `LOG_ROTATE_COMPRESS` | boolean | `true` | Compress rotated log files with gzip. |
|
|
101
101
|
| `LOG_PRETTY` | boolean | `false` | Enable pretty-printed JSON logs. |
|
|
102
|
+
| `LOG_SYNC` | boolean | `false` | Write each record before the next statement runs, instead of buffering it. |
|
|
102
103
|
|
|
103
104
|
### Server (SERVER\_\*)
|
|
104
105
|
|
|
@@ -256,12 +257,12 @@ The config object is frozen with `Object.freeze()` after loading to prevent runt
|
|
|
256
257
|
|
|
257
258
|
#### OAuth2 general
|
|
258
259
|
|
|
259
|
-
| Property | Type | Default | Description
|
|
260
|
-
|
|
261
|
-
| `SECURITY_OAUTH2_STATE_TTL` | integer | `600000` | OAuth2 state parameter TTL in milliseconds (default 10 min).
|
|
262
|
-
| `SECURITY_OAUTH2_REGISTRATION_ENABLED` | boolean | `true` | Allow registering new users via OAuth2 login. When `false`, only already existing users (matched by email) can log in via OAuth2.
|
|
260
|
+
| Property | Type | Default | Description |
|
|
261
|
+
|----------------------------------------------------------|---------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
262
|
+
| `SECURITY_OAUTH2_STATE_TTL` | integer | `600000` | OAuth2 state parameter TTL in milliseconds (default 10 min). |
|
|
263
|
+
| `SECURITY_OAUTH2_REGISTRATION_ENABLED` | boolean | `true` | Allow registering new users via OAuth2 login. When `false`, only already existing users (matched by email) can log in via OAuth2. |
|
|
263
264
|
| `SECURITY_OAUTH2_FETCH_AVATAR_ENABLED` | boolean | `true` | Download the user's avatar from the OAuth2 provider during registration and pass it as `avatarFile` to `registrationData` and `registrationFiles`. Set to `false` to pass only `avatarUrl` and skip the download. |
|
|
264
|
-
| `SECURITY_OAUTH2_CONNECTED_ACCOUNTS_KEEP_DATABASE_TABLE` | boolean | `false` | Keep the `ConnectedAccount` table even when every OAuth2 provider is disabled, so the links are not dropped by the next migration.
|
|
265
|
+
| `SECURITY_OAUTH2_CONNECTED_ACCOUNTS_KEEP_DATABASE_TABLE` | boolean | `false` | Keep the `ConnectedAccount` table even when every OAuth2 provider is disabled, so the links are not dropped by the next migration. |
|
|
265
266
|
|
|
266
267
|
#### OAuth2 Google
|
|
267
268
|
|