@hyperdrive.bot/fleet-client 0.3.104 → 0.3.106
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/daemon-client.d.ts +17 -0
- package/dist/daemon-client.js +19 -0
- package/package.json +3 -3
package/dist/daemon-client.d.ts
CHANGED
|
@@ -445,6 +445,12 @@ type SourceListPayload = Extract<SessionOutboundMessage, {
|
|
|
445
445
|
type SourceCheckPayload = Extract<SessionOutboundMessage, {
|
|
446
446
|
type: "source/check/response";
|
|
447
447
|
}>["payload"];
|
|
448
|
+
export type SourceTriggersPayload = Extract<SessionOutboundMessage, {
|
|
449
|
+
type: "source/triggers/response";
|
|
450
|
+
}>["payload"];
|
|
451
|
+
export type SourceSubscribePayload = Extract<SessionOutboundMessage, {
|
|
452
|
+
type: "source/subscribe/response";
|
|
453
|
+
}>["payload"];
|
|
448
454
|
export type SourceDisconnectPayload = Extract<SessionOutboundMessage, {
|
|
449
455
|
type: "source/disconnect/response";
|
|
450
456
|
}>["payload"];
|
|
@@ -660,6 +666,11 @@ export interface SourceCheckOptions {
|
|
|
660
666
|
sourceId: string;
|
|
661
667
|
requestId?: string;
|
|
662
668
|
}
|
|
669
|
+
export interface SourceSubscribeOptions {
|
|
670
|
+
sourceId: string;
|
|
671
|
+
componentId?: string;
|
|
672
|
+
requestId?: string;
|
|
673
|
+
}
|
|
663
674
|
export interface SourceDisconnectOptions {
|
|
664
675
|
sourceId: string;
|
|
665
676
|
requestId?: string;
|
|
@@ -1474,6 +1485,12 @@ export declare class DaemonClient {
|
|
|
1474
1485
|
* Forget a source locally. The aggregator keeps the grant, so reconnecting
|
|
1475
1486
|
* needs no new authorization.
|
|
1476
1487
|
*/
|
|
1488
|
+
/** Deploy a trigger so the source actually emits events a filter can match. */
|
|
1489
|
+
sourceTriggers(options: {
|
|
1490
|
+
sourceId: string;
|
|
1491
|
+
requestId?: string;
|
|
1492
|
+
}): Promise<SourceTriggersPayload>;
|
|
1493
|
+
sourceSubscribe(options: SourceSubscribeOptions): Promise<SourceSubscribePayload>;
|
|
1477
1494
|
sourceDisconnect(options: SourceDisconnectOptions): Promise<SourceDisconnectPayload>;
|
|
1478
1495
|
loopRun(options: RunLoopOptions): Promise<LoopRunPayload>;
|
|
1479
1496
|
loopList(requestId?: string): Promise<LoopListPayload>;
|
package/dist/daemon-client.js
CHANGED
|
@@ -4279,6 +4279,25 @@ export class DaemonClient {
|
|
|
4279
4279
|
* Forget a source locally. The aggregator keeps the grant, so reconnecting
|
|
4280
4280
|
* needs no new authorization.
|
|
4281
4281
|
*/
|
|
4282
|
+
/** Deploy a trigger so the source actually emits events a filter can match. */
|
|
4283
|
+
async sourceTriggers(options) {
|
|
4284
|
+
return this.sendCorrelatedSessionRequest({
|
|
4285
|
+
requestId: options.requestId,
|
|
4286
|
+
message: { type: "source/triggers", sourceId: options.sourceId },
|
|
4287
|
+
responseType: "source/triggers/response",
|
|
4288
|
+
});
|
|
4289
|
+
}
|
|
4290
|
+
async sourceSubscribe(options) {
|
|
4291
|
+
return this.sendCorrelatedSessionRequest({
|
|
4292
|
+
requestId: options.requestId,
|
|
4293
|
+
message: {
|
|
4294
|
+
type: "source/subscribe",
|
|
4295
|
+
sourceId: options.sourceId,
|
|
4296
|
+
...(options.componentId === undefined ? {} : { componentId: options.componentId }),
|
|
4297
|
+
},
|
|
4298
|
+
responseType: "source/subscribe/response",
|
|
4299
|
+
});
|
|
4300
|
+
}
|
|
4282
4301
|
async sourceDisconnect(options) {
|
|
4283
4302
|
return this.sendCorrelatedSessionRequest({
|
|
4284
4303
|
requestId: options.requestId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperdrive.bot/fleet-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.106",
|
|
4
4
|
"description": "Paseo client SDK package",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"test": "vitest run"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hyperdrive.bot/fleet-protocol": "0.3.
|
|
40
|
-
"@hyperdrive.bot/fleet-relay": "0.3.
|
|
39
|
+
"@hyperdrive.bot/fleet-protocol": "0.3.106",
|
|
40
|
+
"@hyperdrive.bot/fleet-relay": "0.3.106",
|
|
41
41
|
"zod": "^4.4.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|