@sockethub/schemas 3.0.0-beta.1 → 3.0.0-beta.3

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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "@context": {
3
+ "as": "https://www.w3.org/ns/activitystreams#",
4
+ "sh": "https://sockethub.org/ns#",
5
+ "platform": "sh:platform",
6
+ "emailType": "sh:emailType"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@context": {
3
+ "as": "https://www.w3.org/ns/activitystreams#",
4
+ "sh": "https://sockethub.org/ns#",
5
+ "platform": "sh:platform",
6
+ "instagramType": "sh:instagramType"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@context": {
3
+ "as": "https://www.w3.org/ns/activitystreams#",
4
+ "sh": "https://sockethub.org/ns#",
5
+ "platform": "sh:platform",
6
+ "messengerType": "sh:messengerType"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "@context": {
3
+ "as": "https://www.w3.org/ns/activitystreams#",
4
+ "sh": "https://sockethub.org/ns#",
5
+ "platform": "sh:platform",
6
+ "whatsappType": "sh:whatsappType"
7
+ }
8
+ }
package/dist/index.js CHANGED
@@ -16112,7 +16112,7 @@ var PlatformSchema = {
16112
16112
  var package_default = {
16113
16113
  name: "@sockethub/schemas",
16114
16114
  description: "JSON schema files for validating Sockethub Activity Streams",
16115
- version: "3.0.0-beta.1",
16115
+ version: "3.0.0-beta.3",
16116
16116
  type: "module",
16117
16117
  private: false,
16118
16118
  author: "Nick Jennings <nick@silverbucket.net>",
@@ -16182,7 +16182,7 @@ var package_default = {
16182
16182
  "ajv-formats": "^2.1.1",
16183
16183
  "ajv-formats-draft2019": "^1.6.1"
16184
16184
  },
16185
- gitHead: "06c9062f1cb5f0c0599fd979e6e91da79f08eda0",
16185
+ gitHead: "bc04522d60d1e2fa1b3098b339897de62c3b0549",
16186
16186
  types: "./dist/index.d.ts"
16187
16187
  };
16188
16188
 
@@ -16287,8 +16287,12 @@ var SockethubConfigSchema = {
16287
16287
  "@sockethub/platform-caldav",
16288
16288
  "@sockethub/platform-dummy",
16289
16289
  "@sockethub/platform-feeds",
16290
+ "@sockethub/platform-email",
16290
16291
  "@sockethub/platform-irc",
16291
16292
  "@sockethub/platform-metadata",
16293
+ "@sockethub/platform-messenger",
16294
+ "@sockethub/platform-instagram",
16295
+ "@sockethub/platform-whatsapp",
16292
16296
  "@sockethub/platform-xmpp"
16293
16297
  ]
16294
16298
  },
@@ -16304,7 +16308,8 @@ var SockethubConfigSchema = {
16304
16308
  connectTimeoutMs: { type: "integer", minimum: 1 },
16305
16309
  allowPrivateAddresses: { type: "boolean" },
16306
16310
  allowInsecureHttp: { type: "boolean" },
16307
- concurrency: { type: "integer", minimum: 1 }
16311
+ concurrency: { type: "integer", minimum: 1 },
16312
+ discoveryCacheTtlMs: { type: "integer", minimum: 0 }
16308
16313
  }
16309
16314
  },
16310
16315
  "@sockethub/platform-caldav": {
@@ -16314,7 +16319,20 @@ var SockethubConfigSchema = {
16314
16319
  connectTimeoutMs: { type: "integer", minimum: 1 },
16315
16320
  allowPrivateAddresses: { type: "boolean" },
16316
16321
  allowInsecureHttp: { type: "boolean" },
16317
- concurrency: { type: "integer", minimum: 1 }
16322
+ concurrency: { type: "integer", minimum: 1 },
16323
+ discoveryCacheTtlMs: { type: "integer", minimum: 0 }
16324
+ }
16325
+ },
16326
+ "@sockethub/platform-email": {
16327
+ type: "object",
16328
+ additionalProperties: false,
16329
+ properties: {
16330
+ connectTimeoutMs: {
16331
+ type: "integer",
16332
+ minimum: 5000,
16333
+ maximum: 120000
16334
+ },
16335
+ allowPrivateAddresses: { type: "boolean" }
16318
16336
  }
16319
16337
  },
16320
16338
  "@sockethub/platform-dummy": {
@@ -16337,7 +16355,8 @@ var SockethubConfigSchema = {
16337
16355
  type: "object",
16338
16356
  additionalProperties: false,
16339
16357
  properties: {
16340
- connectTimeoutMs: { type: "number" }
16358
+ connectTimeoutMs: { type: "number" },
16359
+ allowPrivateAddresses: { type: "boolean" }
16341
16360
  }
16342
16361
  },
16343
16362
  "@sockethub/platform-xmpp": {
@@ -16447,6 +16466,12 @@ var SockethubConfigSchema = {
16447
16466
  default: 20,
16448
16467
  description: "Maximum persistent instances per client IP, including HTTP actions. 0 disables the cap."
16449
16468
  },
16469
+ maxStartsPerIpPerMinute: {
16470
+ type: "integer",
16471
+ minimum: 0,
16472
+ default: 60,
16473
+ description: "Maximum new persistent instances a client IP may start per minute, " + "including HTTP actions. Bounds fork/teardown churn that the " + "concurrent caps allow. Reusing a running instance does not count. " + "0 disables the cap."
16474
+ },
16450
16475
  maxPlatformInstances: {
16451
16476
  type: "number",
16452
16477
  minimum: 0,
@@ -17084,9 +17109,8 @@ function addPlatformSchema(schema, platform_type) {
17084
17109
  return;
17085
17110
  }
17086
17111
  const schemaRef = `${schemaURL}/context/${platform_type}`;
17087
- if (!instance.getSchema(schemaRef)) {
17088
- instance.addSchema(schema, schemaRef);
17089
- }
17112
+ instance.removeSchema(schemaRef);
17113
+ instance.addSchema(schema, schemaRef);
17090
17114
  }
17091
17115
  function getPlatformSchema(platform_type) {
17092
17116
  return getAjv()?.getSchema(`${schemaURL}/context/${platform_type}`);
@@ -17167,4 +17191,4 @@ export {
17167
17191
  validateSockethubConfig
17168
17192
  };
17169
17193
 
17170
- //# debugId=835ED6EDFB33FD9B64756E2164756E21
17194
+ //# debugId=5BBCC3AEF9A139F064756E2164756E21