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

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
+ }
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.2",
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: "1f74d4e07311496f0acc021855137bc197d79eab",
16186
16186
  types: "./dist/index.d.ts"
16187
16187
  };
16188
16188
 
@@ -16287,8 +16287,11 @@ 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",
16292
16295
  "@sockethub/platform-xmpp"
16293
16296
  ]
16294
16297
  },
@@ -16304,7 +16307,8 @@ var SockethubConfigSchema = {
16304
16307
  connectTimeoutMs: { type: "integer", minimum: 1 },
16305
16308
  allowPrivateAddresses: { type: "boolean" },
16306
16309
  allowInsecureHttp: { type: "boolean" },
16307
- concurrency: { type: "integer", minimum: 1 }
16310
+ concurrency: { type: "integer", minimum: 1 },
16311
+ discoveryCacheTtlMs: { type: "integer", minimum: 0 }
16308
16312
  }
16309
16313
  },
16310
16314
  "@sockethub/platform-caldav": {
@@ -16314,7 +16318,20 @@ var SockethubConfigSchema = {
16314
16318
  connectTimeoutMs: { type: "integer", minimum: 1 },
16315
16319
  allowPrivateAddresses: { type: "boolean" },
16316
16320
  allowInsecureHttp: { type: "boolean" },
16317
- concurrency: { type: "integer", minimum: 1 }
16321
+ concurrency: { type: "integer", minimum: 1 },
16322
+ discoveryCacheTtlMs: { type: "integer", minimum: 0 }
16323
+ }
16324
+ },
16325
+ "@sockethub/platform-email": {
16326
+ type: "object",
16327
+ additionalProperties: false,
16328
+ properties: {
16329
+ connectTimeoutMs: {
16330
+ type: "integer",
16331
+ minimum: 5000,
16332
+ maximum: 120000
16333
+ },
16334
+ allowPrivateAddresses: { type: "boolean" }
16318
16335
  }
16319
16336
  },
16320
16337
  "@sockethub/platform-dummy": {
@@ -16337,7 +16354,8 @@ var SockethubConfigSchema = {
16337
16354
  type: "object",
16338
16355
  additionalProperties: false,
16339
16356
  properties: {
16340
- connectTimeoutMs: { type: "number" }
16357
+ connectTimeoutMs: { type: "number" },
16358
+ allowPrivateAddresses: { type: "boolean" }
16341
16359
  }
16342
16360
  },
16343
16361
  "@sockethub/platform-xmpp": {
@@ -16447,6 +16465,12 @@ var SockethubConfigSchema = {
16447
16465
  default: 20,
16448
16466
  description: "Maximum persistent instances per client IP, including HTTP actions. 0 disables the cap."
16449
16467
  },
16468
+ maxStartsPerIpPerMinute: {
16469
+ type: "integer",
16470
+ minimum: 0,
16471
+ default: 60,
16472
+ 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."
16473
+ },
16450
16474
  maxPlatformInstances: {
16451
16475
  type: "number",
16452
16476
  minimum: 0,
@@ -17084,9 +17108,8 @@ function addPlatformSchema(schema, platform_type) {
17084
17108
  return;
17085
17109
  }
17086
17110
  const schemaRef = `${schemaURL}/context/${platform_type}`;
17087
- if (!instance.getSchema(schemaRef)) {
17088
- instance.addSchema(schema, schemaRef);
17089
- }
17111
+ instance.removeSchema(schemaRef);
17112
+ instance.addSchema(schema, schemaRef);
17090
17113
  }
17091
17114
  function getPlatformSchema(platform_type) {
17092
17115
  return getAjv()?.getSchema(`${schemaURL}/context/${platform_type}`);
@@ -17167,4 +17190,4 @@ export {
17167
17190
  validateSockethubConfig
17168
17191
  };
17169
17192
 
17170
- //# debugId=835ED6EDFB33FD9B64756E2164756E21
17193
+ //# debugId=A3B598B447DA32C764756E2164756E21