weave-typescript 0.15.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.
- package/dist/weaveapi/atc/v1/event.pb.d.ts +101 -0
- package/dist/weaveapi/atc/v1/event.pb.js +862 -1
- package/dist/weaveapi/atc/v1/service.pb.d.ts +99 -1
- package/dist/weaveapi/atc/v1/service.pb.js +921 -1
- package/dist/weaveapi/provider/v1/provider.pb.d.ts +123 -0
- package/dist/weaveapi/provider/v1/provider.pb.js +914 -0
- package/dist/weaveapi/provider/v1/service.pb.d.ts +198 -0
- package/dist/weaveapi/provider/v1/service.pb.js +1569 -0
- package/dist/weavesql/atcdb/event_sql.d.ts +68 -0
- package/dist/weavesql/atcdb/event_sql.js +143 -1
- package/dist/weavesql/atcdb/inspection_sql.d.ts +139 -0
- package/dist/weavesql/atcdb/inspection_sql.js +316 -0
- package/dist/weavesql/atcdb/run_template_sql.d.ts +122 -0
- package/dist/weavesql/atcdb/run_template_sql.js +197 -0
- package/dist/weavesql/atcdb/snapshot_sql.d.ts +58 -0
- package/dist/weavesql/atcdb/snapshot_sql.js +124 -0
- package/dist/weavesql/atcdb/team_sql.d.ts +111 -0
- package/dist/weavesql/atcdb/team_sql.js +235 -0
- package/dist/weavesql/atcdb/workflow_template_sql.d.ts +122 -0
- package/dist/weavesql/atcdb/workflow_template_sql.js +197 -0
- package/dist/weavesql/weavedb/provider_sql.d.ts +162 -0
- package/dist/weavesql/weavedb/provider_sql.js +358 -0
- package/package.json +2 -2
|
@@ -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";
|
|
@@ -86,6 +86,52 @@ export interface ListEventsResponse {
|
|
|
86
86
|
events: Event[];
|
|
87
87
|
nextPageToken: string;
|
|
88
88
|
}
|
|
89
|
+
export interface WatchEventsRequest {
|
|
90
|
+
runId: string;
|
|
91
|
+
/** Only return events with sequence greater than this value. */
|
|
92
|
+
afterSequence: number;
|
|
93
|
+
/** Filter by event type. */
|
|
94
|
+
eventTypeFilter: string;
|
|
95
|
+
}
|
|
96
|
+
export interface WatchEventsResponse {
|
|
97
|
+
event: Event | undefined;
|
|
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
|
+
}
|
|
89
135
|
export interface ListProcessTypesRequest {
|
|
90
136
|
pageSize: number;
|
|
91
137
|
pageToken: string;
|
|
@@ -110,6 +156,12 @@ export declare const GetRunRequest: MessageFns<GetRunRequest>;
|
|
|
110
156
|
export declare const GetRunResponse: MessageFns<GetRunResponse>;
|
|
111
157
|
export declare const ListEventsRequest: MessageFns<ListEventsRequest>;
|
|
112
158
|
export declare const ListEventsResponse: MessageFns<ListEventsResponse>;
|
|
159
|
+
export declare const WatchEventsRequest: MessageFns<WatchEventsRequest>;
|
|
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>;
|
|
113
165
|
export declare const ListProcessTypesRequest: MessageFns<ListProcessTypesRequest>;
|
|
114
166
|
export declare const ListProcessTypesResponse: MessageFns<ListProcessTypesResponse>;
|
|
115
167
|
/**
|
|
@@ -231,6 +283,15 @@ export interface InspectionService {
|
|
|
231
283
|
GetRun(request: GetRunRequest): Promise<GetRunResponse>;
|
|
232
284
|
/** ListEvents queries the event log for a run. */
|
|
233
285
|
ListEvents(request: ListEventsRequest): Promise<ListEventsResponse>;
|
|
286
|
+
/** WatchEvents streams authorized events for a run after an optional cursor. */
|
|
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>;
|
|
234
295
|
/** ListProcessTypes discovers registered process types. */
|
|
235
296
|
ListProcessTypes(request: ListProcessTypesRequest): Promise<ListProcessTypesResponse>;
|
|
236
297
|
}
|
|
@@ -244,6 +305,9 @@ export declare class InspectionServiceClientImpl implements InspectionService {
|
|
|
244
305
|
ListRuns(request: ListRunsRequest): Promise<ListRunsResponse>;
|
|
245
306
|
GetRun(request: GetRunRequest): Promise<GetRunResponse>;
|
|
246
307
|
ListEvents(request: ListEventsRequest): Promise<ListEventsResponse>;
|
|
308
|
+
WatchEvents(request: WatchEventsRequest): Observable<WatchEventsResponse>;
|
|
309
|
+
ListInspectionEvents(request: ListInspectionEventsRequest): Promise<ListInspectionEventsResponse>;
|
|
310
|
+
WatchInspectionEvents(request: WatchInspectionEventsRequest): Observable<WatchInspectionEventsResponse>;
|
|
247
311
|
ListProcessTypes(request: ListProcessTypesRequest): Promise<ListProcessTypesResponse>;
|
|
248
312
|
}
|
|
249
313
|
/**
|
|
@@ -297,6 +361,40 @@ export declare const InspectionServiceDefinition: {
|
|
|
297
361
|
};
|
|
298
362
|
};
|
|
299
363
|
};
|
|
364
|
+
/** WatchEvents streams authorized events for a run after an optional cursor. */
|
|
365
|
+
readonly watchEvents: {
|
|
366
|
+
readonly name: "WatchEvents";
|
|
367
|
+
readonly requestType: typeof WatchEventsRequest;
|
|
368
|
+
readonly requestStream: false;
|
|
369
|
+
readonly responseType: typeof WatchEventsResponse;
|
|
370
|
+
readonly responseStream: true;
|
|
371
|
+
readonly options: {};
|
|
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
|
+
};
|
|
300
398
|
/** ListProcessTypes discovers registered process types. */
|
|
301
399
|
readonly listProcessTypes: {
|
|
302
400
|
readonly name: "ListProcessTypes";
|