@hotmeshio/hotmesh 0.3.29 → 0.3.31

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.
Files changed (193) hide show
  1. package/build/index.d.ts +8 -2
  2. package/build/index.js +13 -7
  3. package/build/modules/enums.d.ts +65 -1
  4. package/build/modules/enums.js +79 -5
  5. package/build/modules/key.d.ts +52 -0
  6. package/build/modules/key.js +1 -1
  7. package/build/modules/utils.d.ts +73 -0
  8. package/build/modules/utils.js +1 -1
  9. package/build/package.json +6 -4
  10. package/build/services/activities/activity.d.ts +36 -0
  11. package/build/services/activities/activity.js +1 -1
  12. package/build/services/activities/await.js +1 -1
  13. package/build/services/activities/cycle.d.ts +7 -0
  14. package/build/services/activities/cycle.js +1 -1
  15. package/build/services/activities/hook.d.ts +6 -0
  16. package/build/services/activities/hook.js +1 -1
  17. package/build/services/activities/index.js +1 -1
  18. package/build/services/activities/interrupt.js +1 -1
  19. package/build/services/activities/signal.d.ts +6 -0
  20. package/build/services/activities/signal.js +1 -1
  21. package/build/services/activities/trigger.d.ts +7 -0
  22. package/build/services/activities/trigger.js +1 -1
  23. package/build/services/activities/worker.js +1 -1
  24. package/build/services/collator/index.d.ts +76 -0
  25. package/build/services/collator/index.js +1 -1
  26. package/build/services/compiler/deployer.js +1 -1
  27. package/build/services/compiler/index.d.ts +15 -0
  28. package/build/services/compiler/index.js +1 -1
  29. package/build/services/compiler/validator.d.ts +3 -0
  30. package/build/services/compiler/validator.js +1 -1
  31. package/build/services/connector/factory.d.ts +14 -0
  32. package/build/services/connector/factory.js +22 -2
  33. package/build/services/connector/index.d.ts +13 -1
  34. package/build/services/connector/index.js +13 -1
  35. package/build/services/connector/providers/postgres.js +7 -0
  36. package/build/services/engine/index.d.ts +162 -0
  37. package/build/services/engine/index.js +1 -1
  38. package/build/services/exporter/index.d.ts +27 -0
  39. package/build/services/exporter/index.js +1 -1
  40. package/build/services/hotmesh/index.d.ts +280 -0
  41. package/build/services/hotmesh/index.js +286 -0
  42. package/build/services/logger/index.js +1 -0
  43. package/build/services/mapper/index.d.ts +14 -0
  44. package/build/services/mapper/index.js +1 -1
  45. package/build/services/meshcall/index.d.ts +171 -0
  46. package/build/services/meshcall/index.js +190 -0
  47. package/build/services/meshcall/schemas/factory.d.ts +7 -0
  48. package/build/services/meshcall/schemas/factory.js +7 -0
  49. package/build/services/meshdata/index.d.ts +725 -3
  50. package/build/services/meshdata/index.js +689 -3
  51. package/build/services/meshflow/client.d.ts +89 -0
  52. package/build/services/meshflow/client.js +173 -4
  53. package/build/services/meshflow/connection.d.ts +17 -0
  54. package/build/services/meshflow/connection.js +17 -0
  55. package/build/services/meshflow/exporter.d.ts +22 -0
  56. package/build/services/meshflow/exporter.js +1 -1
  57. package/build/services/meshflow/handle.d.ts +68 -0
  58. package/build/services/meshflow/handle.js +75 -0
  59. package/build/services/meshflow/index.d.ts +92 -0
  60. package/build/services/meshflow/index.js +92 -0
  61. package/build/services/meshflow/schemas/factory.d.ts +25 -0
  62. package/build/services/meshflow/schemas/factory.js +26 -1
  63. package/build/services/meshflow/search.d.ts +120 -0
  64. package/build/services/meshflow/search.js +108 -0
  65. package/build/services/meshflow/worker.d.ts +97 -0
  66. package/build/services/meshflow/worker.js +116 -2
  67. package/build/services/meshflow/workflow/all.d.ts +6 -0
  68. package/build/services/meshflow/workflow/all.js +7 -0
  69. package/build/services/meshflow/workflow/context.d.ts +4 -0
  70. package/build/services/meshflow/workflow/context.js +4 -0
  71. package/build/services/meshflow/workflow/didRun.d.ts +6 -0
  72. package/build/services/meshflow/workflow/didRun.js +6 -0
  73. package/build/services/meshflow/workflow/emit.d.ts +7 -0
  74. package/build/services/meshflow/workflow/emit.js +7 -0
  75. package/build/services/meshflow/workflow/enrich.d.ts +7 -0
  76. package/build/services/meshflow/workflow/enrich.js +7 -0
  77. package/build/services/meshflow/workflow/execChild.d.ts +14 -0
  78. package/build/services/meshflow/workflow/execChild.js +18 -0
  79. package/build/services/meshflow/workflow/hook.d.ts +7 -0
  80. package/build/services/meshflow/workflow/hook.js +7 -0
  81. package/build/services/meshflow/workflow/index.d.ts +31 -0
  82. package/build/services/meshflow/workflow/index.js +31 -0
  83. package/build/services/meshflow/workflow/interrupt.d.ts +7 -0
  84. package/build/services/meshflow/workflow/interrupt.js +7 -0
  85. package/build/services/meshflow/workflow/isSideEffectAllowed.d.ts +8 -0
  86. package/build/services/meshflow/workflow/isSideEffectAllowed.js +8 -0
  87. package/build/services/meshflow/workflow/proxyActivities.d.ts +14 -0
  88. package/build/services/meshflow/workflow/proxyActivities.js +18 -3
  89. package/build/services/meshflow/workflow/random.d.ts +5 -0
  90. package/build/services/meshflow/workflow/random.js +5 -0
  91. package/build/services/meshflow/workflow/searchMethods.d.ts +4 -0
  92. package/build/services/meshflow/workflow/searchMethods.js +4 -0
  93. package/build/services/meshflow/workflow/signal.d.ts +6 -0
  94. package/build/services/meshflow/workflow/signal.js +6 -0
  95. package/build/services/meshflow/workflow/sleepFor.d.ts +7 -0
  96. package/build/services/meshflow/workflow/sleepFor.js +7 -0
  97. package/build/services/meshflow/workflow/trace.d.ts +10 -0
  98. package/build/services/meshflow/workflow/trace.js +10 -0
  99. package/build/services/meshflow/workflow/waitFor.d.ts +7 -0
  100. package/build/services/meshflow/workflow/waitFor.js +7 -0
  101. package/build/services/meshos/index.d.ts +213 -2
  102. package/build/services/meshos/index.js +221 -1
  103. package/build/services/pipe/functions/array.js +1 -1
  104. package/build/services/pipe/functions/bitwise.js +1 -1
  105. package/build/services/pipe/functions/conditional.js +1 -1
  106. package/build/services/pipe/functions/cron.d.ts +6 -0
  107. package/build/services/pipe/functions/cron.js +1 -1
  108. package/build/services/pipe/functions/date.d.ts +7 -0
  109. package/build/services/pipe/functions/date.js +1 -1
  110. package/build/services/pipe/functions/index.js +1 -1
  111. package/build/services/pipe/functions/json.js +1 -1
  112. package/build/services/pipe/functions/logical.js +1 -1
  113. package/build/services/pipe/functions/math.js +1 -1
  114. package/build/services/pipe/functions/number.js +1 -1
  115. package/build/services/pipe/functions/object.js +1 -1
  116. package/build/services/pipe/functions/string.js +1 -1
  117. package/build/services/pipe/functions/symbol.js +1 -1
  118. package/build/services/pipe/functions/unary.js +1 -1
  119. package/build/services/pipe/index.d.ts +15 -0
  120. package/build/services/pipe/index.js +1 -1
  121. package/build/services/quorum/index.d.ts +49 -0
  122. package/build/services/quorum/index.js +1 -1
  123. package/build/services/reporter/index.d.ts +5 -0
  124. package/build/services/reporter/index.js +1 -1
  125. package/build/services/router/index.d.ts +10 -0
  126. package/build/services/router/index.js +1 -1
  127. package/build/services/search/providers/postgres/postgres.d.ts +3 -0
  128. package/build/services/search/providers/postgres/postgres.js +1 -1
  129. package/build/services/search/providers/redis/ioredis.js +1 -1
  130. package/build/services/search/providers/redis/redis.js +1 -1
  131. package/build/services/serializer/index.js +1 -1
  132. package/build/services/store/cache.d.ts +19 -0
  133. package/build/services/store/cache.js +19 -0
  134. package/build/services/store/factory.js +1 -1
  135. package/build/services/store/providers/postgres/kvsql.d.ts +7 -0
  136. package/build/services/store/providers/postgres/kvsql.js +1 -1
  137. package/build/services/store/providers/postgres/kvtables.d.ts +4 -0
  138. package/build/services/store/providers/postgres/kvtables.js +1 -1
  139. package/build/services/store/providers/postgres/kvtransaction.js +1 -1
  140. package/build/services/store/providers/postgres/kvtypes/hash.d.ts +4 -0
  141. package/build/services/store/providers/postgres/kvtypes/hash.js +1 -1
  142. package/build/services/store/providers/postgres/kvtypes/list.js +1 -1
  143. package/build/services/store/providers/postgres/kvtypes/string.js +1 -1
  144. package/build/services/store/providers/postgres/kvtypes/zset.js +1 -1
  145. package/build/services/store/providers/postgres/postgres.d.ts +48 -1
  146. package/build/services/store/providers/postgres/postgres.js +1 -1
  147. package/build/services/store/providers/redis/_base.d.ts +42 -0
  148. package/build/services/store/providers/redis/_base.js +1 -1
  149. package/build/services/store/providers/redis/ioredis.d.ts +8 -0
  150. package/build/services/store/providers/redis/ioredis.js +1 -1
  151. package/build/services/store/providers/redis/redis.d.ts +6 -0
  152. package/build/services/store/providers/redis/redis.js +1 -1
  153. package/build/services/store/providers/store-initializable.js +1 -1
  154. package/build/services/stream/factory.js +2 -1
  155. package/build/services/stream/index.d.ts +4 -0
  156. package/build/services/stream/providers/nats/nats.js +1 -1
  157. package/build/services/stream/providers/postgres/kvtables.js +1 -1
  158. package/build/services/stream/providers/postgres/postgres.d.ts +21 -0
  159. package/build/services/stream/providers/postgres/postgres.js +1 -1
  160. package/build/services/stream/providers/redis/ioredis.js +1 -1
  161. package/build/services/stream/providers/redis/redis.js +1 -1
  162. package/build/services/stream/providers/stream-initializable.js +1 -1
  163. package/build/services/sub/providers/nats/nats.js +1 -1
  164. package/build/services/sub/providers/postgres/postgres.js +1 -1
  165. package/build/services/sub/providers/redis/ioredis.js +1 -1
  166. package/build/services/sub/providers/redis/redis.js +1 -1
  167. package/build/services/task/index.d.ts +9 -0
  168. package/build/services/task/index.js +1 -1
  169. package/build/services/telemetry/index.d.ts +7 -0
  170. package/build/services/telemetry/index.js +1 -1
  171. package/build/services/worker/index.d.ts +37 -0
  172. package/build/services/worker/index.js +1 -1
  173. package/build/types/activity.d.ts +81 -0
  174. package/build/types/exporter.d.ts +13 -0
  175. package/build/types/hotmesh.d.ts +144 -0
  176. package/build/types/hotmesh.js +3 -0
  177. package/build/types/job.d.ts +101 -0
  178. package/build/types/manifest.d.ts +8 -0
  179. package/build/types/meshcall.d.ts +148 -0
  180. package/build/types/meshdata.d.ts +193 -0
  181. package/build/types/meshflow.d.ts +297 -0
  182. package/build/types/nats.d.ts +55 -0
  183. package/build/types/pipe.d.ts +65 -0
  184. package/build/types/provider.d.ts +43 -0
  185. package/build/types/quorum.d.ts +12 -0
  186. package/build/types/redis.d.ts +6 -0
  187. package/build/types/stream.d.ts +65 -0
  188. package/build/types/stream.js +4 -0
  189. package/index.ts +8 -1
  190. package/package.json +6 -4
  191. package/types/manifest.ts +2 -2
  192. package/types/meshcall.ts +1 -2
  193. package/types/meshdata.ts +1 -1
@@ -9,52 +9,332 @@ import { JobMessageCallback, QuorumMessage, QuorumMessageCallback, QuorumProfile
9
9
  import { StringAnyType, StringStringType } from '../../types/serializer';
10
10
  import { JobStatsInput, GetStatsOptions, IdsResponse, StatsResponse } from '../../types/stats';
11
11
  import { StreamCode, StreamData, StreamDataResponse, StreamStatus } from '../../types/stream';
12
+ /**
13
+ * This example shows the full lifecycle of a HotMesh engine instance,
14
+ * including: initialization, deployment, activation and execution.
15
+ *
16
+ * Engine routers are self-managing, but subscribe to the 'quorum' channel
17
+ * to establish consensus as necessary for distributed processing.
18
+ * Completed workflows are always soft-deleted with a configurable
19
+ * retention period.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * import { Client as Postgres } from 'pg';
24
+ * import { HotMesh } from '@hotmeshio/hotmesh';
25
+ *
26
+ * const hotMesh = await HotMesh.init({
27
+ * appId: 'abc',
28
+ * engine: {
29
+ * connection: {
30
+ * class: Postgres,
31
+ * options: {
32
+ * connectionString: 'postgresql://usr:pwd@localhost:5432/db',
33
+ * }
34
+ * }
35
+ * }
36
+ * });
37
+ *
38
+ * await hotMesh.deploy(`
39
+ * app:
40
+ * id: abc
41
+ * version: '1'
42
+ * graphs:
43
+ * - subscribes: abc.test
44
+ * activities:
45
+ * t1:
46
+ * type: trigger
47
+ * `);
48
+ *
49
+ * await hotMesh.activate('1');
50
+ *
51
+ * await hotMesh.pubsub('abc.test');
52
+ *
53
+ * await HotMesh.stop();
54
+ * ```
55
+ */
12
56
  declare class HotMesh {
13
57
  namespace: string;
14
58
  appId: string;
15
59
  guid: string;
60
+ /**
61
+ * @private
62
+ */
16
63
  engine: EngineService | null;
64
+ /**
65
+ * @private
66
+ */
17
67
  quorum: QuorumService | null;
68
+ /**
69
+ * @private
70
+ */
18
71
  workers: WorkerService[];
19
72
  logger: ILogger;
20
73
  static disconnecting: boolean;
74
+ /**
75
+ * @private
76
+ */
21
77
  verifyAndSetNamespace(namespace?: string): void;
78
+ /**
79
+ * @private
80
+ */
22
81
  verifyAndSetAppId(appId: string): void;
82
+ /**
83
+ * Instance initializer. Workers are configured
84
+ * similarly to the engine, but as an array with
85
+ * multiple worker objects.
86
+ *
87
+ * @example
88
+ * ```typescript
89
+ * const config: HotMeshConfig = {
90
+ * appId: 'myapp',
91
+ * engine: {
92
+ * connection: {
93
+ * class: Postgres,
94
+ * options: {
95
+ * connectionString: 'postgresql://usr:pwd@localhost:5432/db',
96
+ * }
97
+ * }
98
+ * },
99
+ * workers [...]
100
+ * };
101
+ * const hotMesh = await HotMesh.init(config);
102
+ * ```
103
+ */
23
104
  static init(config: HotMeshConfig): Promise<HotMesh>;
105
+ /**
106
+ * returns a guid using the same core guid
107
+ * generator used by the HotMesh (nanoid)
108
+ */
24
109
  static guid(): string;
110
+ /**
111
+ * @private
112
+ */
25
113
  initEngine(config: HotMeshConfig, logger: ILogger): Promise<void>;
114
+ /**
115
+ * @private
116
+ */
26
117
  initQuorum(config: HotMeshConfig, engine: EngineService, logger: ILogger): Promise<void>;
118
+ /**
119
+ * @private
120
+ */
27
121
  constructor();
122
+ /**
123
+ * @private
124
+ */
28
125
  doWork(config: HotMeshConfig, logger: ILogger): Promise<void>;
126
+ /**
127
+ * Starts a workflow
128
+ * @example
129
+ * ```typescript
130
+ * await hotMesh.pub('a.b.c', { key: 'value' });
131
+ * ```
132
+ */
29
133
  pub(topic: string, data?: JobData, context?: JobState, extended?: ExtensionType): Promise<string>;
134
+ /**
135
+ * Subscribe (listen) to all output and interim emissions of a single
136
+ * workflow topic. NOTE: Postgres does not support patterned
137
+ * unsubscription, so this method is not supported for Postgres.
138
+ *
139
+ * @example
140
+ * ```typescript
141
+ * await hotMesh.psub('a.b.c', (topic, message) => {
142
+ * console.log(message);
143
+ * });
144
+ * ```
145
+ */
30
146
  sub(topic: string, callback: JobMessageCallback): Promise<void>;
147
+ /**
148
+ * Stop listening in on a single workflow topic
149
+ */
31
150
  unsub(topic: string): Promise<void>;
151
+ /**
152
+ * Listen to all output and interim emissions of a workflow topic
153
+ * matching a wildcard pattern.
154
+ * @example
155
+ * ```typescript
156
+ * await hotMesh.psub('a.b.c*', (topic, message) => {
157
+ * console.log(message);
158
+ * });
159
+ * ```
160
+ */
32
161
  psub(wild: string, callback: JobMessageCallback): Promise<void>;
162
+ /**
163
+ * Patterned unsubscribe. NOTE: Postgres does not support patterned
164
+ * unsubscription, so this method is not supported for Postgres.
165
+ */
33
166
  punsub(wild: string): Promise<void>;
167
+ /**
168
+ * Starts a workflow and awaits the response
169
+ * @example
170
+ * ```typescript
171
+ * await hotMesh.pubsub('a.b.c', { key: 'value' });
172
+ * ```
173
+ */
34
174
  pubsub(topic: string, data?: JobData, context?: JobState | null, timeout?: number): Promise<JobOutput>;
175
+ /**
176
+ * Add a transition message to the workstream, resuming leg 2 of a paused
177
+ * reentrant activity (e.g., await, worker, hook)
178
+ */
35
179
  add(streamData: StreamData | StreamDataResponse): Promise<string>;
180
+ /**
181
+ * Request a roll call from the quorum (engine and workers)
182
+ */
36
183
  rollCall(delay?: number): Promise<QuorumProfile[]>;
184
+ /**
185
+ * Sends a throttle message to the quorum (engine and/or workers)
186
+ * to limit the rate of processing. Pass `-1` to throttle indefinitely.
187
+ * The value must be a non-negative integer and not exceed `MAX_DELAY` ms.
188
+ *
189
+ * When throttling is set, the quorum will pause for the specified time
190
+ * before processing the next message. Target specific engines and
191
+ * workers by passing a `guid` and/or `topic`. Pass no arguments to
192
+ * throttle the entire quorum.
193
+ *
194
+ * In this example, all processing has been paused indefinitely for
195
+ * the entire quorum. This is equivalent to an emergency stop.
196
+ *
197
+ * HotMesh is a stateless sequence engine, so the throttle can be adjusted up
198
+ * and down with no loss of data.
199
+ *
200
+ *
201
+ * @example
202
+ * ```typescript
203
+ * await hotMesh.throttle({ throttle: -1 });
204
+ * ```
205
+ */
37
206
  throttle(options: ThrottleOptions): Promise<boolean>;
207
+ /**
208
+ * Publish a message to the quorum (engine and/or workers)
209
+ */
38
210
  pubQuorum(quorumMessage: QuorumMessage): Promise<boolean>;
211
+ /**
212
+ * Subscribe to quorum events (engine and workers)
213
+ */
39
214
  subQuorum(callback: QuorumMessageCallback): Promise<void>;
215
+ /**
216
+ * Unsubscribe from quorum events (engine and workers)
217
+ */
40
218
  unsubQuorum(callback: QuorumMessageCallback): Promise<void>;
219
+ /**
220
+ * Preview changes and provide an analysis of risk
221
+ * prior to deployment
222
+ * @private
223
+ */
41
224
  plan(path: string): Promise<HotMeshManifest>;
225
+ /**
226
+ * When the app YAML descriptor file is ready, the `deploy` function can be called.
227
+ * This function is responsible for merging all referenced YAML source
228
+ * files and writing the JSON output to the file system and to the provider backend. It
229
+ * is also possible to embed the YAML in-line as a string.
230
+ *
231
+ * *The version will not be active until activation is explicitly called.*
232
+ */
42
233
  deploy(pathOrYAML: string): Promise<HotMeshManifest>;
234
+ /**
235
+ * Once the app YAML file is deployed to the provider backend, the `activate` function can be
236
+ * called to enable it for the entire quorum at the same moment.
237
+ *
238
+ * The approach is to establish the coordinated health of the system through series
239
+ * of call/response exchanges. Once it is established that the quorum is healthy,
240
+ * the quorum is instructed to run their engine in `no-cache` mode, ensuring
241
+ * that the provider backend is consulted for the active app version each time a
242
+ * call is processed. This ensures that all engines are running the same version
243
+ * of the app, switching over at the same moment and then enabling `cache` mode
244
+ * to improve performance.
245
+ *
246
+ * *Add a delay for the quorum to reach consensus if traffic is busy, but
247
+ * also consider throttling traffic flow to an acceptable level.*
248
+ */
43
249
  activate(version: string, delay?: number): Promise<boolean>;
250
+ /**
251
+ * Returns the job state as a JSON object, useful
252
+ * for understanding dependency chains
253
+ */
44
254
  export(jobId: string): Promise<JobExport>;
255
+ /**
256
+ * Returns all data (HGETALL) for a job.
257
+ */
45
258
  getRaw(jobId: string): Promise<StringStringType>;
259
+ /**
260
+ * Reporter-related method to get the status of a job
261
+ * @private
262
+ */
46
263
  getStats(topic: string, query: JobStatsInput): Promise<StatsResponse>;
264
+ /**
265
+ * Returns the status of a job. This is a numeric
266
+ * semaphore value that indicates the job's state.
267
+ * Any non-positive value indicates a completed job.
268
+ * Jobs with a value of `-1` are pending and will
269
+ * automatically be scrubbed after a set period.
270
+ * Jobs a value around -1billion have been interrupted
271
+ * and will be scrubbed after a set period. Jobs with
272
+ * a value of 0 completed normally. Jobs with a
273
+ * positive value are still running.
274
+ */
47
275
  getStatus(jobId: string): Promise<JobStatus>;
276
+ /**
277
+ * Returns the job state (data and metadata) for a job.
278
+ */
48
279
  getState(topic: string, jobId: string): Promise<JobOutput>;
280
+ /**
281
+ * Returns searchable/queryable data for a job. In this
282
+ * example a literal field is also searched (the colon
283
+ * is used to track job status and is a reserved field;
284
+ * it can be read but not written).
285
+ *
286
+ * @example
287
+ * ```typescript
288
+ * const fields = ['fred', 'barney', '":"'];
289
+ * const queryState = await hotMesh.getQueryState('123', fields);
290
+ * //returns { fred: 'flintstone', barney: 'rubble', ':': '1' }
291
+ * ```
292
+ */
49
293
  getQueryState(jobId: string, fields: string[]): Promise<StringAnyType>;
294
+ /**
295
+ * @private
296
+ */
50
297
  getIds(topic: string, query: JobStatsInput, queryFacets?: any[]): Promise<IdsResponse>;
298
+ /**
299
+ * @private
300
+ */
51
301
  resolveQuery(topic: string, query: JobStatsInput): Promise<GetStatsOptions>;
302
+ /**
303
+ * Interrupt an active job
304
+ */
52
305
  interrupt(topic: string, jobId: string, options?: JobInterruptOptions): Promise<string>;
306
+ /**
307
+ * Immediately deletes (DEL) a completed job from the system.
308
+ *
309
+ * *Scrubbed jobs must be complete with a non-positive `status` value*
310
+ */
53
311
  scrub(jobId: string): Promise<void>;
312
+ /**
313
+ * Re/entry point for an active job. This is used to resume a paused job
314
+ * and close the reentry point or leave it open for subsequent reentry.
315
+ * Because `hooks` are public entry points, they include a `topic`
316
+ * which is established in the app YAML file.
317
+ *
318
+ * When this method is called, a hook rule will be located to establish
319
+ * the exact activity and activity dimension for reentry.
320
+ */
54
321
  hook(topic: string, data: JobData, status?: StreamStatus, code?: StreamCode): Promise<string>;
322
+ /**
323
+ * @private
324
+ */
55
325
  hookAll(hookTopic: string, data: JobData, query: JobStatsInput, queryFacets?: string[]): Promise<string[]>;
326
+ /**
327
+ * Stop all points of presence, workers and engines
328
+ */
56
329
  static stop(): Promise<void>;
330
+ /**
331
+ * Stop this point of presence, workers and engines
332
+ */
57
333
  stop(): void;
334
+ /**
335
+ * @private
336
+ * @deprecated
337
+ */
58
338
  compress(terms: string[]): Promise<boolean>;
59
339
  }
60
340
  export { HotMesh };