weave-typescript 0.16.0 → 0.18.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 +75 -1
- package/dist/weaveapi/atc/v1/service.pb.js +759 -1
- package/dist/weavesql/atcdb/event_sql.d.ts +8 -0
- package/dist/weavesql/atcdb/event_sql.js +20 -1
- package/dist/weavesql/atcdb/inspection_sql.d.ts +139 -0
- package/dist/weavesql/atcdb/inspection_sql.js +316 -0
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/atc/v1/service.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.InspectionServiceDefinition = exports.InspectionServiceClientImpl = exports.InspectionServiceServiceName = exports.ATCServiceDefinition = exports.ATCServiceClientImpl = exports.ATCServiceServiceName = exports.ListProcessTypesResponse = exports.ListProcessTypesRequest = exports.WatchEventsResponse = exports.WatchEventsRequest = exports.ListEventsResponse = exports.ListEventsRequest = exports.GetRunResponse = exports.GetRunRequest = exports.ListRunsResponse = exports.ListRunsRequest = exports.GetRunStatusResponse = exports.GetRunStatusRequest = exports.WaitRunResponse = exports.WaitRunRequest = exports.CancelRunResponse = exports.CancelRunRequest = exports.SendMessageResponse = exports.SendMessageRequest = exports.CreateRunResponse = exports.CreateRunRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.InspectionServiceDefinition = exports.InspectionServiceClientImpl = exports.InspectionServiceServiceName = exports.ATCServiceDefinition = exports.ATCServiceClientImpl = exports.ATCServiceServiceName = exports.ListProcessTypesResponse = exports.ListProcessTypesRequest = exports.WatchInspectionEventsResponse = exports.WatchInspectionEventsRequest = exports.ListInspectionEventsResponse = exports.ListInspectionEventsRequest = exports.WatchEventsResponse = exports.WatchEventsRequest = exports.ListEventsResponse = exports.ListEventsRequest = exports.GetRunResponse = exports.GetRunRequest = exports.ListRunsResponse = exports.ListRunsRequest = exports.GetRunStatusResponse = exports.GetRunStatusRequest = exports.WaitRunResponse = exports.WaitRunRequest = exports.CancelRunResponse = exports.CancelRunRequest = exports.SendMessageResponse = exports.SendMessageRequest = exports.CreateRunResponse = exports.CreateRunRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const operators_1 = require("rxjs/operators");
|
|
@@ -1450,6 +1450,700 @@ exports.WatchEventsResponse = {
|
|
|
1450
1450
|
return message;
|
|
1451
1451
|
},
|
|
1452
1452
|
};
|
|
1453
|
+
function createBaseListInspectionEventsRequest() {
|
|
1454
|
+
return {
|
|
1455
|
+
subjectKind: 0,
|
|
1456
|
+
subjectId: "",
|
|
1457
|
+
typeFilter: "",
|
|
1458
|
+
actorKind: 0,
|
|
1459
|
+
actorId: "",
|
|
1460
|
+
runId: "",
|
|
1461
|
+
processId: "",
|
|
1462
|
+
action: 0,
|
|
1463
|
+
outcome: 0,
|
|
1464
|
+
startTime: undefined,
|
|
1465
|
+
endTime: undefined,
|
|
1466
|
+
pageSize: 0,
|
|
1467
|
+
pageToken: "",
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
exports.ListInspectionEventsRequest = {
|
|
1471
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1472
|
+
if (message.subjectKind !== 0) {
|
|
1473
|
+
writer.uint32(8).int32(message.subjectKind);
|
|
1474
|
+
}
|
|
1475
|
+
if (message.subjectId !== "") {
|
|
1476
|
+
writer.uint32(18).string(message.subjectId);
|
|
1477
|
+
}
|
|
1478
|
+
if (message.typeFilter !== "") {
|
|
1479
|
+
writer.uint32(26).string(message.typeFilter);
|
|
1480
|
+
}
|
|
1481
|
+
if (message.actorKind !== 0) {
|
|
1482
|
+
writer.uint32(32).int32(message.actorKind);
|
|
1483
|
+
}
|
|
1484
|
+
if (message.actorId !== "") {
|
|
1485
|
+
writer.uint32(42).string(message.actorId);
|
|
1486
|
+
}
|
|
1487
|
+
if (message.runId !== "") {
|
|
1488
|
+
writer.uint32(50).string(message.runId);
|
|
1489
|
+
}
|
|
1490
|
+
if (message.processId !== "") {
|
|
1491
|
+
writer.uint32(58).string(message.processId);
|
|
1492
|
+
}
|
|
1493
|
+
if (message.action !== 0) {
|
|
1494
|
+
writer.uint32(64).int32(message.action);
|
|
1495
|
+
}
|
|
1496
|
+
if (message.outcome !== 0) {
|
|
1497
|
+
writer.uint32(72).int32(message.outcome);
|
|
1498
|
+
}
|
|
1499
|
+
if (message.startTime !== undefined) {
|
|
1500
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.startTime), writer.uint32(82).fork()).join();
|
|
1501
|
+
}
|
|
1502
|
+
if (message.endTime !== undefined) {
|
|
1503
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.endTime), writer.uint32(90).fork()).join();
|
|
1504
|
+
}
|
|
1505
|
+
if (message.pageSize !== 0) {
|
|
1506
|
+
writer.uint32(96).int32(message.pageSize);
|
|
1507
|
+
}
|
|
1508
|
+
if (message.pageToken !== "") {
|
|
1509
|
+
writer.uint32(106).string(message.pageToken);
|
|
1510
|
+
}
|
|
1511
|
+
return writer;
|
|
1512
|
+
},
|
|
1513
|
+
decode(input, length) {
|
|
1514
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1515
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1516
|
+
const message = createBaseListInspectionEventsRequest();
|
|
1517
|
+
while (reader.pos < end) {
|
|
1518
|
+
const tag = reader.uint32();
|
|
1519
|
+
switch (tag >>> 3) {
|
|
1520
|
+
case 1: {
|
|
1521
|
+
if (tag !== 8) {
|
|
1522
|
+
break;
|
|
1523
|
+
}
|
|
1524
|
+
message.subjectKind = reader.int32();
|
|
1525
|
+
continue;
|
|
1526
|
+
}
|
|
1527
|
+
case 2: {
|
|
1528
|
+
if (tag !== 18) {
|
|
1529
|
+
break;
|
|
1530
|
+
}
|
|
1531
|
+
message.subjectId = reader.string();
|
|
1532
|
+
continue;
|
|
1533
|
+
}
|
|
1534
|
+
case 3: {
|
|
1535
|
+
if (tag !== 26) {
|
|
1536
|
+
break;
|
|
1537
|
+
}
|
|
1538
|
+
message.typeFilter = reader.string();
|
|
1539
|
+
continue;
|
|
1540
|
+
}
|
|
1541
|
+
case 4: {
|
|
1542
|
+
if (tag !== 32) {
|
|
1543
|
+
break;
|
|
1544
|
+
}
|
|
1545
|
+
message.actorKind = reader.int32();
|
|
1546
|
+
continue;
|
|
1547
|
+
}
|
|
1548
|
+
case 5: {
|
|
1549
|
+
if (tag !== 42) {
|
|
1550
|
+
break;
|
|
1551
|
+
}
|
|
1552
|
+
message.actorId = reader.string();
|
|
1553
|
+
continue;
|
|
1554
|
+
}
|
|
1555
|
+
case 6: {
|
|
1556
|
+
if (tag !== 50) {
|
|
1557
|
+
break;
|
|
1558
|
+
}
|
|
1559
|
+
message.runId = reader.string();
|
|
1560
|
+
continue;
|
|
1561
|
+
}
|
|
1562
|
+
case 7: {
|
|
1563
|
+
if (tag !== 58) {
|
|
1564
|
+
break;
|
|
1565
|
+
}
|
|
1566
|
+
message.processId = reader.string();
|
|
1567
|
+
continue;
|
|
1568
|
+
}
|
|
1569
|
+
case 8: {
|
|
1570
|
+
if (tag !== 64) {
|
|
1571
|
+
break;
|
|
1572
|
+
}
|
|
1573
|
+
message.action = reader.int32();
|
|
1574
|
+
continue;
|
|
1575
|
+
}
|
|
1576
|
+
case 9: {
|
|
1577
|
+
if (tag !== 72) {
|
|
1578
|
+
break;
|
|
1579
|
+
}
|
|
1580
|
+
message.outcome = reader.int32();
|
|
1581
|
+
continue;
|
|
1582
|
+
}
|
|
1583
|
+
case 10: {
|
|
1584
|
+
if (tag !== 82) {
|
|
1585
|
+
break;
|
|
1586
|
+
}
|
|
1587
|
+
message.startTime = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1588
|
+
continue;
|
|
1589
|
+
}
|
|
1590
|
+
case 11: {
|
|
1591
|
+
if (tag !== 90) {
|
|
1592
|
+
break;
|
|
1593
|
+
}
|
|
1594
|
+
message.endTime = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1595
|
+
continue;
|
|
1596
|
+
}
|
|
1597
|
+
case 12: {
|
|
1598
|
+
if (tag !== 96) {
|
|
1599
|
+
break;
|
|
1600
|
+
}
|
|
1601
|
+
message.pageSize = reader.int32();
|
|
1602
|
+
continue;
|
|
1603
|
+
}
|
|
1604
|
+
case 13: {
|
|
1605
|
+
if (tag !== 106) {
|
|
1606
|
+
break;
|
|
1607
|
+
}
|
|
1608
|
+
message.pageToken = reader.string();
|
|
1609
|
+
continue;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1613
|
+
break;
|
|
1614
|
+
}
|
|
1615
|
+
reader.skip(tag & 7);
|
|
1616
|
+
}
|
|
1617
|
+
return message;
|
|
1618
|
+
},
|
|
1619
|
+
fromJSON(object) {
|
|
1620
|
+
return {
|
|
1621
|
+
subjectKind: isSet(object.subjectKind)
|
|
1622
|
+
? (0, event_pb_1.inspectionSubjectKindFromJSON)(object.subjectKind)
|
|
1623
|
+
: isSet(object.subject_kind)
|
|
1624
|
+
? (0, event_pb_1.inspectionSubjectKindFromJSON)(object.subject_kind)
|
|
1625
|
+
: 0,
|
|
1626
|
+
subjectId: isSet(object.subjectId)
|
|
1627
|
+
? globalThis.String(object.subjectId)
|
|
1628
|
+
: isSet(object.subject_id)
|
|
1629
|
+
? globalThis.String(object.subject_id)
|
|
1630
|
+
: "",
|
|
1631
|
+
typeFilter: isSet(object.typeFilter)
|
|
1632
|
+
? globalThis.String(object.typeFilter)
|
|
1633
|
+
: isSet(object.type_filter)
|
|
1634
|
+
? globalThis.String(object.type_filter)
|
|
1635
|
+
: "",
|
|
1636
|
+
actorKind: isSet(object.actorKind)
|
|
1637
|
+
? (0, event_pb_1.inspectionActorKindFromJSON)(object.actorKind)
|
|
1638
|
+
: isSet(object.actor_kind)
|
|
1639
|
+
? (0, event_pb_1.inspectionActorKindFromJSON)(object.actor_kind)
|
|
1640
|
+
: 0,
|
|
1641
|
+
actorId: isSet(object.actorId)
|
|
1642
|
+
? globalThis.String(object.actorId)
|
|
1643
|
+
: isSet(object.actor_id)
|
|
1644
|
+
? globalThis.String(object.actor_id)
|
|
1645
|
+
: "",
|
|
1646
|
+
runId: isSet(object.runId)
|
|
1647
|
+
? globalThis.String(object.runId)
|
|
1648
|
+
: isSet(object.run_id)
|
|
1649
|
+
? globalThis.String(object.run_id)
|
|
1650
|
+
: "",
|
|
1651
|
+
processId: isSet(object.processId)
|
|
1652
|
+
? globalThis.String(object.processId)
|
|
1653
|
+
: isSet(object.process_id)
|
|
1654
|
+
? globalThis.String(object.process_id)
|
|
1655
|
+
: "",
|
|
1656
|
+
action: isSet(object.action) ? (0, event_pb_1.inspectionActionFromJSON)(object.action) : 0,
|
|
1657
|
+
outcome: isSet(object.outcome) ? (0, event_pb_1.inspectionOutcomeFromJSON)(object.outcome) : 0,
|
|
1658
|
+
startTime: isSet(object.startTime)
|
|
1659
|
+
? fromJsonTimestamp(object.startTime)
|
|
1660
|
+
: isSet(object.start_time)
|
|
1661
|
+
? fromJsonTimestamp(object.start_time)
|
|
1662
|
+
: undefined,
|
|
1663
|
+
endTime: isSet(object.endTime)
|
|
1664
|
+
? fromJsonTimestamp(object.endTime)
|
|
1665
|
+
: isSet(object.end_time)
|
|
1666
|
+
? fromJsonTimestamp(object.end_time)
|
|
1667
|
+
: undefined,
|
|
1668
|
+
pageSize: isSet(object.pageSize)
|
|
1669
|
+
? globalThis.Number(object.pageSize)
|
|
1670
|
+
: isSet(object.page_size)
|
|
1671
|
+
? globalThis.Number(object.page_size)
|
|
1672
|
+
: 0,
|
|
1673
|
+
pageToken: isSet(object.pageToken)
|
|
1674
|
+
? globalThis.String(object.pageToken)
|
|
1675
|
+
: isSet(object.page_token)
|
|
1676
|
+
? globalThis.String(object.page_token)
|
|
1677
|
+
: "",
|
|
1678
|
+
};
|
|
1679
|
+
},
|
|
1680
|
+
toJSON(message) {
|
|
1681
|
+
const obj = {};
|
|
1682
|
+
if (message.subjectKind !== 0) {
|
|
1683
|
+
obj.subjectKind = (0, event_pb_1.inspectionSubjectKindToJSON)(message.subjectKind);
|
|
1684
|
+
}
|
|
1685
|
+
if (message.subjectId !== "") {
|
|
1686
|
+
obj.subjectId = message.subjectId;
|
|
1687
|
+
}
|
|
1688
|
+
if (message.typeFilter !== "") {
|
|
1689
|
+
obj.typeFilter = message.typeFilter;
|
|
1690
|
+
}
|
|
1691
|
+
if (message.actorKind !== 0) {
|
|
1692
|
+
obj.actorKind = (0, event_pb_1.inspectionActorKindToJSON)(message.actorKind);
|
|
1693
|
+
}
|
|
1694
|
+
if (message.actorId !== "") {
|
|
1695
|
+
obj.actorId = message.actorId;
|
|
1696
|
+
}
|
|
1697
|
+
if (message.runId !== "") {
|
|
1698
|
+
obj.runId = message.runId;
|
|
1699
|
+
}
|
|
1700
|
+
if (message.processId !== "") {
|
|
1701
|
+
obj.processId = message.processId;
|
|
1702
|
+
}
|
|
1703
|
+
if (message.action !== 0) {
|
|
1704
|
+
obj.action = (0, event_pb_1.inspectionActionToJSON)(message.action);
|
|
1705
|
+
}
|
|
1706
|
+
if (message.outcome !== 0) {
|
|
1707
|
+
obj.outcome = (0, event_pb_1.inspectionOutcomeToJSON)(message.outcome);
|
|
1708
|
+
}
|
|
1709
|
+
if (message.startTime !== undefined) {
|
|
1710
|
+
obj.startTime = message.startTime.toISOString();
|
|
1711
|
+
}
|
|
1712
|
+
if (message.endTime !== undefined) {
|
|
1713
|
+
obj.endTime = message.endTime.toISOString();
|
|
1714
|
+
}
|
|
1715
|
+
if (message.pageSize !== 0) {
|
|
1716
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
1717
|
+
}
|
|
1718
|
+
if (message.pageToken !== "") {
|
|
1719
|
+
obj.pageToken = message.pageToken;
|
|
1720
|
+
}
|
|
1721
|
+
return obj;
|
|
1722
|
+
},
|
|
1723
|
+
create(base) {
|
|
1724
|
+
return exports.ListInspectionEventsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1725
|
+
},
|
|
1726
|
+
fromPartial(object) {
|
|
1727
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1728
|
+
const message = createBaseListInspectionEventsRequest();
|
|
1729
|
+
message.subjectKind = (_a = object.subjectKind) !== null && _a !== void 0 ? _a : 0;
|
|
1730
|
+
message.subjectId = (_b = object.subjectId) !== null && _b !== void 0 ? _b : "";
|
|
1731
|
+
message.typeFilter = (_c = object.typeFilter) !== null && _c !== void 0 ? _c : "";
|
|
1732
|
+
message.actorKind = (_d = object.actorKind) !== null && _d !== void 0 ? _d : 0;
|
|
1733
|
+
message.actorId = (_e = object.actorId) !== null && _e !== void 0 ? _e : "";
|
|
1734
|
+
message.runId = (_f = object.runId) !== null && _f !== void 0 ? _f : "";
|
|
1735
|
+
message.processId = (_g = object.processId) !== null && _g !== void 0 ? _g : "";
|
|
1736
|
+
message.action = (_h = object.action) !== null && _h !== void 0 ? _h : 0;
|
|
1737
|
+
message.outcome = (_j = object.outcome) !== null && _j !== void 0 ? _j : 0;
|
|
1738
|
+
message.startTime = (_k = object.startTime) !== null && _k !== void 0 ? _k : undefined;
|
|
1739
|
+
message.endTime = (_l = object.endTime) !== null && _l !== void 0 ? _l : undefined;
|
|
1740
|
+
message.pageSize = (_m = object.pageSize) !== null && _m !== void 0 ? _m : 0;
|
|
1741
|
+
message.pageToken = (_o = object.pageToken) !== null && _o !== void 0 ? _o : "";
|
|
1742
|
+
return message;
|
|
1743
|
+
},
|
|
1744
|
+
};
|
|
1745
|
+
function createBaseListInspectionEventsResponse() {
|
|
1746
|
+
return { events: [], nextPageToken: "" };
|
|
1747
|
+
}
|
|
1748
|
+
exports.ListInspectionEventsResponse = {
|
|
1749
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1750
|
+
for (const v of message.events) {
|
|
1751
|
+
event_pb_1.InspectionEvent.encode(v, writer.uint32(10).fork()).join();
|
|
1752
|
+
}
|
|
1753
|
+
if (message.nextPageToken !== "") {
|
|
1754
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
1755
|
+
}
|
|
1756
|
+
return writer;
|
|
1757
|
+
},
|
|
1758
|
+
decode(input, length) {
|
|
1759
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1760
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1761
|
+
const message = createBaseListInspectionEventsResponse();
|
|
1762
|
+
while (reader.pos < end) {
|
|
1763
|
+
const tag = reader.uint32();
|
|
1764
|
+
switch (tag >>> 3) {
|
|
1765
|
+
case 1: {
|
|
1766
|
+
if (tag !== 10) {
|
|
1767
|
+
break;
|
|
1768
|
+
}
|
|
1769
|
+
message.events.push(event_pb_1.InspectionEvent.decode(reader, reader.uint32()));
|
|
1770
|
+
continue;
|
|
1771
|
+
}
|
|
1772
|
+
case 2: {
|
|
1773
|
+
if (tag !== 18) {
|
|
1774
|
+
break;
|
|
1775
|
+
}
|
|
1776
|
+
message.nextPageToken = reader.string();
|
|
1777
|
+
continue;
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1781
|
+
break;
|
|
1782
|
+
}
|
|
1783
|
+
reader.skip(tag & 7);
|
|
1784
|
+
}
|
|
1785
|
+
return message;
|
|
1786
|
+
},
|
|
1787
|
+
fromJSON(object) {
|
|
1788
|
+
return {
|
|
1789
|
+
events: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.events)
|
|
1790
|
+
? object.events.map((e) => event_pb_1.InspectionEvent.fromJSON(e))
|
|
1791
|
+
: [],
|
|
1792
|
+
nextPageToken: isSet(object.nextPageToken)
|
|
1793
|
+
? globalThis.String(object.nextPageToken)
|
|
1794
|
+
: isSet(object.next_page_token)
|
|
1795
|
+
? globalThis.String(object.next_page_token)
|
|
1796
|
+
: "",
|
|
1797
|
+
};
|
|
1798
|
+
},
|
|
1799
|
+
toJSON(message) {
|
|
1800
|
+
var _a;
|
|
1801
|
+
const obj = {};
|
|
1802
|
+
if ((_a = message.events) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1803
|
+
obj.events = message.events.map((e) => event_pb_1.InspectionEvent.toJSON(e));
|
|
1804
|
+
}
|
|
1805
|
+
if (message.nextPageToken !== "") {
|
|
1806
|
+
obj.nextPageToken = message.nextPageToken;
|
|
1807
|
+
}
|
|
1808
|
+
return obj;
|
|
1809
|
+
},
|
|
1810
|
+
create(base) {
|
|
1811
|
+
return exports.ListInspectionEventsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1812
|
+
},
|
|
1813
|
+
fromPartial(object) {
|
|
1814
|
+
var _a;
|
|
1815
|
+
var _b;
|
|
1816
|
+
const message = createBaseListInspectionEventsResponse();
|
|
1817
|
+
message.events = ((_a = object.events) === null || _a === void 0 ? void 0 : _a.map((e) => event_pb_1.InspectionEvent.fromPartial(e))) || [];
|
|
1818
|
+
message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
|
|
1819
|
+
return message;
|
|
1820
|
+
},
|
|
1821
|
+
};
|
|
1822
|
+
function createBaseWatchInspectionEventsRequest() {
|
|
1823
|
+
return {
|
|
1824
|
+
subjectKind: 0,
|
|
1825
|
+
subjectId: "",
|
|
1826
|
+
typeFilter: "",
|
|
1827
|
+
actorKind: 0,
|
|
1828
|
+
actorId: "",
|
|
1829
|
+
runId: "",
|
|
1830
|
+
processId: "",
|
|
1831
|
+
action: 0,
|
|
1832
|
+
outcome: 0,
|
|
1833
|
+
startTime: undefined,
|
|
1834
|
+
endTime: undefined,
|
|
1835
|
+
afterSequence: 0,
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
exports.WatchInspectionEventsRequest = {
|
|
1839
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1840
|
+
if (message.subjectKind !== 0) {
|
|
1841
|
+
writer.uint32(8).int32(message.subjectKind);
|
|
1842
|
+
}
|
|
1843
|
+
if (message.subjectId !== "") {
|
|
1844
|
+
writer.uint32(18).string(message.subjectId);
|
|
1845
|
+
}
|
|
1846
|
+
if (message.typeFilter !== "") {
|
|
1847
|
+
writer.uint32(26).string(message.typeFilter);
|
|
1848
|
+
}
|
|
1849
|
+
if (message.actorKind !== 0) {
|
|
1850
|
+
writer.uint32(32).int32(message.actorKind);
|
|
1851
|
+
}
|
|
1852
|
+
if (message.actorId !== "") {
|
|
1853
|
+
writer.uint32(42).string(message.actorId);
|
|
1854
|
+
}
|
|
1855
|
+
if (message.runId !== "") {
|
|
1856
|
+
writer.uint32(50).string(message.runId);
|
|
1857
|
+
}
|
|
1858
|
+
if (message.processId !== "") {
|
|
1859
|
+
writer.uint32(58).string(message.processId);
|
|
1860
|
+
}
|
|
1861
|
+
if (message.action !== 0) {
|
|
1862
|
+
writer.uint32(64).int32(message.action);
|
|
1863
|
+
}
|
|
1864
|
+
if (message.outcome !== 0) {
|
|
1865
|
+
writer.uint32(72).int32(message.outcome);
|
|
1866
|
+
}
|
|
1867
|
+
if (message.startTime !== undefined) {
|
|
1868
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.startTime), writer.uint32(82).fork()).join();
|
|
1869
|
+
}
|
|
1870
|
+
if (message.endTime !== undefined) {
|
|
1871
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.endTime), writer.uint32(90).fork()).join();
|
|
1872
|
+
}
|
|
1873
|
+
if (message.afterSequence !== 0) {
|
|
1874
|
+
writer.uint32(96).uint64(message.afterSequence);
|
|
1875
|
+
}
|
|
1876
|
+
return writer;
|
|
1877
|
+
},
|
|
1878
|
+
decode(input, length) {
|
|
1879
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1880
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1881
|
+
const message = createBaseWatchInspectionEventsRequest();
|
|
1882
|
+
while (reader.pos < end) {
|
|
1883
|
+
const tag = reader.uint32();
|
|
1884
|
+
switch (tag >>> 3) {
|
|
1885
|
+
case 1: {
|
|
1886
|
+
if (tag !== 8) {
|
|
1887
|
+
break;
|
|
1888
|
+
}
|
|
1889
|
+
message.subjectKind = reader.int32();
|
|
1890
|
+
continue;
|
|
1891
|
+
}
|
|
1892
|
+
case 2: {
|
|
1893
|
+
if (tag !== 18) {
|
|
1894
|
+
break;
|
|
1895
|
+
}
|
|
1896
|
+
message.subjectId = reader.string();
|
|
1897
|
+
continue;
|
|
1898
|
+
}
|
|
1899
|
+
case 3: {
|
|
1900
|
+
if (tag !== 26) {
|
|
1901
|
+
break;
|
|
1902
|
+
}
|
|
1903
|
+
message.typeFilter = reader.string();
|
|
1904
|
+
continue;
|
|
1905
|
+
}
|
|
1906
|
+
case 4: {
|
|
1907
|
+
if (tag !== 32) {
|
|
1908
|
+
break;
|
|
1909
|
+
}
|
|
1910
|
+
message.actorKind = reader.int32();
|
|
1911
|
+
continue;
|
|
1912
|
+
}
|
|
1913
|
+
case 5: {
|
|
1914
|
+
if (tag !== 42) {
|
|
1915
|
+
break;
|
|
1916
|
+
}
|
|
1917
|
+
message.actorId = reader.string();
|
|
1918
|
+
continue;
|
|
1919
|
+
}
|
|
1920
|
+
case 6: {
|
|
1921
|
+
if (tag !== 50) {
|
|
1922
|
+
break;
|
|
1923
|
+
}
|
|
1924
|
+
message.runId = reader.string();
|
|
1925
|
+
continue;
|
|
1926
|
+
}
|
|
1927
|
+
case 7: {
|
|
1928
|
+
if (tag !== 58) {
|
|
1929
|
+
break;
|
|
1930
|
+
}
|
|
1931
|
+
message.processId = reader.string();
|
|
1932
|
+
continue;
|
|
1933
|
+
}
|
|
1934
|
+
case 8: {
|
|
1935
|
+
if (tag !== 64) {
|
|
1936
|
+
break;
|
|
1937
|
+
}
|
|
1938
|
+
message.action = reader.int32();
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
case 9: {
|
|
1942
|
+
if (tag !== 72) {
|
|
1943
|
+
break;
|
|
1944
|
+
}
|
|
1945
|
+
message.outcome = reader.int32();
|
|
1946
|
+
continue;
|
|
1947
|
+
}
|
|
1948
|
+
case 10: {
|
|
1949
|
+
if (tag !== 82) {
|
|
1950
|
+
break;
|
|
1951
|
+
}
|
|
1952
|
+
message.startTime = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1953
|
+
continue;
|
|
1954
|
+
}
|
|
1955
|
+
case 11: {
|
|
1956
|
+
if (tag !== 90) {
|
|
1957
|
+
break;
|
|
1958
|
+
}
|
|
1959
|
+
message.endTime = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1960
|
+
continue;
|
|
1961
|
+
}
|
|
1962
|
+
case 12: {
|
|
1963
|
+
if (tag !== 96) {
|
|
1964
|
+
break;
|
|
1965
|
+
}
|
|
1966
|
+
message.afterSequence = longToNumber(reader.uint64());
|
|
1967
|
+
continue;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1971
|
+
break;
|
|
1972
|
+
}
|
|
1973
|
+
reader.skip(tag & 7);
|
|
1974
|
+
}
|
|
1975
|
+
return message;
|
|
1976
|
+
},
|
|
1977
|
+
fromJSON(object) {
|
|
1978
|
+
return {
|
|
1979
|
+
subjectKind: isSet(object.subjectKind)
|
|
1980
|
+
? (0, event_pb_1.inspectionSubjectKindFromJSON)(object.subjectKind)
|
|
1981
|
+
: isSet(object.subject_kind)
|
|
1982
|
+
? (0, event_pb_1.inspectionSubjectKindFromJSON)(object.subject_kind)
|
|
1983
|
+
: 0,
|
|
1984
|
+
subjectId: isSet(object.subjectId)
|
|
1985
|
+
? globalThis.String(object.subjectId)
|
|
1986
|
+
: isSet(object.subject_id)
|
|
1987
|
+
? globalThis.String(object.subject_id)
|
|
1988
|
+
: "",
|
|
1989
|
+
typeFilter: isSet(object.typeFilter)
|
|
1990
|
+
? globalThis.String(object.typeFilter)
|
|
1991
|
+
: isSet(object.type_filter)
|
|
1992
|
+
? globalThis.String(object.type_filter)
|
|
1993
|
+
: "",
|
|
1994
|
+
actorKind: isSet(object.actorKind)
|
|
1995
|
+
? (0, event_pb_1.inspectionActorKindFromJSON)(object.actorKind)
|
|
1996
|
+
: isSet(object.actor_kind)
|
|
1997
|
+
? (0, event_pb_1.inspectionActorKindFromJSON)(object.actor_kind)
|
|
1998
|
+
: 0,
|
|
1999
|
+
actorId: isSet(object.actorId)
|
|
2000
|
+
? globalThis.String(object.actorId)
|
|
2001
|
+
: isSet(object.actor_id)
|
|
2002
|
+
? globalThis.String(object.actor_id)
|
|
2003
|
+
: "",
|
|
2004
|
+
runId: isSet(object.runId)
|
|
2005
|
+
? globalThis.String(object.runId)
|
|
2006
|
+
: isSet(object.run_id)
|
|
2007
|
+
? globalThis.String(object.run_id)
|
|
2008
|
+
: "",
|
|
2009
|
+
processId: isSet(object.processId)
|
|
2010
|
+
? globalThis.String(object.processId)
|
|
2011
|
+
: isSet(object.process_id)
|
|
2012
|
+
? globalThis.String(object.process_id)
|
|
2013
|
+
: "",
|
|
2014
|
+
action: isSet(object.action) ? (0, event_pb_1.inspectionActionFromJSON)(object.action) : 0,
|
|
2015
|
+
outcome: isSet(object.outcome) ? (0, event_pb_1.inspectionOutcomeFromJSON)(object.outcome) : 0,
|
|
2016
|
+
startTime: isSet(object.startTime)
|
|
2017
|
+
? fromJsonTimestamp(object.startTime)
|
|
2018
|
+
: isSet(object.start_time)
|
|
2019
|
+
? fromJsonTimestamp(object.start_time)
|
|
2020
|
+
: undefined,
|
|
2021
|
+
endTime: isSet(object.endTime)
|
|
2022
|
+
? fromJsonTimestamp(object.endTime)
|
|
2023
|
+
: isSet(object.end_time)
|
|
2024
|
+
? fromJsonTimestamp(object.end_time)
|
|
2025
|
+
: undefined,
|
|
2026
|
+
afterSequence: isSet(object.afterSequence)
|
|
2027
|
+
? globalThis.Number(object.afterSequence)
|
|
2028
|
+
: isSet(object.after_sequence)
|
|
2029
|
+
? globalThis.Number(object.after_sequence)
|
|
2030
|
+
: 0,
|
|
2031
|
+
};
|
|
2032
|
+
},
|
|
2033
|
+
toJSON(message) {
|
|
2034
|
+
const obj = {};
|
|
2035
|
+
if (message.subjectKind !== 0) {
|
|
2036
|
+
obj.subjectKind = (0, event_pb_1.inspectionSubjectKindToJSON)(message.subjectKind);
|
|
2037
|
+
}
|
|
2038
|
+
if (message.subjectId !== "") {
|
|
2039
|
+
obj.subjectId = message.subjectId;
|
|
2040
|
+
}
|
|
2041
|
+
if (message.typeFilter !== "") {
|
|
2042
|
+
obj.typeFilter = message.typeFilter;
|
|
2043
|
+
}
|
|
2044
|
+
if (message.actorKind !== 0) {
|
|
2045
|
+
obj.actorKind = (0, event_pb_1.inspectionActorKindToJSON)(message.actorKind);
|
|
2046
|
+
}
|
|
2047
|
+
if (message.actorId !== "") {
|
|
2048
|
+
obj.actorId = message.actorId;
|
|
2049
|
+
}
|
|
2050
|
+
if (message.runId !== "") {
|
|
2051
|
+
obj.runId = message.runId;
|
|
2052
|
+
}
|
|
2053
|
+
if (message.processId !== "") {
|
|
2054
|
+
obj.processId = message.processId;
|
|
2055
|
+
}
|
|
2056
|
+
if (message.action !== 0) {
|
|
2057
|
+
obj.action = (0, event_pb_1.inspectionActionToJSON)(message.action);
|
|
2058
|
+
}
|
|
2059
|
+
if (message.outcome !== 0) {
|
|
2060
|
+
obj.outcome = (0, event_pb_1.inspectionOutcomeToJSON)(message.outcome);
|
|
2061
|
+
}
|
|
2062
|
+
if (message.startTime !== undefined) {
|
|
2063
|
+
obj.startTime = message.startTime.toISOString();
|
|
2064
|
+
}
|
|
2065
|
+
if (message.endTime !== undefined) {
|
|
2066
|
+
obj.endTime = message.endTime.toISOString();
|
|
2067
|
+
}
|
|
2068
|
+
if (message.afterSequence !== 0) {
|
|
2069
|
+
obj.afterSequence = Math.round(message.afterSequence);
|
|
2070
|
+
}
|
|
2071
|
+
return obj;
|
|
2072
|
+
},
|
|
2073
|
+
create(base) {
|
|
2074
|
+
return exports.WatchInspectionEventsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2075
|
+
},
|
|
2076
|
+
fromPartial(object) {
|
|
2077
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2078
|
+
const message = createBaseWatchInspectionEventsRequest();
|
|
2079
|
+
message.subjectKind = (_a = object.subjectKind) !== null && _a !== void 0 ? _a : 0;
|
|
2080
|
+
message.subjectId = (_b = object.subjectId) !== null && _b !== void 0 ? _b : "";
|
|
2081
|
+
message.typeFilter = (_c = object.typeFilter) !== null && _c !== void 0 ? _c : "";
|
|
2082
|
+
message.actorKind = (_d = object.actorKind) !== null && _d !== void 0 ? _d : 0;
|
|
2083
|
+
message.actorId = (_e = object.actorId) !== null && _e !== void 0 ? _e : "";
|
|
2084
|
+
message.runId = (_f = object.runId) !== null && _f !== void 0 ? _f : "";
|
|
2085
|
+
message.processId = (_g = object.processId) !== null && _g !== void 0 ? _g : "";
|
|
2086
|
+
message.action = (_h = object.action) !== null && _h !== void 0 ? _h : 0;
|
|
2087
|
+
message.outcome = (_j = object.outcome) !== null && _j !== void 0 ? _j : 0;
|
|
2088
|
+
message.startTime = (_k = object.startTime) !== null && _k !== void 0 ? _k : undefined;
|
|
2089
|
+
message.endTime = (_l = object.endTime) !== null && _l !== void 0 ? _l : undefined;
|
|
2090
|
+
message.afterSequence = (_m = object.afterSequence) !== null && _m !== void 0 ? _m : 0;
|
|
2091
|
+
return message;
|
|
2092
|
+
},
|
|
2093
|
+
};
|
|
2094
|
+
function createBaseWatchInspectionEventsResponse() {
|
|
2095
|
+
return { event: undefined };
|
|
2096
|
+
}
|
|
2097
|
+
exports.WatchInspectionEventsResponse = {
|
|
2098
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2099
|
+
if (message.event !== undefined) {
|
|
2100
|
+
event_pb_1.InspectionEvent.encode(message.event, writer.uint32(10).fork()).join();
|
|
2101
|
+
}
|
|
2102
|
+
return writer;
|
|
2103
|
+
},
|
|
2104
|
+
decode(input, length) {
|
|
2105
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2106
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2107
|
+
const message = createBaseWatchInspectionEventsResponse();
|
|
2108
|
+
while (reader.pos < end) {
|
|
2109
|
+
const tag = reader.uint32();
|
|
2110
|
+
switch (tag >>> 3) {
|
|
2111
|
+
case 1: {
|
|
2112
|
+
if (tag !== 10) {
|
|
2113
|
+
break;
|
|
2114
|
+
}
|
|
2115
|
+
message.event = event_pb_1.InspectionEvent.decode(reader, reader.uint32());
|
|
2116
|
+
continue;
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2120
|
+
break;
|
|
2121
|
+
}
|
|
2122
|
+
reader.skip(tag & 7);
|
|
2123
|
+
}
|
|
2124
|
+
return message;
|
|
2125
|
+
},
|
|
2126
|
+
fromJSON(object) {
|
|
2127
|
+
return { event: isSet(object.event) ? event_pb_1.InspectionEvent.fromJSON(object.event) : undefined };
|
|
2128
|
+
},
|
|
2129
|
+
toJSON(message) {
|
|
2130
|
+
const obj = {};
|
|
2131
|
+
if (message.event !== undefined) {
|
|
2132
|
+
obj.event = event_pb_1.InspectionEvent.toJSON(message.event);
|
|
2133
|
+
}
|
|
2134
|
+
return obj;
|
|
2135
|
+
},
|
|
2136
|
+
create(base) {
|
|
2137
|
+
return exports.WatchInspectionEventsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2138
|
+
},
|
|
2139
|
+
fromPartial(object) {
|
|
2140
|
+
const message = createBaseWatchInspectionEventsResponse();
|
|
2141
|
+
message.event = (object.event !== undefined && object.event !== null)
|
|
2142
|
+
? event_pb_1.InspectionEvent.fromPartial(object.event)
|
|
2143
|
+
: undefined;
|
|
2144
|
+
return message;
|
|
2145
|
+
},
|
|
2146
|
+
};
|
|
1453
2147
|
function createBaseListProcessTypesRequest() {
|
|
1454
2148
|
return { pageSize: 0, pageToken: "" };
|
|
1455
2149
|
}
|
|
@@ -1850,6 +2544,8 @@ class InspectionServiceClientImpl {
|
|
|
1850
2544
|
this.GetRun = this.GetRun.bind(this);
|
|
1851
2545
|
this.ListEvents = this.ListEvents.bind(this);
|
|
1852
2546
|
this.WatchEvents = this.WatchEvents.bind(this);
|
|
2547
|
+
this.ListInspectionEvents = this.ListInspectionEvents.bind(this);
|
|
2548
|
+
this.WatchInspectionEvents = this.WatchInspectionEvents.bind(this);
|
|
1853
2549
|
this.ListProcessTypes = this.ListProcessTypes.bind(this);
|
|
1854
2550
|
}
|
|
1855
2551
|
ListRuns(request) {
|
|
@@ -1872,6 +2568,16 @@ class InspectionServiceClientImpl {
|
|
|
1872
2568
|
const result = this.rpc.serverStreamingRequest(this.service, "WatchEvents", data);
|
|
1873
2569
|
return result.pipe((0, operators_1.map)((data) => exports.WatchEventsResponse.decode(new wire_1.BinaryReader(data))));
|
|
1874
2570
|
}
|
|
2571
|
+
ListInspectionEvents(request) {
|
|
2572
|
+
const data = exports.ListInspectionEventsRequest.encode(request).finish();
|
|
2573
|
+
const promise = this.rpc.request(this.service, "ListInspectionEvents", data);
|
|
2574
|
+
return promise.then((data) => exports.ListInspectionEventsResponse.decode(new wire_1.BinaryReader(data)));
|
|
2575
|
+
}
|
|
2576
|
+
WatchInspectionEvents(request) {
|
|
2577
|
+
const data = exports.WatchInspectionEventsRequest.encode(request).finish();
|
|
2578
|
+
const result = this.rpc.serverStreamingRequest(this.service, "WatchInspectionEvents", data);
|
|
2579
|
+
return result.pipe((0, operators_1.map)((data) => exports.WatchInspectionEventsResponse.decode(new wire_1.BinaryReader(data))));
|
|
2580
|
+
}
|
|
1875
2581
|
ListProcessTypes(request) {
|
|
1876
2582
|
const data = exports.ListProcessTypesRequest.encode(request).finish();
|
|
1877
2583
|
const promise = this.rpc.request(this.service, "ListProcessTypes", data);
|
|
@@ -1985,6 +2691,58 @@ exports.InspectionServiceDefinition = {
|
|
|
1985
2691
|
responseStream: true,
|
|
1986
2692
|
options: {},
|
|
1987
2693
|
},
|
|
2694
|
+
/** ListInspectionEvents queries tenant-scoped inspection events. */
|
|
2695
|
+
listInspectionEvents: {
|
|
2696
|
+
name: "ListInspectionEvents",
|
|
2697
|
+
requestType: exports.ListInspectionEventsRequest,
|
|
2698
|
+
requestStream: false,
|
|
2699
|
+
responseType: exports.ListInspectionEventsResponse,
|
|
2700
|
+
responseStream: false,
|
|
2701
|
+
options: {
|
|
2702
|
+
_unknownFields: {
|
|
2703
|
+
578365826: [
|
|
2704
|
+
new Uint8Array([
|
|
2705
|
+
23,
|
|
2706
|
+
18,
|
|
2707
|
+
21,
|
|
2708
|
+
47,
|
|
2709
|
+
118,
|
|
2710
|
+
49,
|
|
2711
|
+
47,
|
|
2712
|
+
105,
|
|
2713
|
+
110,
|
|
2714
|
+
115,
|
|
2715
|
+
112,
|
|
2716
|
+
101,
|
|
2717
|
+
99,
|
|
2718
|
+
116,
|
|
2719
|
+
105,
|
|
2720
|
+
111,
|
|
2721
|
+
110,
|
|
2722
|
+
47,
|
|
2723
|
+
101,
|
|
2724
|
+
118,
|
|
2725
|
+
101,
|
|
2726
|
+
110,
|
|
2727
|
+
116,
|
|
2728
|
+
115,
|
|
2729
|
+
]),
|
|
2730
|
+
],
|
|
2731
|
+
},
|
|
2732
|
+
},
|
|
2733
|
+
},
|
|
2734
|
+
/**
|
|
2735
|
+
* WatchInspectionEvents streams tenant-scoped inspection events after an
|
|
2736
|
+
* optional sequence cursor.
|
|
2737
|
+
*/
|
|
2738
|
+
watchInspectionEvents: {
|
|
2739
|
+
name: "WatchInspectionEvents",
|
|
2740
|
+
requestType: exports.WatchInspectionEventsRequest,
|
|
2741
|
+
requestStream: false,
|
|
2742
|
+
responseType: exports.WatchInspectionEventsResponse,
|
|
2743
|
+
responseStream: true,
|
|
2744
|
+
options: {},
|
|
2745
|
+
},
|
|
1988
2746
|
/** ListProcessTypes discovers registered process types. */
|
|
1989
2747
|
listProcessTypes: {
|
|
1990
2748
|
name: "ListProcessTypes",
|