@sockethub/schemas 3.0.0-alpha.21 → 3.0.0-alpha.22

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "schemaVersion": "3.0.0-alpha.21",
3
- "generatedAt": "2026-08-21T08:37:52.092Z",
2
+ "schemaVersion": "3.0.0-alpha.22",
3
+ "generatedAt": "2026-08-21T12:35:54.404Z",
4
4
  "contextToPlatformId": {
5
5
  "https://sockethub.org/ns/context/platform/caldav/v1.jsonld": "caldav",
6
6
  "https://sockethub.org/ns/context/platform/carddav/v1.jsonld": "carddav",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://sockethub.org/schemas/3.0.0-alpha.21/activity-stream.json",
2
+ "$id": "https://sockethub.org/schemas/3.0.0-alpha.22/activity-stream.json",
3
3
  "description": "Schema for Sockethub Activity Streams",
4
4
  "type": "object",
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://sockethub.org/schemas/3.0.0-alpha.21/examples-config.json",
2
+ "$id": "https://sockethub.org/schemas/3.0.0-alpha.22/examples-config.json",
3
3
  "description": "Sockethub examples runtime configuration",
4
4
  "type": "object",
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://sockethub.org/schemas/3.0.0-alpha.21/platform.json",
2
+ "$id": "https://sockethub.org/schemas/3.0.0-alpha.22/platform.json",
3
3
  "type": "object",
4
4
  "required": [
5
5
  "name",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://sockethub.org/schemas/3.0.0-alpha.21/sockethub-config.json",
2
+ "$id": "https://sockethub.org/schemas/3.0.0-alpha.22/sockethub-config.json",
3
3
  "description": "Sockethub Config Schema",
4
4
  "type": "object",
5
5
  "required": [
@@ -366,6 +366,15 @@
366
366
  "default": 262144,
367
367
  "description": "Maximum size in bytes of a single Socket.IO message."
368
368
  },
369
+ "trustProxy": {
370
+ "type": [
371
+ "boolean",
372
+ "number",
373
+ "string"
374
+ ],
375
+ "default": false,
376
+ "description": "Express 'trust proxy' setting, deciding whether 'x-forwarded-for' is believed when determining a client's IP for HTTP rate limiting. false trusts no proxy; a number trusts that many hops; a string takes an address, subnet or preset ('loopback'). Only enable behind a reverse proxy that overwrites the header. When left false while credentialCheck.reconnectIpSource is 'proxy' and credentialCheck.proxyHeader is 'x-forwarded-for', one hop is trusted so both paths agree; a custom proxyHeader requires setting this explicitly."
377
+ },
369
378
  "cors": {
370
379
  "type": "object",
371
380
  "additionalProperties": false,
@@ -332,6 +332,11 @@ export declare const SockethubConfigSchema: {
332
332
  default: number;
333
333
  description: string;
334
334
  };
335
+ trustProxy: {
336
+ type: string[];
337
+ default: boolean;
338
+ description: string;
339
+ };
335
340
  cors: {
336
341
  type: string;
337
342
  additionalProperties: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sockethub/schemas",
3
3
  "description": "JSON schema files for validating Sockethub Activity Streams",
4
- "version": "3.0.0-alpha.21",
4
+ "version": "3.0.0-alpha.22",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "author": "Nick Jennings <nick@silverbucket.net>",
@@ -71,6 +71,6 @@
71
71
  "ajv-formats": "^2.1.1",
72
72
  "ajv-formats-draft2019": "^1.6.1"
73
73
  },
74
- "gitHead": "1d87ef9d415159ef624e86e929ef2a2fb7a4b50e",
74
+ "gitHead": "643a19160301186e428add63a79ae42ee26e8844",
75
75
  "types": "./dist/index.d.ts"
76
76
  }