@scaffoldly/rowdy 0.1.0-beta.20251110135254.76e2719 → 0.1.0-beta.20251111112519.23d49f6

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/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import { Observable, ReplaySubject } from 'rxjs';
3
3
  import { AxiosInstance, AxiosHeaders, AxiosResponseHeaders } from 'axios';
4
4
  import { PassThrough, Readable, Writable } from 'stream';
5
- import { GrpcRouter, GrpcResponse } from '@scaffoldly/rowdy-grpc';
5
+ import { GrpcRouter, CRI, GrpcResponse } from '@scaffoldly/rowdy-grpc';
6
6
  import { Agent } from 'https';
7
7
  import { APIGatewayProxyEventV2 } from 'aws-lambda';
8
8
 
@@ -40,7 +40,6 @@ declare abstract class Pipeline implements ILoggable {
40
40
  private _createdAt;
41
41
  constructor(environment: Environment);
42
42
  get name(): string;
43
- get version(): string;
44
43
  get log(): Logger;
45
44
  get env(): Record<string, string | undefined>;
46
45
  get signal(): AbortSignal;
@@ -48,6 +47,7 @@ declare abstract class Pipeline implements ILoggable {
48
47
  get createdAt(): number;
49
48
  abstract get cri(): GrpcRouter;
50
49
  abstract into(): Observable<Request<Pipeline>>;
50
+ abstract version(upgrade?: boolean): Observable<CRI.VersionResponse>;
51
51
  abstract repr(): string;
52
52
  }
53
53
  declare class FileDescriptors {
@@ -297,8 +297,10 @@ declare class Rowdy implements IApi {
297
297
  static readonly HEALTH = "health";
298
298
  static readonly PING = "ping";
299
299
  static readonly ROUTES = "routes";
300
+ static readonly VERSION = "version";
300
301
  static readonly PATHS: {
301
302
  CRI: string;
303
+ VERSION: string;
302
304
  };
303
305
  readonly http: AxiosInstance;
304
306
  private _images;
@@ -309,6 +311,10 @@ declare class Rowdy implements IApi {
309
311
  get proxy(): HttpProxy<Pipeline> | undefined;
310
312
  get environment(): Environment | undefined;
311
313
  withProxy(proxy: HttpProxy<Pipeline>): this;
314
+ version(proxy: HttpProxy<Pipeline>): Observable<{
315
+ version: CRI.VersionResponse;
316
+ status: number;
317
+ }>;
312
318
  cri(proxy: HttpProxy<Pipeline>): Observable<GrpcResponse>;
313
319
  }
314
320