hypha-rpc 0.20.22 → 0.20.24

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.
@@ -5102,6 +5102,32 @@ async function connectToServer(config) {
5102
5102
  };
5103
5103
  wm.getService.__schema__ = _getService.__schema__;
5104
5104
  }
5105
+
5106
+ async function registerProbes(probes) {
5107
+ probes.id = "probes";
5108
+ probes.name = "Probes";
5109
+ probes.config = { visibility: "public" };
5110
+ probes.type = "probes";
5111
+ probes.description = `Probes Service, visit ${server_url}/${workspace}services/probes for the available probes.`;
5112
+ return await wm.registerService(probes, { overwrite: true });
5113
+ }
5114
+
5115
+ wm.registerProbes = (0,_utils_schema_js__WEBPACK_IMPORTED_MODULE_2__.schemaFunction)(registerProbes, {
5116
+ name: "registerProbes",
5117
+ description: "Register probes service",
5118
+ parameters: {
5119
+ properties: {
5120
+ probes: {
5121
+ description:
5122
+ "The probes to register, e.g. {'liveness': {'type': 'function', 'description': 'Check the liveness of the service'}}",
5123
+ type: "object",
5124
+ },
5125
+ },
5126
+ required: ["probes"],
5127
+ type: "object",
5128
+ },
5129
+ });
5130
+
5105
5131
  return wm;
5106
5132
  }
5107
5133