@hyperdrive.bot/fleet-client 0.3.99 → 0.3.101

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.
@@ -445,6 +445,9 @@ type SourceListPayload = Extract<SessionOutboundMessage, {
445
445
  type SourceCheckPayload = Extract<SessionOutboundMessage, {
446
446
  type: "source/check/response";
447
447
  }>["payload"];
448
+ export type SourceDisconnectPayload = Extract<SessionOutboundMessage, {
449
+ type: "source/disconnect/response";
450
+ }>["payload"];
448
451
  export type IngestionFilterListPayload = Extract<SessionOutboundMessage, {
449
452
  type: "ingestion/filter/list/response";
450
453
  }>["payload"];
@@ -657,6 +660,10 @@ export interface SourceCheckOptions {
657
660
  sourceId: string;
658
661
  requestId?: string;
659
662
  }
663
+ export interface SourceDisconnectOptions {
664
+ sourceId: string;
665
+ requestId?: string;
666
+ }
660
667
  export interface IngestionFilterListOptions {
661
668
  /** Absent means every filter on the daemon. */
662
669
  sourceId?: string;
@@ -1463,6 +1470,11 @@ export declare class DaemonClient {
1463
1470
  ingestionFilterCreate(options: IngestionFilterCreateOptions): Promise<IngestionFilterCreatePayload>;
1464
1471
  ingestionFilterUpdate(options: IngestionFilterUpdateOptions): Promise<IngestionFilterUpdatePayload>;
1465
1472
  ingestionFilterDelete(options: IngestionFilterDeleteOptions): Promise<IngestionFilterDeletePayload>;
1473
+ /**
1474
+ * Forget a source locally. The aggregator keeps the grant, so reconnecting
1475
+ * needs no new authorization.
1476
+ */
1477
+ sourceDisconnect(options: SourceDisconnectOptions): Promise<SourceDisconnectPayload>;
1466
1478
  loopRun(options: RunLoopOptions): Promise<LoopRunPayload>;
1467
1479
  loopList(requestId?: string): Promise<LoopListPayload>;
1468
1480
  loopInspect(options: string | InspectLoopOptions): Promise<LoopInspectPayload>;
@@ -4275,6 +4275,20 @@ export class DaemonClient {
4275
4275
  responseType: "ingestion/filter/delete/response",
4276
4276
  });
4277
4277
  }
4278
+ /**
4279
+ * Forget a source locally. The aggregator keeps the grant, so reconnecting
4280
+ * needs no new authorization.
4281
+ */
4282
+ async sourceDisconnect(options) {
4283
+ return this.sendCorrelatedSessionRequest({
4284
+ requestId: options.requestId,
4285
+ message: {
4286
+ type: "source/disconnect",
4287
+ sourceId: options.sourceId,
4288
+ },
4289
+ responseType: "source/disconnect/response",
4290
+ });
4291
+ }
4278
4292
  async loopRun(options) {
4279
4293
  return this.sendCorrelatedSessionRequest({
4280
4294
  requestId: options.requestId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperdrive.bot/fleet-client",
3
- "version": "0.3.99",
3
+ "version": "0.3.101",
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.99",
40
- "@hyperdrive.bot/fleet-relay": "0.3.99",
39
+ "@hyperdrive.bot/fleet-protocol": "0.3.101",
40
+ "@hyperdrive.bot/fleet-relay": "0.3.101",
41
41
  "zod": "^4.4.3"
42
42
  },
43
43
  "devDependencies": {