@sockethub/platform-xmpp 5.0.0-alpha.15 → 5.0.0-alpha.17

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.17",
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: "578a6432b9f09a8484832a7ff3e157c1d3898a7e",
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,7 +28365,9 @@ var SockethubConfigSchema = {
28290
28365
  items: {
28291
28366
  type: "string"
28292
28367
  },
28368
+ description: "Platform packages to load",
28293
28369
  default: [
28370
+ "@sockethub/platform-caldav",
28294
28371
  "@sockethub/platform-dummy",
28295
28372
  "@sockethub/platform-feeds",
28296
28373
  "@sockethub/platform-irc",
@@ -28300,7 +28377,19 @@ var SockethubConfigSchema = {
28300
28377
  },
28301
28378
  packageConfig: {
28302
28379
  type: "object",
28380
+ default: {},
28381
+ description: "Per-platform config keyed by package name, validated against " + "each platform's config schema and forwarded to its child process",
28303
28382
  properties: {
28383
+ "@sockethub/platform-caldav": {
28384
+ type: "object",
28385
+ additionalProperties: false,
28386
+ properties: {
28387
+ connectTimeoutMs: { type: "integer", minimum: 1 },
28388
+ allowPrivateAddresses: { type: "boolean" },
28389
+ allowInsecureHttp: { type: "boolean" },
28390
+ concurrency: { type: "integer", minimum: 1 }
28391
+ }
28392
+ },
28304
28393
  "@sockethub/platform-dummy": {
28305
28394
  type: "object",
28306
28395
  additionalProperties: false,
@@ -28409,7 +28498,8 @@ var SockethubConfigSchema = {
28409
28498
  maxConnectionsPerIp: {
28410
28499
  type: "number",
28411
28500
  minimum: 0,
28412
- default: 0
28501
+ default: 0,
28502
+ 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
28503
  }
28414
28504
  }
28415
28505
  },
@@ -28420,7 +28510,8 @@ var SockethubConfigSchema = {
28420
28510
  maxPlatformInstances: {
28421
28511
  type: "number",
28422
28512
  minimum: 0,
28423
- default: 0
28513
+ default: 0,
28514
+ 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
28515
  }
28425
28516
  }
28426
28517
  },
@@ -28485,7 +28576,8 @@ var SockethubConfigSchema = {
28485
28576
  properties: {
28486
28577
  origin: {
28487
28578
  type: "string",
28488
- default: "*"
28579
+ default: "*",
28580
+ 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
28581
  }
28490
28582
  }
28491
28583
  }
@@ -28497,7 +28589,8 @@ var SockethubConfigSchema = {
28497
28589
  properties: {
28498
28590
  enabled: {
28499
28591
  type: "boolean",
28500
- default: false
28592
+ default: false,
28593
+ description: "Enable the HTTP actions endpoint"
28501
28594
  },
28502
28595
  path: {
28503
28596
  type: "string",
@@ -28550,6 +28643,7 @@ var SockethubConfigSchema = {
28550
28643
  }
28551
28644
  }
28552
28645
  };
28646
+ var SockethubConfigSchemaId = versionedSchemaId(SockethubConfigSchema.$id, package_default.version);
28553
28647
 
28554
28648
  // ../schemas/src/validator.ts
28555
28649
  var import_ajv = __toESM(require_ajv(), 1);
@@ -28674,10 +28768,10 @@ function client(options = {}) {
28674
28768
  var $xml = xml;
28675
28769
  var $client = client;
28676
28770
  // package.json
28677
- var package_default = {
28771
+ var package_default2 = {
28678
28772
  name: "@sockethub/platform-xmpp",
28679
28773
  description: "A sockethub platform module implementing XMPP functionality",
28680
- version: "5.0.0-alpha.15",
28774
+ version: "5.0.0-alpha.17",
28681
28775
  private: false,
28682
28776
  type: "module",
28683
28777
  author: "Nick Jennings <nick@silverbucket.net>",
@@ -28721,11 +28815,11 @@ var package_default = {
28721
28815
  doc: "typedoc --options typedoc.json"
28722
28816
  },
28723
28817
  dependencies: {
28724
- "@sockethub/util": "^1.0.0-alpha.3",
28818
+ "@sockethub/util": "^1.0.0-alpha.5",
28725
28819
  "@xmpp/client": "^0.13.6"
28726
28820
  },
28727
28821
  devDependencies: {
28728
- "@sockethub/schemas": "^3.0.0-alpha.15",
28822
+ "@sockethub/schemas": "^3.0.0-alpha.17",
28729
28823
  "@types/bun": "latest",
28730
28824
  "@xmpp/xml": "^0.13.2",
28731
28825
  ajv: "^8.17.1",
@@ -28733,21 +28827,21 @@ var package_default = {
28733
28827
  typedoc: "^0.28.14"
28734
28828
  },
28735
28829
  peerDependencies: {
28736
- "@sockethub/server": "^5.0.0-alpha.15"
28830
+ "@sockethub/server": "^5.0.0-alpha.17"
28737
28831
  },
28738
28832
  peerDependenciesMeta: {
28739
28833
  "@sockethub/server": {
28740
28834
  optional: true
28741
28835
  }
28742
28836
  },
28743
- gitHead: "7f85c0aa1c317b56336af4149b29dc78afc5f2bd",
28837
+ gitHead: "578a6432b9f09a8484832a7ff3e157c1d3898a7e",
28744
28838
  types: "./dist/index.d.ts"
28745
28839
  };
28746
28840
 
28747
28841
  // src/schema.ts
28748
28842
  var PlatformSchema2 = {
28749
28843
  name: "xmpp",
28750
- version: package_default.version,
28844
+ version: package_default2.version,
28751
28845
  contextUrl: "https://sockethub.org/ns/context/platform/xmpp/v1.jsonld",
28752
28846
  contextVersion: "1",
28753
28847
  schemaVersion: "1",
@@ -29838,4 +29932,4 @@ export {
29838
29932
  XMPP as default
29839
29933
  };
29840
29934
 
29841
- //# debugId=E512B2368A37817464756E2164756E21
29935
+ //# debugId=D7CC6B736E60A09064756E2164756E21