@sockethub/platform-feeds 4.0.0-alpha.13 → 4.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
@@ -38645,6 +38645,311 @@ var ActivityStreamSchema = {
38645
38645
  }
38646
38646
  };
38647
38647
 
38648
+ // ../schemas/src/schemas/sockethub-config.ts
38649
+ var SockethubConfigSchema = {
38650
+ $id: "https://sockethub.org/schemas/v/sockethub-config.json",
38651
+ description: "Sockethub Config Schema",
38652
+ type: "object",
38653
+ required: ["platforms"],
38654
+ additionalProperties: false,
38655
+ properties: {
38656
+ $schema: {
38657
+ type: "string"
38658
+ },
38659
+ examples: {
38660
+ type: "boolean",
38661
+ default: true
38662
+ },
38663
+ info: {
38664
+ type: "boolean",
38665
+ default: false
38666
+ },
38667
+ logging: {
38668
+ type: "object",
38669
+ additionalProperties: false,
38670
+ properties: {
38671
+ level: {
38672
+ type: "string",
38673
+ enum: ["error", "warn", "info", "debug"],
38674
+ default: "info"
38675
+ },
38676
+ fileLevel: {
38677
+ type: "string",
38678
+ enum: ["error", "warn", "info", "debug"],
38679
+ default: "debug"
38680
+ },
38681
+ file: {
38682
+ type: "string",
38683
+ default: "sockethub.log"
38684
+ }
38685
+ }
38686
+ },
38687
+ platforms: {
38688
+ type: "array",
38689
+ items: {
38690
+ type: "string"
38691
+ },
38692
+ default: [
38693
+ "@sockethub/platform-dummy",
38694
+ "@sockethub/platform-feeds",
38695
+ "@sockethub/platform-irc",
38696
+ "@sockethub/platform-metadata",
38697
+ "@sockethub/platform-xmpp"
38698
+ ]
38699
+ },
38700
+ packageConfig: {
38701
+ type: "object",
38702
+ properties: {
38703
+ "@sockethub/platform-dummy": {
38704
+ type: "object",
38705
+ additionalProperties: false,
38706
+ properties: {
38707
+ greeting: { type: "string", default: "Hello" }
38708
+ }
38709
+ },
38710
+ "@sockethub/platform-feeds": {
38711
+ type: "object",
38712
+ additionalProperties: false,
38713
+ properties: {
38714
+ connectTimeoutMs: { type: "number" },
38715
+ allowPrivateAddresses: { type: "boolean" },
38716
+ concurrency: { type: "integer", minimum: 1 }
38717
+ }
38718
+ },
38719
+ "@sockethub/platform-irc": {
38720
+ type: "object",
38721
+ additionalProperties: false,
38722
+ properties: {
38723
+ connectTimeoutMs: { type: "number" }
38724
+ }
38725
+ },
38726
+ "@sockethub/platform-xmpp": {
38727
+ type: "object",
38728
+ additionalProperties: false,
38729
+ properties: {
38730
+ connectTimeoutMs: { type: "number" }
38731
+ }
38732
+ },
38733
+ "@sockethub/platform-metadata": {
38734
+ type: "object",
38735
+ additionalProperties: false,
38736
+ properties: {
38737
+ allowPrivateAddresses: { type: "boolean" },
38738
+ concurrency: { type: "integer", minimum: 1 }
38739
+ }
38740
+ }
38741
+ }
38742
+ },
38743
+ credentials: {
38744
+ type: "object",
38745
+ additionalProperties: false,
38746
+ properties: {
38747
+ ttlMs: {
38748
+ type: "number",
38749
+ minimum: 0,
38750
+ default: 604800000,
38751
+ 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."
38752
+ }
38753
+ }
38754
+ },
38755
+ credentialCheck: {
38756
+ type: "object",
38757
+ additionalProperties: false,
38758
+ properties: {
38759
+ reconnectIpSource: {
38760
+ type: "string",
38761
+ enum: ["socket", "proxy"],
38762
+ default: "socket"
38763
+ },
38764
+ proxyHeader: {
38765
+ type: "string",
38766
+ default: "x-forwarded-for"
38767
+ }
38768
+ }
38769
+ },
38770
+ public: {
38771
+ type: "object",
38772
+ additionalProperties: false,
38773
+ properties: {
38774
+ protocol: {
38775
+ type: "string",
38776
+ default: "http"
38777
+ },
38778
+ host: {
38779
+ type: "string",
38780
+ default: "localhost"
38781
+ },
38782
+ port: {
38783
+ type: "number",
38784
+ default: 10550
38785
+ },
38786
+ path: {
38787
+ type: "string",
38788
+ default: "/"
38789
+ }
38790
+ }
38791
+ },
38792
+ rateLimiter: {
38793
+ type: "object",
38794
+ additionalProperties: false,
38795
+ properties: {
38796
+ windowMs: {
38797
+ type: "number",
38798
+ default: 1000
38799
+ },
38800
+ maxRequests: {
38801
+ type: "number",
38802
+ default: 100
38803
+ },
38804
+ blockDurationMs: {
38805
+ type: "number",
38806
+ default: 5000
38807
+ },
38808
+ maxConnectionsPerIp: {
38809
+ type: "number",
38810
+ minimum: 0,
38811
+ default: 0
38812
+ }
38813
+ }
38814
+ },
38815
+ limits: {
38816
+ type: "object",
38817
+ additionalProperties: false,
38818
+ properties: {
38819
+ maxPlatformInstances: {
38820
+ type: "number",
38821
+ minimum: 0,
38822
+ default: 0
38823
+ }
38824
+ }
38825
+ },
38826
+ redis: {
38827
+ type: "object",
38828
+ additionalProperties: false,
38829
+ properties: {
38830
+ url: {
38831
+ type: "string",
38832
+ default: "redis://127.0.0.1:6379"
38833
+ },
38834
+ connectTimeout: {
38835
+ type: "number",
38836
+ default: 1e4,
38837
+ description: "Connection timeout in milliseconds"
38838
+ },
38839
+ disconnectTimeout: {
38840
+ type: "number",
38841
+ default: 5000,
38842
+ description: "Disconnect timeout in milliseconds"
38843
+ },
38844
+ maxRetriesPerRequest: {
38845
+ type: ["number", "null"],
38846
+ default: null,
38847
+ description: "Maximum number of retries per request (null for BullMQ default)"
38848
+ }
38849
+ }
38850
+ },
38851
+ sentry: {
38852
+ type: "object",
38853
+ additionalProperties: false,
38854
+ properties: {
38855
+ dsn: {
38856
+ type: "string",
38857
+ default: ""
38858
+ },
38859
+ traceSampleRate: {
38860
+ type: "number",
38861
+ default: 1
38862
+ }
38863
+ }
38864
+ },
38865
+ sockethub: {
38866
+ type: "object",
38867
+ additionalProperties: false,
38868
+ properties: {
38869
+ port: {
38870
+ type: "number",
38871
+ default: 10550
38872
+ },
38873
+ host: {
38874
+ type: "string",
38875
+ default: "localhost"
38876
+ },
38877
+ path: {
38878
+ type: "string",
38879
+ default: "/sockethub"
38880
+ },
38881
+ cors: {
38882
+ type: "object",
38883
+ additionalProperties: false,
38884
+ properties: {
38885
+ origin: {
38886
+ type: "string",
38887
+ default: "*"
38888
+ }
38889
+ }
38890
+ }
38891
+ }
38892
+ },
38893
+ httpActions: {
38894
+ type: "object",
38895
+ additionalProperties: false,
38896
+ properties: {
38897
+ enabled: {
38898
+ type: "boolean",
38899
+ default: false
38900
+ },
38901
+ path: {
38902
+ type: "string",
38903
+ default: "/sockethub-http"
38904
+ },
38905
+ requireRequestId: {
38906
+ type: "boolean",
38907
+ default: true
38908
+ },
38909
+ maxMessagesPerRequest: {
38910
+ type: "number",
38911
+ minimum: 1,
38912
+ default: 20
38913
+ },
38914
+ maxPayloadBytes: {
38915
+ type: "number",
38916
+ minimum: 1,
38917
+ default: 262144
38918
+ },
38919
+ idempotencyTtlMs: {
38920
+ type: "number",
38921
+ minimum: 0,
38922
+ default: 300000
38923
+ },
38924
+ requestTimeoutMs: {
38925
+ type: "number",
38926
+ minimum: 0,
38927
+ default: 30000
38928
+ },
38929
+ idleTimeoutMs: {
38930
+ type: "number",
38931
+ minimum: 0,
38932
+ default: 15000
38933
+ }
38934
+ }
38935
+ },
38936
+ platformHeartbeat: {
38937
+ type: "object",
38938
+ additionalProperties: false,
38939
+ properties: {
38940
+ intervalMs: {
38941
+ type: "number",
38942
+ default: 5000
38943
+ },
38944
+ timeoutMs: {
38945
+ type: "number",
38946
+ default: 15000
38947
+ }
38948
+ }
38949
+ }
38950
+ }
38951
+ };
38952
+
38648
38953
  // ../schemas/src/validator.ts
38649
38954
  var import_ajv = __toESM(require_ajv(), 1);
38650
38955
  var import_ajv_formats = __toESM(require_dist(), 1);
@@ -39104,7 +39409,7 @@ var import_podparse = __toESM(require_podparse(), 1);
39104
39409
  var package_default = {
39105
39410
  name: "@sockethub/platform-feeds",
39106
39411
  description: "A sockethub platform module implementing RSS/Atom functionality",
39107
- version: "4.0.0-alpha.13",
39412
+ version: "4.0.0-alpha.14",
39108
39413
  type: "module",
39109
39414
  private: false,
39110
39415
  author: "Nick Jennings <nick@silverbucket.net>",
@@ -39149,24 +39454,24 @@ var package_default = {
39149
39454
  "clean:deps": "rm -rf node_modules"
39150
39455
  },
39151
39456
  dependencies: {
39152
- "@sockethub/util": "^1.0.0-alpha.1",
39457
+ "@sockethub/util": "^1.0.0-alpha.2",
39153
39458
  "html-tags": "^3.3.1",
39154
39459
  htmlparser2: "^9.1.0",
39155
39460
  podparse: "^1.6.0"
39156
39461
  },
39157
39462
  devDependencies: {
39158
- "@sockethub/schemas": "^3.0.0-alpha.13",
39463
+ "@sockethub/schemas": "^3.0.0-alpha.14",
39159
39464
  "@types/bun": "latest"
39160
39465
  },
39161
39466
  peerDependencies: {
39162
- "@sockethub/server": "5.0.0-alpha.13"
39467
+ "@sockethub/server": "5.0.0-alpha.14"
39163
39468
  },
39164
39469
  peerDependenciesMeta: {
39165
39470
  "@sockethub/server": {
39166
39471
  optional: true
39167
39472
  }
39168
39473
  },
39169
- gitHead: "745e85ac71f3c027f8ef8b8edc49398be8dbaccd",
39474
+ gitHead: "4bc8ffa00d29aa78e59e269ac6e5ea9859ec01a8",
39170
39475
  types: "./dist/index.d.ts"
39171
39476
  };
39172
39477
 
@@ -39431,4 +39736,4 @@ export {
39431
39736
  applyFetchFilters
39432
39737
  };
39433
39738
 
39434
- //# debugId=59EA3D5D29E4CBBA64756E2164756E21
39739
+ //# debugId=EAFAD07809950C8264756E2164756E21