weave-typescript 0.16.0 → 0.17.0

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.
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { Observable } from "rxjs";
3
- import { Event } from "./event.pb";
3
+ import { Event, InspectionAction, InspectionActorKind, InspectionEvent, InspectionOutcome, InspectionSubjectKind } from "./event.pb";
4
4
  import { MailboxMessage } from "./message.pb";
5
5
  import { Process, ProcessTypeSummary } from "./process.pb";
6
6
  import { Run, RunConfig, RunStatus } from "./run.pb";
@@ -96,6 +96,42 @@ export interface WatchEventsRequest {
96
96
  export interface WatchEventsResponse {
97
97
  event: Event | undefined;
98
98
  }
99
+ export interface ListInspectionEventsRequest {
100
+ subjectKind: InspectionSubjectKind;
101
+ subjectId: string;
102
+ typeFilter: string;
103
+ actorKind: InspectionActorKind;
104
+ actorId: string;
105
+ runId: string;
106
+ processId: string;
107
+ action: InspectionAction;
108
+ outcome: InspectionOutcome;
109
+ startTime: Date | undefined;
110
+ endTime: Date | undefined;
111
+ pageSize: number;
112
+ pageToken: string;
113
+ }
114
+ export interface ListInspectionEventsResponse {
115
+ events: InspectionEvent[];
116
+ nextPageToken: string;
117
+ }
118
+ export interface WatchInspectionEventsRequest {
119
+ subjectKind: InspectionSubjectKind;
120
+ subjectId: string;
121
+ typeFilter: string;
122
+ actorKind: InspectionActorKind;
123
+ actorId: string;
124
+ runId: string;
125
+ processId: string;
126
+ action: InspectionAction;
127
+ outcome: InspectionOutcome;
128
+ startTime: Date | undefined;
129
+ endTime: Date | undefined;
130
+ afterSequence: number;
131
+ }
132
+ export interface WatchInspectionEventsResponse {
133
+ event: InspectionEvent | undefined;
134
+ }
99
135
  export interface ListProcessTypesRequest {
100
136
  pageSize: number;
101
137
  pageToken: string;
@@ -122,6 +158,10 @@ export declare const ListEventsRequest: MessageFns<ListEventsRequest>;
122
158
  export declare const ListEventsResponse: MessageFns<ListEventsResponse>;
123
159
  export declare const WatchEventsRequest: MessageFns<WatchEventsRequest>;
124
160
  export declare const WatchEventsResponse: MessageFns<WatchEventsResponse>;
161
+ export declare const ListInspectionEventsRequest: MessageFns<ListInspectionEventsRequest>;
162
+ export declare const ListInspectionEventsResponse: MessageFns<ListInspectionEventsResponse>;
163
+ export declare const WatchInspectionEventsRequest: MessageFns<WatchInspectionEventsRequest>;
164
+ export declare const WatchInspectionEventsResponse: MessageFns<WatchInspectionEventsResponse>;
125
165
  export declare const ListProcessTypesRequest: MessageFns<ListProcessTypesRequest>;
126
166
  export declare const ListProcessTypesResponse: MessageFns<ListProcessTypesResponse>;
127
167
  /**
@@ -245,6 +285,13 @@ export interface InspectionService {
245
285
  ListEvents(request: ListEventsRequest): Promise<ListEventsResponse>;
246
286
  /** WatchEvents streams authorized events for a run after an optional cursor. */
247
287
  WatchEvents(request: WatchEventsRequest): Observable<WatchEventsResponse>;
288
+ /** ListInspectionEvents queries tenant-scoped inspection events. */
289
+ ListInspectionEvents(request: ListInspectionEventsRequest): Promise<ListInspectionEventsResponse>;
290
+ /**
291
+ * WatchInspectionEvents streams tenant-scoped inspection events after an
292
+ * optional sequence cursor.
293
+ */
294
+ WatchInspectionEvents(request: WatchInspectionEventsRequest): Observable<WatchInspectionEventsResponse>;
248
295
  /** ListProcessTypes discovers registered process types. */
249
296
  ListProcessTypes(request: ListProcessTypesRequest): Promise<ListProcessTypesResponse>;
250
297
  }
@@ -259,6 +306,8 @@ export declare class InspectionServiceClientImpl implements InspectionService {
259
306
  GetRun(request: GetRunRequest): Promise<GetRunResponse>;
260
307
  ListEvents(request: ListEventsRequest): Promise<ListEventsResponse>;
261
308
  WatchEvents(request: WatchEventsRequest): Observable<WatchEventsResponse>;
309
+ ListInspectionEvents(request: ListInspectionEventsRequest): Promise<ListInspectionEventsResponse>;
310
+ WatchInspectionEvents(request: WatchInspectionEventsRequest): Observable<WatchInspectionEventsResponse>;
262
311
  ListProcessTypes(request: ListProcessTypesRequest): Promise<ListProcessTypesResponse>;
263
312
  }
264
313
  /**
@@ -321,6 +370,31 @@ export declare const InspectionServiceDefinition: {
321
370
  readonly responseStream: true;
322
371
  readonly options: {};
323
372
  };
373
+ /** ListInspectionEvents queries tenant-scoped inspection events. */
374
+ readonly listInspectionEvents: {
375
+ readonly name: "ListInspectionEvents";
376
+ readonly requestType: typeof ListInspectionEventsRequest;
377
+ readonly requestStream: false;
378
+ readonly responseType: typeof ListInspectionEventsResponse;
379
+ readonly responseStream: false;
380
+ readonly options: {
381
+ readonly _unknownFields: {
382
+ readonly 578365826: readonly [Uint8Array];
383
+ };
384
+ };
385
+ };
386
+ /**
387
+ * WatchInspectionEvents streams tenant-scoped inspection events after an
388
+ * optional sequence cursor.
389
+ */
390
+ readonly watchInspectionEvents: {
391
+ readonly name: "WatchInspectionEvents";
392
+ readonly requestType: typeof WatchInspectionEventsRequest;
393
+ readonly requestStream: false;
394
+ readonly responseType: typeof WatchInspectionEventsResponse;
395
+ readonly responseStream: true;
396
+ readonly options: {};
397
+ };
324
398
  /** ListProcessTypes discovers registered process types. */
325
399
  readonly listProcessTypes: {
326
400
  readonly name: "ListProcessTypes";