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

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
@@ -28246,6 +28246,311 @@ var ActivityStreamSchema = {
28246
28246
  }
28247
28247
  };
28248
28248
 
28249
+ // ../schemas/src/schemas/sockethub-config.ts
28250
+ var SockethubConfigSchema = {
28251
+ $id: "https://sockethub.org/schemas/v/sockethub-config.json",
28252
+ description: "Sockethub Config Schema",
28253
+ type: "object",
28254
+ required: ["platforms"],
28255
+ additionalProperties: false,
28256
+ properties: {
28257
+ $schema: {
28258
+ type: "string"
28259
+ },
28260
+ examples: {
28261
+ type: "boolean",
28262
+ default: true
28263
+ },
28264
+ info: {
28265
+ type: "boolean",
28266
+ default: false
28267
+ },
28268
+ logging: {
28269
+ type: "object",
28270
+ additionalProperties: false,
28271
+ properties: {
28272
+ level: {
28273
+ type: "string",
28274
+ enum: ["error", "warn", "info", "debug"],
28275
+ default: "info"
28276
+ },
28277
+ fileLevel: {
28278
+ type: "string",
28279
+ enum: ["error", "warn", "info", "debug"],
28280
+ default: "debug"
28281
+ },
28282
+ file: {
28283
+ type: "string",
28284
+ default: "sockethub.log"
28285
+ }
28286
+ }
28287
+ },
28288
+ platforms: {
28289
+ type: "array",
28290
+ items: {
28291
+ type: "string"
28292
+ },
28293
+ default: [
28294
+ "@sockethub/platform-dummy",
28295
+ "@sockethub/platform-feeds",
28296
+ "@sockethub/platform-irc",
28297
+ "@sockethub/platform-metadata",
28298
+ "@sockethub/platform-xmpp"
28299
+ ]
28300
+ },
28301
+ packageConfig: {
28302
+ type: "object",
28303
+ properties: {
28304
+ "@sockethub/platform-dummy": {
28305
+ type: "object",
28306
+ additionalProperties: false,
28307
+ properties: {
28308
+ greeting: { type: "string", default: "Hello" }
28309
+ }
28310
+ },
28311
+ "@sockethub/platform-feeds": {
28312
+ type: "object",
28313
+ additionalProperties: false,
28314
+ properties: {
28315
+ connectTimeoutMs: { type: "number" },
28316
+ allowPrivateAddresses: { type: "boolean" },
28317
+ concurrency: { type: "integer", minimum: 1 }
28318
+ }
28319
+ },
28320
+ "@sockethub/platform-irc": {
28321
+ type: "object",
28322
+ additionalProperties: false,
28323
+ properties: {
28324
+ connectTimeoutMs: { type: "number" }
28325
+ }
28326
+ },
28327
+ "@sockethub/platform-xmpp": {
28328
+ type: "object",
28329
+ additionalProperties: false,
28330
+ properties: {
28331
+ connectTimeoutMs: { type: "number" }
28332
+ }
28333
+ },
28334
+ "@sockethub/platform-metadata": {
28335
+ type: "object",
28336
+ additionalProperties: false,
28337
+ properties: {
28338
+ allowPrivateAddresses: { type: "boolean" },
28339
+ concurrency: { type: "integer", minimum: 1 }
28340
+ }
28341
+ }
28342
+ }
28343
+ },
28344
+ credentials: {
28345
+ type: "object",
28346
+ additionalProperties: false,
28347
+ properties: {
28348
+ ttlMs: {
28349
+ type: "number",
28350
+ minimum: 0,
28351
+ default: 604800000,
28352
+ description: "Sliding TTL in milliseconds for per-session encrypted " + "credential keys in Redis, refreshed on every save and " + "read. A backstop against keys orphaned by crashes; " + "sessions normally delete their key on disconnect. " + "Size generously — idle sessions do not refresh it. " + "0 disables expiry."
28353
+ }
28354
+ }
28355
+ },
28356
+ credentialCheck: {
28357
+ type: "object",
28358
+ additionalProperties: false,
28359
+ properties: {
28360
+ reconnectIpSource: {
28361
+ type: "string",
28362
+ enum: ["socket", "proxy"],
28363
+ default: "socket"
28364
+ },
28365
+ proxyHeader: {
28366
+ type: "string",
28367
+ default: "x-forwarded-for"
28368
+ }
28369
+ }
28370
+ },
28371
+ public: {
28372
+ type: "object",
28373
+ additionalProperties: false,
28374
+ properties: {
28375
+ protocol: {
28376
+ type: "string",
28377
+ default: "http"
28378
+ },
28379
+ host: {
28380
+ type: "string",
28381
+ default: "localhost"
28382
+ },
28383
+ port: {
28384
+ type: "number",
28385
+ default: 10550
28386
+ },
28387
+ path: {
28388
+ type: "string",
28389
+ default: "/"
28390
+ }
28391
+ }
28392
+ },
28393
+ rateLimiter: {
28394
+ type: "object",
28395
+ additionalProperties: false,
28396
+ properties: {
28397
+ windowMs: {
28398
+ type: "number",
28399
+ default: 1000
28400
+ },
28401
+ maxRequests: {
28402
+ type: "number",
28403
+ default: 100
28404
+ },
28405
+ blockDurationMs: {
28406
+ type: "number",
28407
+ default: 5000
28408
+ },
28409
+ maxConnectionsPerIp: {
28410
+ type: "number",
28411
+ minimum: 0,
28412
+ default: 0
28413
+ }
28414
+ }
28415
+ },
28416
+ limits: {
28417
+ type: "object",
28418
+ additionalProperties: false,
28419
+ properties: {
28420
+ maxPlatformInstances: {
28421
+ type: "number",
28422
+ minimum: 0,
28423
+ default: 0
28424
+ }
28425
+ }
28426
+ },
28427
+ redis: {
28428
+ type: "object",
28429
+ additionalProperties: false,
28430
+ properties: {
28431
+ url: {
28432
+ type: "string",
28433
+ default: "redis://127.0.0.1:6379"
28434
+ },
28435
+ connectTimeout: {
28436
+ type: "number",
28437
+ default: 1e4,
28438
+ description: "Connection timeout in milliseconds"
28439
+ },
28440
+ disconnectTimeout: {
28441
+ type: "number",
28442
+ default: 5000,
28443
+ description: "Disconnect timeout in milliseconds"
28444
+ },
28445
+ maxRetriesPerRequest: {
28446
+ type: ["number", "null"],
28447
+ default: null,
28448
+ description: "Maximum number of retries per request (null for BullMQ default)"
28449
+ }
28450
+ }
28451
+ },
28452
+ sentry: {
28453
+ type: "object",
28454
+ additionalProperties: false,
28455
+ properties: {
28456
+ dsn: {
28457
+ type: "string",
28458
+ default: ""
28459
+ },
28460
+ traceSampleRate: {
28461
+ type: "number",
28462
+ default: 1
28463
+ }
28464
+ }
28465
+ },
28466
+ sockethub: {
28467
+ type: "object",
28468
+ additionalProperties: false,
28469
+ properties: {
28470
+ port: {
28471
+ type: "number",
28472
+ default: 10550
28473
+ },
28474
+ host: {
28475
+ type: "string",
28476
+ default: "localhost"
28477
+ },
28478
+ path: {
28479
+ type: "string",
28480
+ default: "/sockethub"
28481
+ },
28482
+ cors: {
28483
+ type: "object",
28484
+ additionalProperties: false,
28485
+ properties: {
28486
+ origin: {
28487
+ type: "string",
28488
+ default: "*"
28489
+ }
28490
+ }
28491
+ }
28492
+ }
28493
+ },
28494
+ httpActions: {
28495
+ type: "object",
28496
+ additionalProperties: false,
28497
+ properties: {
28498
+ enabled: {
28499
+ type: "boolean",
28500
+ default: false
28501
+ },
28502
+ path: {
28503
+ type: "string",
28504
+ default: "/sockethub-http"
28505
+ },
28506
+ requireRequestId: {
28507
+ type: "boolean",
28508
+ default: true
28509
+ },
28510
+ maxMessagesPerRequest: {
28511
+ type: "number",
28512
+ minimum: 1,
28513
+ default: 20
28514
+ },
28515
+ maxPayloadBytes: {
28516
+ type: "number",
28517
+ minimum: 1,
28518
+ default: 262144
28519
+ },
28520
+ idempotencyTtlMs: {
28521
+ type: "number",
28522
+ minimum: 0,
28523
+ default: 300000
28524
+ },
28525
+ requestTimeoutMs: {
28526
+ type: "number",
28527
+ minimum: 0,
28528
+ default: 30000
28529
+ },
28530
+ idleTimeoutMs: {
28531
+ type: "number",
28532
+ minimum: 0,
28533
+ default: 15000
28534
+ }
28535
+ }
28536
+ },
28537
+ platformHeartbeat: {
28538
+ type: "object",
28539
+ additionalProperties: false,
28540
+ properties: {
28541
+ intervalMs: {
28542
+ type: "number",
28543
+ default: 5000
28544
+ },
28545
+ timeoutMs: {
28546
+ type: "number",
28547
+ default: 15000
28548
+ }
28549
+ }
28550
+ }
28551
+ }
28552
+ };
28553
+
28249
28554
  // ../schemas/src/validator.ts
28250
28555
  var import_ajv = __toESM(require_ajv(), 1);
28251
28556
  var import_ajv_formats = __toESM(require_dist(), 1);
@@ -28372,7 +28677,7 @@ var $client = client;
28372
28677
  var package_default = {
28373
28678
  name: "@sockethub/platform-xmpp",
28374
28679
  description: "A sockethub platform module implementing XMPP functionality",
28375
- version: "5.0.0-alpha.13",
28680
+ version: "5.0.0-alpha.14",
28376
28681
  private: false,
28377
28682
  type: "module",
28378
28683
  author: "Nick Jennings <nick@silverbucket.net>",
@@ -28416,11 +28721,11 @@ var package_default = {
28416
28721
  doc: "typedoc --options typedoc.json"
28417
28722
  },
28418
28723
  dependencies: {
28419
- "@sockethub/util": "^1.0.0-alpha.1",
28724
+ "@sockethub/util": "^1.0.0-alpha.2",
28420
28725
  "@xmpp/client": "^0.13.6"
28421
28726
  },
28422
28727
  devDependencies: {
28423
- "@sockethub/schemas": "^3.0.0-alpha.13",
28728
+ "@sockethub/schemas": "^3.0.0-alpha.14",
28424
28729
  "@types/bun": "latest",
28425
28730
  "@xmpp/xml": "^0.13.2",
28426
28731
  ajv: "^8.17.1",
@@ -28428,14 +28733,14 @@ var package_default = {
28428
28733
  typedoc: "^0.28.14"
28429
28734
  },
28430
28735
  peerDependencies: {
28431
- "@sockethub/server": "^5.0.0-alpha.13"
28736
+ "@sockethub/server": "^5.0.0-alpha.14"
28432
28737
  },
28433
28738
  peerDependenciesMeta: {
28434
28739
  "@sockethub/server": {
28435
28740
  optional: true
28436
28741
  }
28437
28742
  },
28438
- gitHead: "745e85ac71f3c027f8ef8b8edc49398be8dbaccd",
28743
+ gitHead: "4bc8ffa00d29aa78e59e269ac6e5ea9859ec01a8",
28439
28744
  types: "./dist/index.d.ts"
28440
28745
  };
28441
28746
 
@@ -29533,4 +29838,4 @@ export {
29533
29838
  XMPP as default
29534
29839
  };
29535
29840
 
29536
- //# debugId=EE028157355529AE64756E2164756E21
29841
+ //# debugId=6CA5F545251D678F64756E2164756E21