@hyperdrive.bot/fleet-client 0.3.173 → 0.3.175
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 +31 -0
- package/dist/daemon-client.js +32 -0
- package/package.json +3 -3
package/dist/daemon-client.d.ts
CHANGED
|
@@ -469,6 +469,15 @@ export type SourceSubscribePayload = Extract<SessionOutboundMessage, {
|
|
|
469
469
|
export type SourceDisconnectPayload = Extract<SessionOutboundMessage, {
|
|
470
470
|
type: "source/disconnect/response";
|
|
471
471
|
}>["payload"];
|
|
472
|
+
export type SourceRenamePayload = Extract<SessionOutboundMessage, {
|
|
473
|
+
type: "source/rename/response";
|
|
474
|
+
}>["payload"];
|
|
475
|
+
export type SourceAccountsPayload = Extract<SessionOutboundMessage, {
|
|
476
|
+
type: "source/accounts/response";
|
|
477
|
+
}>["payload"];
|
|
478
|
+
export type SourceAssignPayload = Extract<SessionOutboundMessage, {
|
|
479
|
+
type: "source/assign/response";
|
|
480
|
+
}>["payload"];
|
|
472
481
|
export type IngestionFilterListPayload = Extract<SessionOutboundMessage, {
|
|
473
482
|
type: "ingestion/filter/list/response";
|
|
474
483
|
}>["payload"];
|
|
@@ -693,6 +702,22 @@ export interface SourceDisconnectOptions {
|
|
|
693
702
|
sourceId: string;
|
|
694
703
|
requestId?: string;
|
|
695
704
|
}
|
|
705
|
+
export interface SourceRenameOptions {
|
|
706
|
+
sourceId: string;
|
|
707
|
+
/** Null clears the name, and so does a blank string (the daemon trims). */
|
|
708
|
+
nickname: string | null;
|
|
709
|
+
requestId?: string;
|
|
710
|
+
}
|
|
711
|
+
export interface SourceAccountsOptions {
|
|
712
|
+
sourceId: string;
|
|
713
|
+
requestId?: string;
|
|
714
|
+
}
|
|
715
|
+
export interface SourceAssignOptions {
|
|
716
|
+
sourceId: string;
|
|
717
|
+
/** The aggregator account id, as `source/accounts` reports it. */
|
|
718
|
+
accountId: string;
|
|
719
|
+
requestId?: string;
|
|
720
|
+
}
|
|
696
721
|
export interface IngestionFilterListOptions {
|
|
697
722
|
/** Absent means every filter on the daemon. */
|
|
698
723
|
sourceId?: string;
|
|
@@ -1543,6 +1568,12 @@ export declare class DaemonClient {
|
|
|
1543
1568
|
}): Promise<SourceTriggersPayload>;
|
|
1544
1569
|
sourceSubscribe(options: SourceSubscribeOptions): Promise<SourceSubscribePayload>;
|
|
1545
1570
|
sourceDisconnect(options: SourceDisconnectOptions): Promise<SourceDisconnectPayload>;
|
|
1571
|
+
/** Give a source the user's own name, or clear it. Local only. */
|
|
1572
|
+
sourceRename(options: SourceRenameOptions): Promise<SourceRenamePayload>;
|
|
1573
|
+
/** Every account the aggregator holds for this source's app. Read-only. */
|
|
1574
|
+
sourceAccounts(options: SourceAccountsOptions): Promise<SourceAccountsPayload>;
|
|
1575
|
+
/** Point a source at one of those accounts. A refusal comes back as `reason`. */
|
|
1576
|
+
sourceAssign(options: SourceAssignOptions): Promise<SourceAssignPayload>;
|
|
1546
1577
|
loopRun(options: RunLoopOptions): Promise<LoopRunPayload>;
|
|
1547
1578
|
loopList(requestId?: string): Promise<LoopListPayload>;
|
|
1548
1579
|
loopInspect(options: string | InspectLoopOptions): Promise<LoopInspectPayload>;
|
package/dist/daemon-client.js
CHANGED
|
@@ -4408,6 +4408,38 @@ export class DaemonClient {
|
|
|
4408
4408
|
responseType: "source/disconnect/response",
|
|
4409
4409
|
});
|
|
4410
4410
|
}
|
|
4411
|
+
/** Give a source the user's own name, or clear it. Local only. */
|
|
4412
|
+
async sourceRename(options) {
|
|
4413
|
+
return this.sendCorrelatedSessionRequest({
|
|
4414
|
+
requestId: options.requestId,
|
|
4415
|
+
message: {
|
|
4416
|
+
type: "source/rename",
|
|
4417
|
+
sourceId: options.sourceId,
|
|
4418
|
+
nickname: options.nickname,
|
|
4419
|
+
},
|
|
4420
|
+
responseType: "source/rename/response",
|
|
4421
|
+
});
|
|
4422
|
+
}
|
|
4423
|
+
/** Every account the aggregator holds for this source's app. Read-only. */
|
|
4424
|
+
async sourceAccounts(options) {
|
|
4425
|
+
return this.sendCorrelatedSessionRequest({
|
|
4426
|
+
requestId: options.requestId,
|
|
4427
|
+
message: { type: "source/accounts", sourceId: options.sourceId },
|
|
4428
|
+
responseType: "source/accounts/response",
|
|
4429
|
+
});
|
|
4430
|
+
}
|
|
4431
|
+
/** Point a source at one of those accounts. A refusal comes back as `reason`. */
|
|
4432
|
+
async sourceAssign(options) {
|
|
4433
|
+
return this.sendCorrelatedSessionRequest({
|
|
4434
|
+
requestId: options.requestId,
|
|
4435
|
+
message: {
|
|
4436
|
+
type: "source/assign",
|
|
4437
|
+
sourceId: options.sourceId,
|
|
4438
|
+
accountId: options.accountId,
|
|
4439
|
+
},
|
|
4440
|
+
responseType: "source/assign/response",
|
|
4441
|
+
});
|
|
4442
|
+
}
|
|
4411
4443
|
async loopRun(options) {
|
|
4412
4444
|
return this.sendCorrelatedSessionRequest({
|
|
4413
4445
|
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.175",
|
|
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.175",
|
|
40
|
+
"@hyperdrive.bot/fleet-relay": "0.3.175",
|
|
41
41
|
"zod": "^4.4.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|