@sockethub/platform-xmpp 5.0.0-alpha.14 → 5.0.0-alpha.16

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/dist/index.js CHANGED
@@ -28245,6 +28245,79 @@ var ActivityStreamSchema = {
28245
28245
  type: ObjectTypesSchema
28246
28246
  }
28247
28247
  };
28248
+ // ../schemas/package.json
28249
+ var package_default = {
28250
+ name: "@sockethub/schemas",
28251
+ description: "JSON schema files for validating Sockethub Activity Streams",
28252
+ version: "3.0.0-alpha.16",
28253
+ type: "module",
28254
+ private: false,
28255
+ author: "Nick Jennings <nick@silverbucket.net>",
28256
+ license: "MIT",
28257
+ publishConfig: {
28258
+ access: "public"
28259
+ },
28260
+ main: "dist/index.js",
28261
+ exports: {
28262
+ ".": {
28263
+ types: "./dist/index.d.ts",
28264
+ import: "./dist/index.js",
28265
+ default: "./dist/index.js"
28266
+ },
28267
+ "./context": {
28268
+ types: "./dist/context.d.ts",
28269
+ import: "./dist/context.js",
28270
+ default: "./dist/context.js"
28271
+ },
28272
+ "./object-types": {
28273
+ types: "./dist/object-types.d.ts",
28274
+ import: "./dist/object-types.js",
28275
+ default: "./dist/object-types.js"
28276
+ },
28277
+ "./schemas/json/sockethub-config.json": {
28278
+ default: "./dist/schemas/json/sockethub-config.json"
28279
+ }
28280
+ },
28281
+ files: [
28282
+ "dist/"
28283
+ ],
28284
+ engines: {
28285
+ node: ">=20"
28286
+ },
28287
+ keywords: [
28288
+ "sockethub",
28289
+ "sockethub schema",
28290
+ "activity streams",
28291
+ "activity objects",
28292
+ "sockethub platforms"
28293
+ ],
28294
+ repository: {
28295
+ type: "git",
28296
+ url: "git+https://github.com/sockethub/sockethub.git",
28297
+ directory: "packages/schemas"
28298
+ },
28299
+ homepage: "https://github.com/sockethub/sockethub/tree/master/packages/schemas",
28300
+ devDependencies: {
28301
+ "@types/bun": "latest"
28302
+ },
28303
+ scripts: {
28304
+ build: "bun ./scripts/export-json-schema.ts && bun ./scripts/export-canonical-assets.ts && bun build src/index.ts src/object-types.ts --outdir dist --target node --format esm --sourcemap=external && bun build src/context.ts src/activity-stream-helper.ts --outdir dist --target browser --format esm --sourcemap=external",
28305
+ clean: "rm -rf dist",
28306
+ "clean:deps": "rm -rf node_modules"
28307
+ },
28308
+ dependencies: {
28309
+ ajv: "^8.17.1",
28310
+ "ajv-formats": "^2.1.1",
28311
+ "ajv-formats-draft2019": "^1.6.1"
28312
+ },
28313
+ gitHead: "1a1a01ffe7b9d356aacfc4ae583d553e5df6f97d",
28314
+ types: "./dist/index.d.ts"
28315
+ };
28316
+
28317
+ // ../schemas/src/schema-id.ts
28318
+ function versionedSchemaId(id, version) {
28319
+ return id.replace("/v/", `/${version}/`);
28320
+ }
28248
28321
 
28249
28322
  // ../schemas/src/schemas/sockethub-config.ts
28250
28323
  var SockethubConfigSchema = {
@@ -28259,11 +28332,13 @@ var SockethubConfigSchema = {
28259
28332
  },
28260
28333
  examples: {
28261
28334
  type: "boolean",
28262
- default: true
28335
+ default: true,
28336
+ description: "Enable the examples pages served at [host]:[port]/examples"
28263
28337
  },
28264
28338
  info: {
28265
28339
  type: "boolean",
28266
- default: false
28340
+ default: false,
28341
+ description: "Display Sockethub runtime information"
28267
28342
  },
28268
28343
  logging: {
28269
28344
  type: "object",
@@ -28290,6 +28365,7 @@ var SockethubConfigSchema = {
28290
28365
  items: {
28291
28366
  type: "string"
28292
28367
  },
28368
+ description: "Platform packages to load",
28293
28369
  default: [
28294
28370
  "@sockethub/platform-dummy",
28295
28371
  "@sockethub/platform-feeds",
@@ -28300,6 +28376,8 @@ var SockethubConfigSchema = {
28300
28376
  },
28301
28377
  packageConfig: {
28302
28378
  type: "object",
28379
+ default: {},
28380
+ description: "Per-platform config keyed by package name, validated against " + "each platform's config schema and forwarded to its child process",
28303
28381
  properties: {
28304
28382
  "@sockethub/platform-dummy": {
28305
28383
  type: "object",
@@ -28409,7 +28487,8 @@ var SockethubConfigSchema = {
28409
28487
  maxConnectionsPerIp: {
28410
28488
  type: "number",
28411
28489
  minimum: 0,
28412
- default: 0
28490
+ default: 0,
28491
+ description: "Maximum concurrent socket connections per client IP. " + "The per-event rate limiter is keyed by socket id, so " + "without a connection cap a client can bypass it by " + "opening more sockets. 0 disables the cap."
28413
28492
  }
28414
28493
  }
28415
28494
  },
@@ -28420,7 +28499,8 @@ var SockethubConfigSchema = {
28420
28499
  maxPlatformInstances: {
28421
28500
  type: "number",
28422
28501
  minimum: 0,
28423
- default: 0
28502
+ default: 0,
28503
+ description: "Upper bound on concurrently running platform instances " + "(child processes). Each persistent-platform actor forks " + "its own process, so an unbounded count is a resource " + "exhaustion risk on public instances. 0 disables the cap."
28424
28504
  }
28425
28505
  }
28426
28506
  },
@@ -28485,7 +28565,8 @@ var SockethubConfigSchema = {
28485
28565
  properties: {
28486
28566
  origin: {
28487
28567
  type: "string",
28488
- default: "*"
28568
+ default: "*",
28569
+ description: "Allowed CORS origin(s) for socket.io connections " + "and the HTTP actions endpoint. '*' allows any " + "website to connect visitors' browsers to this " + "instance; public deployments should set an " + "explicit origin or comma-separated list of " + "origins."
28489
28570
  }
28490
28571
  }
28491
28572
  }
@@ -28497,7 +28578,8 @@ var SockethubConfigSchema = {
28497
28578
  properties: {
28498
28579
  enabled: {
28499
28580
  type: "boolean",
28500
- default: false
28581
+ default: false,
28582
+ description: "Enable the HTTP actions endpoint"
28501
28583
  },
28502
28584
  path: {
28503
28585
  type: "string",
@@ -28550,6 +28632,7 @@ var SockethubConfigSchema = {
28550
28632
  }
28551
28633
  }
28552
28634
  };
28635
+ var SockethubConfigSchemaId = versionedSchemaId(SockethubConfigSchema.$id, package_default.version);
28553
28636
 
28554
28637
  // ../schemas/src/validator.ts
28555
28638
  var import_ajv = __toESM(require_ajv(), 1);
@@ -28674,10 +28757,10 @@ function client(options = {}) {
28674
28757
  var $xml = xml;
28675
28758
  var $client = client;
28676
28759
  // package.json
28677
- var package_default = {
28760
+ var package_default2 = {
28678
28761
  name: "@sockethub/platform-xmpp",
28679
28762
  description: "A sockethub platform module implementing XMPP functionality",
28680
- version: "5.0.0-alpha.14",
28763
+ version: "5.0.0-alpha.16",
28681
28764
  private: false,
28682
28765
  type: "module",
28683
28766
  author: "Nick Jennings <nick@silverbucket.net>",
@@ -28721,11 +28804,11 @@ var package_default = {
28721
28804
  doc: "typedoc --options typedoc.json"
28722
28805
  },
28723
28806
  dependencies: {
28724
- "@sockethub/util": "^1.0.0-alpha.2",
28807
+ "@sockethub/util": "^1.0.0-alpha.4",
28725
28808
  "@xmpp/client": "^0.13.6"
28726
28809
  },
28727
28810
  devDependencies: {
28728
- "@sockethub/schemas": "^3.0.0-alpha.14",
28811
+ "@sockethub/schemas": "^3.0.0-alpha.16",
28729
28812
  "@types/bun": "latest",
28730
28813
  "@xmpp/xml": "^0.13.2",
28731
28814
  ajv: "^8.17.1",
@@ -28733,21 +28816,21 @@ var package_default = {
28733
28816
  typedoc: "^0.28.14"
28734
28817
  },
28735
28818
  peerDependencies: {
28736
- "@sockethub/server": "^5.0.0-alpha.14"
28819
+ "@sockethub/server": "^5.0.0-alpha.16"
28737
28820
  },
28738
28821
  peerDependenciesMeta: {
28739
28822
  "@sockethub/server": {
28740
28823
  optional: true
28741
28824
  }
28742
28825
  },
28743
- gitHead: "4bc8ffa00d29aa78e59e269ac6e5ea9859ec01a8",
28826
+ gitHead: "1a1a01ffe7b9d356aacfc4ae583d553e5df6f97d",
28744
28827
  types: "./dist/index.d.ts"
28745
28828
  };
28746
28829
 
28747
28830
  // src/schema.ts
28748
28831
  var PlatformSchema2 = {
28749
28832
  name: "xmpp",
28750
- version: package_default.version,
28833
+ version: package_default2.version,
28751
28834
  contextUrl: "https://sockethub.org/ns/context/platform/xmpp/v1.jsonld",
28752
28835
  contextVersion: "1",
28753
28836
  schemaVersion: "1",
@@ -29838,4 +29921,4 @@ export {
29838
29921
  XMPP as default
29839
29922
  };
29840
29923
 
29841
- //# debugId=6CA5F545251D678F64756E2164756E21
29924
+ //# debugId=3E0BE69AF980DCC964756E2164756E21