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
|
@@ -5,11 +5,362 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/atc/v1/event.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Event = exports.protobufPackage = void 0;
|
|
8
|
+
exports.InspectionEvent = exports.InspectionActor = exports.InspectionSubject = exports.Event = exports.InspectionActorKind = exports.InspectionSubjectKind = exports.InspectionOutcome = exports.InspectionAction = exports.InspectionCategory = exports.protobufPackage = void 0;
|
|
9
|
+
exports.inspectionCategoryFromJSON = inspectionCategoryFromJSON;
|
|
10
|
+
exports.inspectionCategoryToJSON = inspectionCategoryToJSON;
|
|
11
|
+
exports.inspectionActionFromJSON = inspectionActionFromJSON;
|
|
12
|
+
exports.inspectionActionToJSON = inspectionActionToJSON;
|
|
13
|
+
exports.inspectionOutcomeFromJSON = inspectionOutcomeFromJSON;
|
|
14
|
+
exports.inspectionOutcomeToJSON = inspectionOutcomeToJSON;
|
|
15
|
+
exports.inspectionSubjectKindFromJSON = inspectionSubjectKindFromJSON;
|
|
16
|
+
exports.inspectionSubjectKindToJSON = inspectionSubjectKindToJSON;
|
|
17
|
+
exports.inspectionActorKindFromJSON = inspectionActorKindFromJSON;
|
|
18
|
+
exports.inspectionActorKindToJSON = inspectionActorKindToJSON;
|
|
9
19
|
/* eslint-disable */
|
|
10
20
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
21
|
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
12
22
|
exports.protobufPackage = "weaveapi.atc.v1";
|
|
23
|
+
var InspectionCategory;
|
|
24
|
+
(function (InspectionCategory) {
|
|
25
|
+
InspectionCategory[InspectionCategory["INSPECTION_CATEGORY_UNSPECIFIED"] = 0] = "INSPECTION_CATEGORY_UNSPECIFIED";
|
|
26
|
+
InspectionCategory[InspectionCategory["INSPECTION_CATEGORY_MEMORY"] = 1] = "INSPECTION_CATEGORY_MEMORY";
|
|
27
|
+
InspectionCategory[InspectionCategory["INSPECTION_CATEGORY_ARTIFACT"] = 2] = "INSPECTION_CATEGORY_ARTIFACT";
|
|
28
|
+
InspectionCategory[InspectionCategory["INSPECTION_CATEGORY_SECRET"] = 3] = "INSPECTION_CATEGORY_SECRET";
|
|
29
|
+
InspectionCategory[InspectionCategory["INSPECTION_CATEGORY_POLICY"] = 4] = "INSPECTION_CATEGORY_POLICY";
|
|
30
|
+
InspectionCategory[InspectionCategory["INSPECTION_CATEGORY_API"] = 5] = "INSPECTION_CATEGORY_API";
|
|
31
|
+
InspectionCategory[InspectionCategory["INSPECTION_CATEGORY_STORAGE"] = 6] = "INSPECTION_CATEGORY_STORAGE";
|
|
32
|
+
InspectionCategory[InspectionCategory["INSPECTION_CATEGORY_PROCESS"] = 7] = "INSPECTION_CATEGORY_PROCESS";
|
|
33
|
+
InspectionCategory[InspectionCategory["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
34
|
+
})(InspectionCategory || (exports.InspectionCategory = InspectionCategory = {}));
|
|
35
|
+
function inspectionCategoryFromJSON(object) {
|
|
36
|
+
switch (object) {
|
|
37
|
+
case 0:
|
|
38
|
+
case "INSPECTION_CATEGORY_UNSPECIFIED":
|
|
39
|
+
return InspectionCategory.INSPECTION_CATEGORY_UNSPECIFIED;
|
|
40
|
+
case 1:
|
|
41
|
+
case "INSPECTION_CATEGORY_MEMORY":
|
|
42
|
+
return InspectionCategory.INSPECTION_CATEGORY_MEMORY;
|
|
43
|
+
case 2:
|
|
44
|
+
case "INSPECTION_CATEGORY_ARTIFACT":
|
|
45
|
+
return InspectionCategory.INSPECTION_CATEGORY_ARTIFACT;
|
|
46
|
+
case 3:
|
|
47
|
+
case "INSPECTION_CATEGORY_SECRET":
|
|
48
|
+
return InspectionCategory.INSPECTION_CATEGORY_SECRET;
|
|
49
|
+
case 4:
|
|
50
|
+
case "INSPECTION_CATEGORY_POLICY":
|
|
51
|
+
return InspectionCategory.INSPECTION_CATEGORY_POLICY;
|
|
52
|
+
case 5:
|
|
53
|
+
case "INSPECTION_CATEGORY_API":
|
|
54
|
+
return InspectionCategory.INSPECTION_CATEGORY_API;
|
|
55
|
+
case 6:
|
|
56
|
+
case "INSPECTION_CATEGORY_STORAGE":
|
|
57
|
+
return InspectionCategory.INSPECTION_CATEGORY_STORAGE;
|
|
58
|
+
case 7:
|
|
59
|
+
case "INSPECTION_CATEGORY_PROCESS":
|
|
60
|
+
return InspectionCategory.INSPECTION_CATEGORY_PROCESS;
|
|
61
|
+
case -1:
|
|
62
|
+
case "UNRECOGNIZED":
|
|
63
|
+
default:
|
|
64
|
+
return InspectionCategory.UNRECOGNIZED;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function inspectionCategoryToJSON(object) {
|
|
68
|
+
switch (object) {
|
|
69
|
+
case InspectionCategory.INSPECTION_CATEGORY_UNSPECIFIED:
|
|
70
|
+
return "INSPECTION_CATEGORY_UNSPECIFIED";
|
|
71
|
+
case InspectionCategory.INSPECTION_CATEGORY_MEMORY:
|
|
72
|
+
return "INSPECTION_CATEGORY_MEMORY";
|
|
73
|
+
case InspectionCategory.INSPECTION_CATEGORY_ARTIFACT:
|
|
74
|
+
return "INSPECTION_CATEGORY_ARTIFACT";
|
|
75
|
+
case InspectionCategory.INSPECTION_CATEGORY_SECRET:
|
|
76
|
+
return "INSPECTION_CATEGORY_SECRET";
|
|
77
|
+
case InspectionCategory.INSPECTION_CATEGORY_POLICY:
|
|
78
|
+
return "INSPECTION_CATEGORY_POLICY";
|
|
79
|
+
case InspectionCategory.INSPECTION_CATEGORY_API:
|
|
80
|
+
return "INSPECTION_CATEGORY_API";
|
|
81
|
+
case InspectionCategory.INSPECTION_CATEGORY_STORAGE:
|
|
82
|
+
return "INSPECTION_CATEGORY_STORAGE";
|
|
83
|
+
case InspectionCategory.INSPECTION_CATEGORY_PROCESS:
|
|
84
|
+
return "INSPECTION_CATEGORY_PROCESS";
|
|
85
|
+
case InspectionCategory.UNRECOGNIZED:
|
|
86
|
+
default:
|
|
87
|
+
return "UNRECOGNIZED";
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
var InspectionAction;
|
|
91
|
+
(function (InspectionAction) {
|
|
92
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_UNSPECIFIED"] = 0] = "INSPECTION_ACTION_UNSPECIFIED";
|
|
93
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_READ"] = 1] = "INSPECTION_ACTION_READ";
|
|
94
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_WRITE"] = 2] = "INSPECTION_ACTION_WRITE";
|
|
95
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_QUERY"] = 3] = "INSPECTION_ACTION_QUERY";
|
|
96
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_REQUEST"] = 4] = "INSPECTION_ACTION_REQUEST";
|
|
97
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_RESPOND"] = 5] = "INSPECTION_ACTION_RESPOND";
|
|
98
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_STREAM"] = 6] = "INSPECTION_ACTION_STREAM";
|
|
99
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_SCAN"] = 7] = "INSPECTION_ACTION_SCAN";
|
|
100
|
+
InspectionAction[InspectionAction["INSPECTION_ACTION_EVALUATE"] = 8] = "INSPECTION_ACTION_EVALUATE";
|
|
101
|
+
InspectionAction[InspectionAction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
102
|
+
})(InspectionAction || (exports.InspectionAction = InspectionAction = {}));
|
|
103
|
+
function inspectionActionFromJSON(object) {
|
|
104
|
+
switch (object) {
|
|
105
|
+
case 0:
|
|
106
|
+
case "INSPECTION_ACTION_UNSPECIFIED":
|
|
107
|
+
return InspectionAction.INSPECTION_ACTION_UNSPECIFIED;
|
|
108
|
+
case 1:
|
|
109
|
+
case "INSPECTION_ACTION_READ":
|
|
110
|
+
return InspectionAction.INSPECTION_ACTION_READ;
|
|
111
|
+
case 2:
|
|
112
|
+
case "INSPECTION_ACTION_WRITE":
|
|
113
|
+
return InspectionAction.INSPECTION_ACTION_WRITE;
|
|
114
|
+
case 3:
|
|
115
|
+
case "INSPECTION_ACTION_QUERY":
|
|
116
|
+
return InspectionAction.INSPECTION_ACTION_QUERY;
|
|
117
|
+
case 4:
|
|
118
|
+
case "INSPECTION_ACTION_REQUEST":
|
|
119
|
+
return InspectionAction.INSPECTION_ACTION_REQUEST;
|
|
120
|
+
case 5:
|
|
121
|
+
case "INSPECTION_ACTION_RESPOND":
|
|
122
|
+
return InspectionAction.INSPECTION_ACTION_RESPOND;
|
|
123
|
+
case 6:
|
|
124
|
+
case "INSPECTION_ACTION_STREAM":
|
|
125
|
+
return InspectionAction.INSPECTION_ACTION_STREAM;
|
|
126
|
+
case 7:
|
|
127
|
+
case "INSPECTION_ACTION_SCAN":
|
|
128
|
+
return InspectionAction.INSPECTION_ACTION_SCAN;
|
|
129
|
+
case 8:
|
|
130
|
+
case "INSPECTION_ACTION_EVALUATE":
|
|
131
|
+
return InspectionAction.INSPECTION_ACTION_EVALUATE;
|
|
132
|
+
case -1:
|
|
133
|
+
case "UNRECOGNIZED":
|
|
134
|
+
default:
|
|
135
|
+
return InspectionAction.UNRECOGNIZED;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function inspectionActionToJSON(object) {
|
|
139
|
+
switch (object) {
|
|
140
|
+
case InspectionAction.INSPECTION_ACTION_UNSPECIFIED:
|
|
141
|
+
return "INSPECTION_ACTION_UNSPECIFIED";
|
|
142
|
+
case InspectionAction.INSPECTION_ACTION_READ:
|
|
143
|
+
return "INSPECTION_ACTION_READ";
|
|
144
|
+
case InspectionAction.INSPECTION_ACTION_WRITE:
|
|
145
|
+
return "INSPECTION_ACTION_WRITE";
|
|
146
|
+
case InspectionAction.INSPECTION_ACTION_QUERY:
|
|
147
|
+
return "INSPECTION_ACTION_QUERY";
|
|
148
|
+
case InspectionAction.INSPECTION_ACTION_REQUEST:
|
|
149
|
+
return "INSPECTION_ACTION_REQUEST";
|
|
150
|
+
case InspectionAction.INSPECTION_ACTION_RESPOND:
|
|
151
|
+
return "INSPECTION_ACTION_RESPOND";
|
|
152
|
+
case InspectionAction.INSPECTION_ACTION_STREAM:
|
|
153
|
+
return "INSPECTION_ACTION_STREAM";
|
|
154
|
+
case InspectionAction.INSPECTION_ACTION_SCAN:
|
|
155
|
+
return "INSPECTION_ACTION_SCAN";
|
|
156
|
+
case InspectionAction.INSPECTION_ACTION_EVALUATE:
|
|
157
|
+
return "INSPECTION_ACTION_EVALUATE";
|
|
158
|
+
case InspectionAction.UNRECOGNIZED:
|
|
159
|
+
default:
|
|
160
|
+
return "UNRECOGNIZED";
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
var InspectionOutcome;
|
|
164
|
+
(function (InspectionOutcome) {
|
|
165
|
+
InspectionOutcome[InspectionOutcome["INSPECTION_OUTCOME_UNSPECIFIED"] = 0] = "INSPECTION_OUTCOME_UNSPECIFIED";
|
|
166
|
+
InspectionOutcome[InspectionOutcome["INSPECTION_OUTCOME_ALLOWED"] = 1] = "INSPECTION_OUTCOME_ALLOWED";
|
|
167
|
+
InspectionOutcome[InspectionOutcome["INSPECTION_OUTCOME_DENIED"] = 2] = "INSPECTION_OUTCOME_DENIED";
|
|
168
|
+
InspectionOutcome[InspectionOutcome["INSPECTION_OUTCOME_ERROR"] = 3] = "INSPECTION_OUTCOME_ERROR";
|
|
169
|
+
InspectionOutcome[InspectionOutcome["INSPECTION_OUTCOME_SUCCESS"] = 4] = "INSPECTION_OUTCOME_SUCCESS";
|
|
170
|
+
InspectionOutcome[InspectionOutcome["INSPECTION_OUTCOME_PARTIAL"] = 5] = "INSPECTION_OUTCOME_PARTIAL";
|
|
171
|
+
InspectionOutcome[InspectionOutcome["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
172
|
+
})(InspectionOutcome || (exports.InspectionOutcome = InspectionOutcome = {}));
|
|
173
|
+
function inspectionOutcomeFromJSON(object) {
|
|
174
|
+
switch (object) {
|
|
175
|
+
case 0:
|
|
176
|
+
case "INSPECTION_OUTCOME_UNSPECIFIED":
|
|
177
|
+
return InspectionOutcome.INSPECTION_OUTCOME_UNSPECIFIED;
|
|
178
|
+
case 1:
|
|
179
|
+
case "INSPECTION_OUTCOME_ALLOWED":
|
|
180
|
+
return InspectionOutcome.INSPECTION_OUTCOME_ALLOWED;
|
|
181
|
+
case 2:
|
|
182
|
+
case "INSPECTION_OUTCOME_DENIED":
|
|
183
|
+
return InspectionOutcome.INSPECTION_OUTCOME_DENIED;
|
|
184
|
+
case 3:
|
|
185
|
+
case "INSPECTION_OUTCOME_ERROR":
|
|
186
|
+
return InspectionOutcome.INSPECTION_OUTCOME_ERROR;
|
|
187
|
+
case 4:
|
|
188
|
+
case "INSPECTION_OUTCOME_SUCCESS":
|
|
189
|
+
return InspectionOutcome.INSPECTION_OUTCOME_SUCCESS;
|
|
190
|
+
case 5:
|
|
191
|
+
case "INSPECTION_OUTCOME_PARTIAL":
|
|
192
|
+
return InspectionOutcome.INSPECTION_OUTCOME_PARTIAL;
|
|
193
|
+
case -1:
|
|
194
|
+
case "UNRECOGNIZED":
|
|
195
|
+
default:
|
|
196
|
+
return InspectionOutcome.UNRECOGNIZED;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function inspectionOutcomeToJSON(object) {
|
|
200
|
+
switch (object) {
|
|
201
|
+
case InspectionOutcome.INSPECTION_OUTCOME_UNSPECIFIED:
|
|
202
|
+
return "INSPECTION_OUTCOME_UNSPECIFIED";
|
|
203
|
+
case InspectionOutcome.INSPECTION_OUTCOME_ALLOWED:
|
|
204
|
+
return "INSPECTION_OUTCOME_ALLOWED";
|
|
205
|
+
case InspectionOutcome.INSPECTION_OUTCOME_DENIED:
|
|
206
|
+
return "INSPECTION_OUTCOME_DENIED";
|
|
207
|
+
case InspectionOutcome.INSPECTION_OUTCOME_ERROR:
|
|
208
|
+
return "INSPECTION_OUTCOME_ERROR";
|
|
209
|
+
case InspectionOutcome.INSPECTION_OUTCOME_SUCCESS:
|
|
210
|
+
return "INSPECTION_OUTCOME_SUCCESS";
|
|
211
|
+
case InspectionOutcome.INSPECTION_OUTCOME_PARTIAL:
|
|
212
|
+
return "INSPECTION_OUTCOME_PARTIAL";
|
|
213
|
+
case InspectionOutcome.UNRECOGNIZED:
|
|
214
|
+
default:
|
|
215
|
+
return "UNRECOGNIZED";
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
var InspectionSubjectKind;
|
|
219
|
+
(function (InspectionSubjectKind) {
|
|
220
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_UNSPECIFIED"] = 0] = "INSPECTION_SUBJECT_KIND_UNSPECIFIED";
|
|
221
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_RUN"] = 1] = "INSPECTION_SUBJECT_KIND_RUN";
|
|
222
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_PROCESS"] = 2] = "INSPECTION_SUBJECT_KIND_PROCESS";
|
|
223
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_MEMORY_NAMESPACE"] = 3] = "INSPECTION_SUBJECT_KIND_MEMORY_NAMESPACE";
|
|
224
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_ARTIFACT"] = 4] = "INSPECTION_SUBJECT_KIND_ARTIFACT";
|
|
225
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_ARTIFACT_SPACE"] = 5] = "INSPECTION_SUBJECT_KIND_ARTIFACT_SPACE";
|
|
226
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_SECRET"] = 6] = "INSPECTION_SUBJECT_KIND_SECRET";
|
|
227
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_POLICY"] = 7] = "INSPECTION_SUBJECT_KIND_POLICY";
|
|
228
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_POLICY_VERSION"] = 8] = "INSPECTION_SUBJECT_KIND_POLICY_VERSION";
|
|
229
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_TENANT"] = 9] = "INSPECTION_SUBJECT_KIND_TENANT";
|
|
230
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_TOOL_RUN"] = 10] = "INSPECTION_SUBJECT_KIND_TOOL_RUN";
|
|
231
|
+
InspectionSubjectKind[InspectionSubjectKind["INSPECTION_SUBJECT_KIND_REVIEW"] = 11] = "INSPECTION_SUBJECT_KIND_REVIEW";
|
|
232
|
+
InspectionSubjectKind[InspectionSubjectKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
233
|
+
})(InspectionSubjectKind || (exports.InspectionSubjectKind = InspectionSubjectKind = {}));
|
|
234
|
+
function inspectionSubjectKindFromJSON(object) {
|
|
235
|
+
switch (object) {
|
|
236
|
+
case 0:
|
|
237
|
+
case "INSPECTION_SUBJECT_KIND_UNSPECIFIED":
|
|
238
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_UNSPECIFIED;
|
|
239
|
+
case 1:
|
|
240
|
+
case "INSPECTION_SUBJECT_KIND_RUN":
|
|
241
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_RUN;
|
|
242
|
+
case 2:
|
|
243
|
+
case "INSPECTION_SUBJECT_KIND_PROCESS":
|
|
244
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_PROCESS;
|
|
245
|
+
case 3:
|
|
246
|
+
case "INSPECTION_SUBJECT_KIND_MEMORY_NAMESPACE":
|
|
247
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_MEMORY_NAMESPACE;
|
|
248
|
+
case 4:
|
|
249
|
+
case "INSPECTION_SUBJECT_KIND_ARTIFACT":
|
|
250
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_ARTIFACT;
|
|
251
|
+
case 5:
|
|
252
|
+
case "INSPECTION_SUBJECT_KIND_ARTIFACT_SPACE":
|
|
253
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_ARTIFACT_SPACE;
|
|
254
|
+
case 6:
|
|
255
|
+
case "INSPECTION_SUBJECT_KIND_SECRET":
|
|
256
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_SECRET;
|
|
257
|
+
case 7:
|
|
258
|
+
case "INSPECTION_SUBJECT_KIND_POLICY":
|
|
259
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_POLICY;
|
|
260
|
+
case 8:
|
|
261
|
+
case "INSPECTION_SUBJECT_KIND_POLICY_VERSION":
|
|
262
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_POLICY_VERSION;
|
|
263
|
+
case 9:
|
|
264
|
+
case "INSPECTION_SUBJECT_KIND_TENANT":
|
|
265
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_TENANT;
|
|
266
|
+
case 10:
|
|
267
|
+
case "INSPECTION_SUBJECT_KIND_TOOL_RUN":
|
|
268
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_TOOL_RUN;
|
|
269
|
+
case 11:
|
|
270
|
+
case "INSPECTION_SUBJECT_KIND_REVIEW":
|
|
271
|
+
return InspectionSubjectKind.INSPECTION_SUBJECT_KIND_REVIEW;
|
|
272
|
+
case -1:
|
|
273
|
+
case "UNRECOGNIZED":
|
|
274
|
+
default:
|
|
275
|
+
return InspectionSubjectKind.UNRECOGNIZED;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
function inspectionSubjectKindToJSON(object) {
|
|
279
|
+
switch (object) {
|
|
280
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_UNSPECIFIED:
|
|
281
|
+
return "INSPECTION_SUBJECT_KIND_UNSPECIFIED";
|
|
282
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_RUN:
|
|
283
|
+
return "INSPECTION_SUBJECT_KIND_RUN";
|
|
284
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_PROCESS:
|
|
285
|
+
return "INSPECTION_SUBJECT_KIND_PROCESS";
|
|
286
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_MEMORY_NAMESPACE:
|
|
287
|
+
return "INSPECTION_SUBJECT_KIND_MEMORY_NAMESPACE";
|
|
288
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_ARTIFACT:
|
|
289
|
+
return "INSPECTION_SUBJECT_KIND_ARTIFACT";
|
|
290
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_ARTIFACT_SPACE:
|
|
291
|
+
return "INSPECTION_SUBJECT_KIND_ARTIFACT_SPACE";
|
|
292
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_SECRET:
|
|
293
|
+
return "INSPECTION_SUBJECT_KIND_SECRET";
|
|
294
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_POLICY:
|
|
295
|
+
return "INSPECTION_SUBJECT_KIND_POLICY";
|
|
296
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_POLICY_VERSION:
|
|
297
|
+
return "INSPECTION_SUBJECT_KIND_POLICY_VERSION";
|
|
298
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_TENANT:
|
|
299
|
+
return "INSPECTION_SUBJECT_KIND_TENANT";
|
|
300
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_TOOL_RUN:
|
|
301
|
+
return "INSPECTION_SUBJECT_KIND_TOOL_RUN";
|
|
302
|
+
case InspectionSubjectKind.INSPECTION_SUBJECT_KIND_REVIEW:
|
|
303
|
+
return "INSPECTION_SUBJECT_KIND_REVIEW";
|
|
304
|
+
case InspectionSubjectKind.UNRECOGNIZED:
|
|
305
|
+
default:
|
|
306
|
+
return "UNRECOGNIZED";
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
var InspectionActorKind;
|
|
310
|
+
(function (InspectionActorKind) {
|
|
311
|
+
InspectionActorKind[InspectionActorKind["INSPECTION_ACTOR_KIND_UNSPECIFIED"] = 0] = "INSPECTION_ACTOR_KIND_UNSPECIFIED";
|
|
312
|
+
InspectionActorKind[InspectionActorKind["INSPECTION_ACTOR_KIND_USER"] = 1] = "INSPECTION_ACTOR_KIND_USER";
|
|
313
|
+
InspectionActorKind[InspectionActorKind["INSPECTION_ACTOR_KIND_AGENT_PROCESS"] = 2] = "INSPECTION_ACTOR_KIND_AGENT_PROCESS";
|
|
314
|
+
InspectionActorKind[InspectionActorKind["INSPECTION_ACTOR_KIND_SYSTEM"] = 3] = "INSPECTION_ACTOR_KIND_SYSTEM";
|
|
315
|
+
InspectionActorKind[InspectionActorKind["INSPECTION_ACTOR_KIND_API_CALLER"] = 4] = "INSPECTION_ACTOR_KIND_API_CALLER";
|
|
316
|
+
InspectionActorKind[InspectionActorKind["INSPECTION_ACTOR_KIND_SUPERVISOR"] = 5] = "INSPECTION_ACTOR_KIND_SUPERVISOR";
|
|
317
|
+
InspectionActorKind[InspectionActorKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
318
|
+
})(InspectionActorKind || (exports.InspectionActorKind = InspectionActorKind = {}));
|
|
319
|
+
function inspectionActorKindFromJSON(object) {
|
|
320
|
+
switch (object) {
|
|
321
|
+
case 0:
|
|
322
|
+
case "INSPECTION_ACTOR_KIND_UNSPECIFIED":
|
|
323
|
+
return InspectionActorKind.INSPECTION_ACTOR_KIND_UNSPECIFIED;
|
|
324
|
+
case 1:
|
|
325
|
+
case "INSPECTION_ACTOR_KIND_USER":
|
|
326
|
+
return InspectionActorKind.INSPECTION_ACTOR_KIND_USER;
|
|
327
|
+
case 2:
|
|
328
|
+
case "INSPECTION_ACTOR_KIND_AGENT_PROCESS":
|
|
329
|
+
return InspectionActorKind.INSPECTION_ACTOR_KIND_AGENT_PROCESS;
|
|
330
|
+
case 3:
|
|
331
|
+
case "INSPECTION_ACTOR_KIND_SYSTEM":
|
|
332
|
+
return InspectionActorKind.INSPECTION_ACTOR_KIND_SYSTEM;
|
|
333
|
+
case 4:
|
|
334
|
+
case "INSPECTION_ACTOR_KIND_API_CALLER":
|
|
335
|
+
return InspectionActorKind.INSPECTION_ACTOR_KIND_API_CALLER;
|
|
336
|
+
case 5:
|
|
337
|
+
case "INSPECTION_ACTOR_KIND_SUPERVISOR":
|
|
338
|
+
return InspectionActorKind.INSPECTION_ACTOR_KIND_SUPERVISOR;
|
|
339
|
+
case -1:
|
|
340
|
+
case "UNRECOGNIZED":
|
|
341
|
+
default:
|
|
342
|
+
return InspectionActorKind.UNRECOGNIZED;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function inspectionActorKindToJSON(object) {
|
|
346
|
+
switch (object) {
|
|
347
|
+
case InspectionActorKind.INSPECTION_ACTOR_KIND_UNSPECIFIED:
|
|
348
|
+
return "INSPECTION_ACTOR_KIND_UNSPECIFIED";
|
|
349
|
+
case InspectionActorKind.INSPECTION_ACTOR_KIND_USER:
|
|
350
|
+
return "INSPECTION_ACTOR_KIND_USER";
|
|
351
|
+
case InspectionActorKind.INSPECTION_ACTOR_KIND_AGENT_PROCESS:
|
|
352
|
+
return "INSPECTION_ACTOR_KIND_AGENT_PROCESS";
|
|
353
|
+
case InspectionActorKind.INSPECTION_ACTOR_KIND_SYSTEM:
|
|
354
|
+
return "INSPECTION_ACTOR_KIND_SYSTEM";
|
|
355
|
+
case InspectionActorKind.INSPECTION_ACTOR_KIND_API_CALLER:
|
|
356
|
+
return "INSPECTION_ACTOR_KIND_API_CALLER";
|
|
357
|
+
case InspectionActorKind.INSPECTION_ACTOR_KIND_SUPERVISOR:
|
|
358
|
+
return "INSPECTION_ACTOR_KIND_SUPERVISOR";
|
|
359
|
+
case InspectionActorKind.UNRECOGNIZED:
|
|
360
|
+
default:
|
|
361
|
+
return "UNRECOGNIZED";
|
|
362
|
+
}
|
|
363
|
+
}
|
|
13
364
|
function createBaseEvent() {
|
|
14
365
|
return {
|
|
15
366
|
eventId: "",
|
|
@@ -202,6 +553,516 @@ exports.Event = {
|
|
|
202
553
|
return message;
|
|
203
554
|
},
|
|
204
555
|
};
|
|
556
|
+
function createBaseInspectionSubject() {
|
|
557
|
+
return { kind: 0, id: "" };
|
|
558
|
+
}
|
|
559
|
+
exports.InspectionSubject = {
|
|
560
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
561
|
+
if (message.kind !== 0) {
|
|
562
|
+
writer.uint32(8).int32(message.kind);
|
|
563
|
+
}
|
|
564
|
+
if (message.id !== "") {
|
|
565
|
+
writer.uint32(18).string(message.id);
|
|
566
|
+
}
|
|
567
|
+
return writer;
|
|
568
|
+
},
|
|
569
|
+
decode(input, length) {
|
|
570
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
571
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
572
|
+
const message = createBaseInspectionSubject();
|
|
573
|
+
while (reader.pos < end) {
|
|
574
|
+
const tag = reader.uint32();
|
|
575
|
+
switch (tag >>> 3) {
|
|
576
|
+
case 1: {
|
|
577
|
+
if (tag !== 8) {
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
message.kind = reader.int32();
|
|
581
|
+
continue;
|
|
582
|
+
}
|
|
583
|
+
case 2: {
|
|
584
|
+
if (tag !== 18) {
|
|
585
|
+
break;
|
|
586
|
+
}
|
|
587
|
+
message.id = reader.string();
|
|
588
|
+
continue;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
reader.skip(tag & 7);
|
|
595
|
+
}
|
|
596
|
+
return message;
|
|
597
|
+
},
|
|
598
|
+
fromJSON(object) {
|
|
599
|
+
return {
|
|
600
|
+
kind: isSet(object.kind) ? inspectionSubjectKindFromJSON(object.kind) : 0,
|
|
601
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
602
|
+
};
|
|
603
|
+
},
|
|
604
|
+
toJSON(message) {
|
|
605
|
+
const obj = {};
|
|
606
|
+
if (message.kind !== 0) {
|
|
607
|
+
obj.kind = inspectionSubjectKindToJSON(message.kind);
|
|
608
|
+
}
|
|
609
|
+
if (message.id !== "") {
|
|
610
|
+
obj.id = message.id;
|
|
611
|
+
}
|
|
612
|
+
return obj;
|
|
613
|
+
},
|
|
614
|
+
create(base) {
|
|
615
|
+
return exports.InspectionSubject.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
616
|
+
},
|
|
617
|
+
fromPartial(object) {
|
|
618
|
+
var _a, _b;
|
|
619
|
+
const message = createBaseInspectionSubject();
|
|
620
|
+
message.kind = (_a = object.kind) !== null && _a !== void 0 ? _a : 0;
|
|
621
|
+
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
622
|
+
return message;
|
|
623
|
+
},
|
|
624
|
+
};
|
|
625
|
+
function createBaseInspectionActor() {
|
|
626
|
+
return { kind: 0, id: "" };
|
|
627
|
+
}
|
|
628
|
+
exports.InspectionActor = {
|
|
629
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
630
|
+
if (message.kind !== 0) {
|
|
631
|
+
writer.uint32(8).int32(message.kind);
|
|
632
|
+
}
|
|
633
|
+
if (message.id !== "") {
|
|
634
|
+
writer.uint32(18).string(message.id);
|
|
635
|
+
}
|
|
636
|
+
return writer;
|
|
637
|
+
},
|
|
638
|
+
decode(input, length) {
|
|
639
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
640
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
641
|
+
const message = createBaseInspectionActor();
|
|
642
|
+
while (reader.pos < end) {
|
|
643
|
+
const tag = reader.uint32();
|
|
644
|
+
switch (tag >>> 3) {
|
|
645
|
+
case 1: {
|
|
646
|
+
if (tag !== 8) {
|
|
647
|
+
break;
|
|
648
|
+
}
|
|
649
|
+
message.kind = reader.int32();
|
|
650
|
+
continue;
|
|
651
|
+
}
|
|
652
|
+
case 2: {
|
|
653
|
+
if (tag !== 18) {
|
|
654
|
+
break;
|
|
655
|
+
}
|
|
656
|
+
message.id = reader.string();
|
|
657
|
+
continue;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
reader.skip(tag & 7);
|
|
664
|
+
}
|
|
665
|
+
return message;
|
|
666
|
+
},
|
|
667
|
+
fromJSON(object) {
|
|
668
|
+
return {
|
|
669
|
+
kind: isSet(object.kind) ? inspectionActorKindFromJSON(object.kind) : 0,
|
|
670
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
671
|
+
};
|
|
672
|
+
},
|
|
673
|
+
toJSON(message) {
|
|
674
|
+
const obj = {};
|
|
675
|
+
if (message.kind !== 0) {
|
|
676
|
+
obj.kind = inspectionActorKindToJSON(message.kind);
|
|
677
|
+
}
|
|
678
|
+
if (message.id !== "") {
|
|
679
|
+
obj.id = message.id;
|
|
680
|
+
}
|
|
681
|
+
return obj;
|
|
682
|
+
},
|
|
683
|
+
create(base) {
|
|
684
|
+
return exports.InspectionActor.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
685
|
+
},
|
|
686
|
+
fromPartial(object) {
|
|
687
|
+
var _a, _b;
|
|
688
|
+
const message = createBaseInspectionActor();
|
|
689
|
+
message.kind = (_a = object.kind) !== null && _a !== void 0 ? _a : 0;
|
|
690
|
+
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
691
|
+
return message;
|
|
692
|
+
},
|
|
693
|
+
};
|
|
694
|
+
function createBaseInspectionEvent() {
|
|
695
|
+
return {
|
|
696
|
+
eventId: "",
|
|
697
|
+
tenantId: "",
|
|
698
|
+
eventType: "",
|
|
699
|
+
category: 0,
|
|
700
|
+
subject: undefined,
|
|
701
|
+
actor: undefined,
|
|
702
|
+
runId: "",
|
|
703
|
+
processId: "",
|
|
704
|
+
action: 0,
|
|
705
|
+
outcome: 0,
|
|
706
|
+
reason: "",
|
|
707
|
+
correlationId: "",
|
|
708
|
+
causationId: "",
|
|
709
|
+
data: new Uint8Array(0),
|
|
710
|
+
schemaVersion: 0,
|
|
711
|
+
sequence: 0,
|
|
712
|
+
occurredAt: undefined,
|
|
713
|
+
expiresAt: undefined,
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
exports.InspectionEvent = {
|
|
717
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
718
|
+
if (message.eventId !== "") {
|
|
719
|
+
writer.uint32(10).string(message.eventId);
|
|
720
|
+
}
|
|
721
|
+
if (message.tenantId !== "") {
|
|
722
|
+
writer.uint32(18).string(message.tenantId);
|
|
723
|
+
}
|
|
724
|
+
if (message.eventType !== "") {
|
|
725
|
+
writer.uint32(26).string(message.eventType);
|
|
726
|
+
}
|
|
727
|
+
if (message.category !== 0) {
|
|
728
|
+
writer.uint32(32).int32(message.category);
|
|
729
|
+
}
|
|
730
|
+
if (message.subject !== undefined) {
|
|
731
|
+
exports.InspectionSubject.encode(message.subject, writer.uint32(42).fork()).join();
|
|
732
|
+
}
|
|
733
|
+
if (message.actor !== undefined) {
|
|
734
|
+
exports.InspectionActor.encode(message.actor, writer.uint32(50).fork()).join();
|
|
735
|
+
}
|
|
736
|
+
if (message.runId !== "") {
|
|
737
|
+
writer.uint32(58).string(message.runId);
|
|
738
|
+
}
|
|
739
|
+
if (message.processId !== "") {
|
|
740
|
+
writer.uint32(66).string(message.processId);
|
|
741
|
+
}
|
|
742
|
+
if (message.action !== 0) {
|
|
743
|
+
writer.uint32(72).int32(message.action);
|
|
744
|
+
}
|
|
745
|
+
if (message.outcome !== 0) {
|
|
746
|
+
writer.uint32(80).int32(message.outcome);
|
|
747
|
+
}
|
|
748
|
+
if (message.reason !== "") {
|
|
749
|
+
writer.uint32(90).string(message.reason);
|
|
750
|
+
}
|
|
751
|
+
if (message.correlationId !== "") {
|
|
752
|
+
writer.uint32(98).string(message.correlationId);
|
|
753
|
+
}
|
|
754
|
+
if (message.causationId !== "") {
|
|
755
|
+
writer.uint32(106).string(message.causationId);
|
|
756
|
+
}
|
|
757
|
+
if (message.data.length !== 0) {
|
|
758
|
+
writer.uint32(114).bytes(message.data);
|
|
759
|
+
}
|
|
760
|
+
if (message.schemaVersion !== 0) {
|
|
761
|
+
writer.uint32(120).int32(message.schemaVersion);
|
|
762
|
+
}
|
|
763
|
+
if (message.sequence !== 0) {
|
|
764
|
+
writer.uint32(128).uint64(message.sequence);
|
|
765
|
+
}
|
|
766
|
+
if (message.occurredAt !== undefined) {
|
|
767
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.occurredAt), writer.uint32(138).fork()).join();
|
|
768
|
+
}
|
|
769
|
+
if (message.expiresAt !== undefined) {
|
|
770
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(146).fork()).join();
|
|
771
|
+
}
|
|
772
|
+
return writer;
|
|
773
|
+
},
|
|
774
|
+
decode(input, length) {
|
|
775
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
776
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
777
|
+
const message = createBaseInspectionEvent();
|
|
778
|
+
while (reader.pos < end) {
|
|
779
|
+
const tag = reader.uint32();
|
|
780
|
+
switch (tag >>> 3) {
|
|
781
|
+
case 1: {
|
|
782
|
+
if (tag !== 10) {
|
|
783
|
+
break;
|
|
784
|
+
}
|
|
785
|
+
message.eventId = reader.string();
|
|
786
|
+
continue;
|
|
787
|
+
}
|
|
788
|
+
case 2: {
|
|
789
|
+
if (tag !== 18) {
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
message.tenantId = reader.string();
|
|
793
|
+
continue;
|
|
794
|
+
}
|
|
795
|
+
case 3: {
|
|
796
|
+
if (tag !== 26) {
|
|
797
|
+
break;
|
|
798
|
+
}
|
|
799
|
+
message.eventType = reader.string();
|
|
800
|
+
continue;
|
|
801
|
+
}
|
|
802
|
+
case 4: {
|
|
803
|
+
if (tag !== 32) {
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
message.category = reader.int32();
|
|
807
|
+
continue;
|
|
808
|
+
}
|
|
809
|
+
case 5: {
|
|
810
|
+
if (tag !== 42) {
|
|
811
|
+
break;
|
|
812
|
+
}
|
|
813
|
+
message.subject = exports.InspectionSubject.decode(reader, reader.uint32());
|
|
814
|
+
continue;
|
|
815
|
+
}
|
|
816
|
+
case 6: {
|
|
817
|
+
if (tag !== 50) {
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
message.actor = exports.InspectionActor.decode(reader, reader.uint32());
|
|
821
|
+
continue;
|
|
822
|
+
}
|
|
823
|
+
case 7: {
|
|
824
|
+
if (tag !== 58) {
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
message.runId = reader.string();
|
|
828
|
+
continue;
|
|
829
|
+
}
|
|
830
|
+
case 8: {
|
|
831
|
+
if (tag !== 66) {
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
message.processId = reader.string();
|
|
835
|
+
continue;
|
|
836
|
+
}
|
|
837
|
+
case 9: {
|
|
838
|
+
if (tag !== 72) {
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
message.action = reader.int32();
|
|
842
|
+
continue;
|
|
843
|
+
}
|
|
844
|
+
case 10: {
|
|
845
|
+
if (tag !== 80) {
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
848
|
+
message.outcome = reader.int32();
|
|
849
|
+
continue;
|
|
850
|
+
}
|
|
851
|
+
case 11: {
|
|
852
|
+
if (tag !== 90) {
|
|
853
|
+
break;
|
|
854
|
+
}
|
|
855
|
+
message.reason = reader.string();
|
|
856
|
+
continue;
|
|
857
|
+
}
|
|
858
|
+
case 12: {
|
|
859
|
+
if (tag !== 98) {
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
message.correlationId = reader.string();
|
|
863
|
+
continue;
|
|
864
|
+
}
|
|
865
|
+
case 13: {
|
|
866
|
+
if (tag !== 106) {
|
|
867
|
+
break;
|
|
868
|
+
}
|
|
869
|
+
message.causationId = reader.string();
|
|
870
|
+
continue;
|
|
871
|
+
}
|
|
872
|
+
case 14: {
|
|
873
|
+
if (tag !== 114) {
|
|
874
|
+
break;
|
|
875
|
+
}
|
|
876
|
+
message.data = reader.bytes();
|
|
877
|
+
continue;
|
|
878
|
+
}
|
|
879
|
+
case 15: {
|
|
880
|
+
if (tag !== 120) {
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
message.schemaVersion = reader.int32();
|
|
884
|
+
continue;
|
|
885
|
+
}
|
|
886
|
+
case 16: {
|
|
887
|
+
if (tag !== 128) {
|
|
888
|
+
break;
|
|
889
|
+
}
|
|
890
|
+
message.sequence = longToNumber(reader.uint64());
|
|
891
|
+
continue;
|
|
892
|
+
}
|
|
893
|
+
case 17: {
|
|
894
|
+
if (tag !== 138) {
|
|
895
|
+
break;
|
|
896
|
+
}
|
|
897
|
+
message.occurredAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
898
|
+
continue;
|
|
899
|
+
}
|
|
900
|
+
case 18: {
|
|
901
|
+
if (tag !== 146) {
|
|
902
|
+
break;
|
|
903
|
+
}
|
|
904
|
+
message.expiresAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
905
|
+
continue;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
reader.skip(tag & 7);
|
|
912
|
+
}
|
|
913
|
+
return message;
|
|
914
|
+
},
|
|
915
|
+
fromJSON(object) {
|
|
916
|
+
return {
|
|
917
|
+
eventId: isSet(object.eventId)
|
|
918
|
+
? globalThis.String(object.eventId)
|
|
919
|
+
: isSet(object.event_id)
|
|
920
|
+
? globalThis.String(object.event_id)
|
|
921
|
+
: "",
|
|
922
|
+
tenantId: isSet(object.tenantId)
|
|
923
|
+
? globalThis.String(object.tenantId)
|
|
924
|
+
: isSet(object.tenant_id)
|
|
925
|
+
? globalThis.String(object.tenant_id)
|
|
926
|
+
: "",
|
|
927
|
+
eventType: isSet(object.eventType)
|
|
928
|
+
? globalThis.String(object.eventType)
|
|
929
|
+
: isSet(object.event_type)
|
|
930
|
+
? globalThis.String(object.event_type)
|
|
931
|
+
: "",
|
|
932
|
+
category: isSet(object.category) ? inspectionCategoryFromJSON(object.category) : 0,
|
|
933
|
+
subject: isSet(object.subject) ? exports.InspectionSubject.fromJSON(object.subject) : undefined,
|
|
934
|
+
actor: isSet(object.actor) ? exports.InspectionActor.fromJSON(object.actor) : undefined,
|
|
935
|
+
runId: isSet(object.runId)
|
|
936
|
+
? globalThis.String(object.runId)
|
|
937
|
+
: isSet(object.run_id)
|
|
938
|
+
? globalThis.String(object.run_id)
|
|
939
|
+
: "",
|
|
940
|
+
processId: isSet(object.processId)
|
|
941
|
+
? globalThis.String(object.processId)
|
|
942
|
+
: isSet(object.process_id)
|
|
943
|
+
? globalThis.String(object.process_id)
|
|
944
|
+
: "",
|
|
945
|
+
action: isSet(object.action) ? inspectionActionFromJSON(object.action) : 0,
|
|
946
|
+
outcome: isSet(object.outcome) ? inspectionOutcomeFromJSON(object.outcome) : 0,
|
|
947
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
948
|
+
correlationId: isSet(object.correlationId)
|
|
949
|
+
? globalThis.String(object.correlationId)
|
|
950
|
+
: isSet(object.correlation_id)
|
|
951
|
+
? globalThis.String(object.correlation_id)
|
|
952
|
+
: "",
|
|
953
|
+
causationId: isSet(object.causationId)
|
|
954
|
+
? globalThis.String(object.causationId)
|
|
955
|
+
: isSet(object.causation_id)
|
|
956
|
+
? globalThis.String(object.causation_id)
|
|
957
|
+
: "",
|
|
958
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
959
|
+
schemaVersion: isSet(object.schemaVersion)
|
|
960
|
+
? globalThis.Number(object.schemaVersion)
|
|
961
|
+
: isSet(object.schema_version)
|
|
962
|
+
? globalThis.Number(object.schema_version)
|
|
963
|
+
: 0,
|
|
964
|
+
sequence: isSet(object.sequence) ? globalThis.Number(object.sequence) : 0,
|
|
965
|
+
occurredAt: isSet(object.occurredAt)
|
|
966
|
+
? fromJsonTimestamp(object.occurredAt)
|
|
967
|
+
: isSet(object.occurred_at)
|
|
968
|
+
? fromJsonTimestamp(object.occurred_at)
|
|
969
|
+
: undefined,
|
|
970
|
+
expiresAt: isSet(object.expiresAt)
|
|
971
|
+
? fromJsonTimestamp(object.expiresAt)
|
|
972
|
+
: isSet(object.expires_at)
|
|
973
|
+
? fromJsonTimestamp(object.expires_at)
|
|
974
|
+
: undefined,
|
|
975
|
+
};
|
|
976
|
+
},
|
|
977
|
+
toJSON(message) {
|
|
978
|
+
const obj = {};
|
|
979
|
+
if (message.eventId !== "") {
|
|
980
|
+
obj.eventId = message.eventId;
|
|
981
|
+
}
|
|
982
|
+
if (message.tenantId !== "") {
|
|
983
|
+
obj.tenantId = message.tenantId;
|
|
984
|
+
}
|
|
985
|
+
if (message.eventType !== "") {
|
|
986
|
+
obj.eventType = message.eventType;
|
|
987
|
+
}
|
|
988
|
+
if (message.category !== 0) {
|
|
989
|
+
obj.category = inspectionCategoryToJSON(message.category);
|
|
990
|
+
}
|
|
991
|
+
if (message.subject !== undefined) {
|
|
992
|
+
obj.subject = exports.InspectionSubject.toJSON(message.subject);
|
|
993
|
+
}
|
|
994
|
+
if (message.actor !== undefined) {
|
|
995
|
+
obj.actor = exports.InspectionActor.toJSON(message.actor);
|
|
996
|
+
}
|
|
997
|
+
if (message.runId !== "") {
|
|
998
|
+
obj.runId = message.runId;
|
|
999
|
+
}
|
|
1000
|
+
if (message.processId !== "") {
|
|
1001
|
+
obj.processId = message.processId;
|
|
1002
|
+
}
|
|
1003
|
+
if (message.action !== 0) {
|
|
1004
|
+
obj.action = inspectionActionToJSON(message.action);
|
|
1005
|
+
}
|
|
1006
|
+
if (message.outcome !== 0) {
|
|
1007
|
+
obj.outcome = inspectionOutcomeToJSON(message.outcome);
|
|
1008
|
+
}
|
|
1009
|
+
if (message.reason !== "") {
|
|
1010
|
+
obj.reason = message.reason;
|
|
1011
|
+
}
|
|
1012
|
+
if (message.correlationId !== "") {
|
|
1013
|
+
obj.correlationId = message.correlationId;
|
|
1014
|
+
}
|
|
1015
|
+
if (message.causationId !== "") {
|
|
1016
|
+
obj.causationId = message.causationId;
|
|
1017
|
+
}
|
|
1018
|
+
if (message.data.length !== 0) {
|
|
1019
|
+
obj.data = base64FromBytes(message.data);
|
|
1020
|
+
}
|
|
1021
|
+
if (message.schemaVersion !== 0) {
|
|
1022
|
+
obj.schemaVersion = Math.round(message.schemaVersion);
|
|
1023
|
+
}
|
|
1024
|
+
if (message.sequence !== 0) {
|
|
1025
|
+
obj.sequence = Math.round(message.sequence);
|
|
1026
|
+
}
|
|
1027
|
+
if (message.occurredAt !== undefined) {
|
|
1028
|
+
obj.occurredAt = message.occurredAt.toISOString();
|
|
1029
|
+
}
|
|
1030
|
+
if (message.expiresAt !== undefined) {
|
|
1031
|
+
obj.expiresAt = message.expiresAt.toISOString();
|
|
1032
|
+
}
|
|
1033
|
+
return obj;
|
|
1034
|
+
},
|
|
1035
|
+
create(base) {
|
|
1036
|
+
return exports.InspectionEvent.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1037
|
+
},
|
|
1038
|
+
fromPartial(object) {
|
|
1039
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1040
|
+
const message = createBaseInspectionEvent();
|
|
1041
|
+
message.eventId = (_a = object.eventId) !== null && _a !== void 0 ? _a : "";
|
|
1042
|
+
message.tenantId = (_b = object.tenantId) !== null && _b !== void 0 ? _b : "";
|
|
1043
|
+
message.eventType = (_c = object.eventType) !== null && _c !== void 0 ? _c : "";
|
|
1044
|
+
message.category = (_d = object.category) !== null && _d !== void 0 ? _d : 0;
|
|
1045
|
+
message.subject = (object.subject !== undefined && object.subject !== null)
|
|
1046
|
+
? exports.InspectionSubject.fromPartial(object.subject)
|
|
1047
|
+
: undefined;
|
|
1048
|
+
message.actor = (object.actor !== undefined && object.actor !== null)
|
|
1049
|
+
? exports.InspectionActor.fromPartial(object.actor)
|
|
1050
|
+
: undefined;
|
|
1051
|
+
message.runId = (_e = object.runId) !== null && _e !== void 0 ? _e : "";
|
|
1052
|
+
message.processId = (_f = object.processId) !== null && _f !== void 0 ? _f : "";
|
|
1053
|
+
message.action = (_g = object.action) !== null && _g !== void 0 ? _g : 0;
|
|
1054
|
+
message.outcome = (_h = object.outcome) !== null && _h !== void 0 ? _h : 0;
|
|
1055
|
+
message.reason = (_j = object.reason) !== null && _j !== void 0 ? _j : "";
|
|
1056
|
+
message.correlationId = (_k = object.correlationId) !== null && _k !== void 0 ? _k : "";
|
|
1057
|
+
message.causationId = (_l = object.causationId) !== null && _l !== void 0 ? _l : "";
|
|
1058
|
+
message.data = (_m = object.data) !== null && _m !== void 0 ? _m : new Uint8Array(0);
|
|
1059
|
+
message.schemaVersion = (_o = object.schemaVersion) !== null && _o !== void 0 ? _o : 0;
|
|
1060
|
+
message.sequence = (_p = object.sequence) !== null && _p !== void 0 ? _p : 0;
|
|
1061
|
+
message.occurredAt = (_q = object.occurredAt) !== null && _q !== void 0 ? _q : undefined;
|
|
1062
|
+
message.expiresAt = (_r = object.expiresAt) !== null && _r !== void 0 ? _r : undefined;
|
|
1063
|
+
return message;
|
|
1064
|
+
},
|
|
1065
|
+
};
|
|
205
1066
|
function bytesFromBase64(b64) {
|
|
206
1067
|
if (globalThis.Buffer) {
|
|
207
1068
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|