@cratis/chronicle.contracts 19.31.11 → 19.32.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/cjs/generated/alerts.d.ts +207 -0
- package/dist/cjs/generated/alerts.d.ts.map +1 -0
- package/dist/cjs/generated/alerts.js +2113 -0
- package/dist/cjs/generated/alerts.js.map +1 -0
- package/dist/cjs/generated/captures.js +0 -2
- package/dist/cjs/generated/captures.js.map +1 -1
- package/dist/cjs/generated/descriptorSet.js +1 -1
- package/dist/cjs/generated/descriptorSet.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +5 -3
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/index.js +43 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/alerts.d.ts +207 -0
- package/dist/esm/generated/alerts.d.ts.map +1 -0
- package/dist/esm/generated/alerts.js +2086 -0
- package/dist/esm/generated/alerts.js.map +1 -0
- package/dist/esm/generated/captures.js +1 -2
- package/dist/esm/generated/captures.js.map +1 -1
- package/dist/esm/generated/descriptorSet.js +1 -1
- package/dist/esm/generated/descriptorSet.js.map +1 -1
- package/dist/esm/generated/index.d.ts +5 -3
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/alerts.d.ts +207 -0
- package/dist/generated/alerts.d.ts.map +1 -0
- package/dist/generated/alerts.js +2083 -0
- package/dist/generated/alerts.js.map +1 -0
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/index.d.ts +5 -3
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +3 -2
- package/dist/generated/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/alerts.ts +2423 -0
- package/generated/descriptorSet.ts +1 -1
- package/generated/index.ts +6 -3
- package/package.json +1 -1
|
@@ -0,0 +1,2423 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.13.0
|
|
4
|
+
// protoc v5.28.3
|
|
5
|
+
// source: alerts.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
10
|
+
import { Guid } from "./protobuf-net/bcl";
|
|
11
|
+
|
|
12
|
+
export const protobufPackage = "Cratis.Chronicle.Contracts.Alerts";
|
|
13
|
+
|
|
14
|
+
export enum AlertIncidentsReadinessState {
|
|
15
|
+
CatchingUp = 0,
|
|
16
|
+
Ready = 1,
|
|
17
|
+
Degraded = 2,
|
|
18
|
+
UNRECOGNIZED = -1,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function alertIncidentsReadinessStateFromJSON(object: any): AlertIncidentsReadinessState {
|
|
22
|
+
switch (object) {
|
|
23
|
+
case 0:
|
|
24
|
+
case "CatchingUp":
|
|
25
|
+
return AlertIncidentsReadinessState.CatchingUp;
|
|
26
|
+
case 1:
|
|
27
|
+
case "Ready":
|
|
28
|
+
return AlertIncidentsReadinessState.Ready;
|
|
29
|
+
case 2:
|
|
30
|
+
case "Degraded":
|
|
31
|
+
return AlertIncidentsReadinessState.Degraded;
|
|
32
|
+
case -1:
|
|
33
|
+
case "UNRECOGNIZED":
|
|
34
|
+
default:
|
|
35
|
+
return AlertIncidentsReadinessState.UNRECOGNIZED;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function alertIncidentsReadinessStateToJSON(object: AlertIncidentsReadinessState): string {
|
|
40
|
+
switch (object) {
|
|
41
|
+
case AlertIncidentsReadinessState.CatchingUp:
|
|
42
|
+
return "CatchingUp";
|
|
43
|
+
case AlertIncidentsReadinessState.Ready:
|
|
44
|
+
return "Ready";
|
|
45
|
+
case AlertIncidentsReadinessState.Degraded:
|
|
46
|
+
return "Degraded";
|
|
47
|
+
case AlertIncidentsReadinessState.UNRECOGNIZED:
|
|
48
|
+
default:
|
|
49
|
+
return "UNRECOGNIZED";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export enum AlertSeverity {
|
|
54
|
+
ALERT_SEVERITY_Warning = 0,
|
|
55
|
+
Critical = 1,
|
|
56
|
+
UNRECOGNIZED = -1,
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function alertSeverityFromJSON(object: any): AlertSeverity {
|
|
60
|
+
switch (object) {
|
|
61
|
+
case 0:
|
|
62
|
+
case "ALERT_SEVERITY_Warning":
|
|
63
|
+
return AlertSeverity.ALERT_SEVERITY_Warning;
|
|
64
|
+
case 1:
|
|
65
|
+
case "Critical":
|
|
66
|
+
return AlertSeverity.Critical;
|
|
67
|
+
case -1:
|
|
68
|
+
case "UNRECOGNIZED":
|
|
69
|
+
default:
|
|
70
|
+
return AlertSeverity.UNRECOGNIZED;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function alertSeverityToJSON(object: AlertSeverity): string {
|
|
75
|
+
switch (object) {
|
|
76
|
+
case AlertSeverity.ALERT_SEVERITY_Warning:
|
|
77
|
+
return "ALERT_SEVERITY_Warning";
|
|
78
|
+
case AlertSeverity.Critical:
|
|
79
|
+
return "Critical";
|
|
80
|
+
case AlertSeverity.UNRECOGNIZED:
|
|
81
|
+
default:
|
|
82
|
+
return "UNRECOGNIZED";
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export enum FailureKind {
|
|
87
|
+
FAILURE_KIND_Unknown = 0,
|
|
88
|
+
Handling = 1,
|
|
89
|
+
Timeout = 2,
|
|
90
|
+
Disconnected = 3,
|
|
91
|
+
UNRECOGNIZED = -1,
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function failureKindFromJSON(object: any): FailureKind {
|
|
95
|
+
switch (object) {
|
|
96
|
+
case 0:
|
|
97
|
+
case "FAILURE_KIND_Unknown":
|
|
98
|
+
return FailureKind.FAILURE_KIND_Unknown;
|
|
99
|
+
case 1:
|
|
100
|
+
case "Handling":
|
|
101
|
+
return FailureKind.Handling;
|
|
102
|
+
case 2:
|
|
103
|
+
case "Timeout":
|
|
104
|
+
return FailureKind.Timeout;
|
|
105
|
+
case 3:
|
|
106
|
+
case "Disconnected":
|
|
107
|
+
return FailureKind.Disconnected;
|
|
108
|
+
case -1:
|
|
109
|
+
case "UNRECOGNIZED":
|
|
110
|
+
default:
|
|
111
|
+
return FailureKind.UNRECOGNIZED;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function failureKindToJSON(object: FailureKind): string {
|
|
116
|
+
switch (object) {
|
|
117
|
+
case FailureKind.FAILURE_KIND_Unknown:
|
|
118
|
+
return "FAILURE_KIND_Unknown";
|
|
119
|
+
case FailureKind.Handling:
|
|
120
|
+
return "Handling";
|
|
121
|
+
case FailureKind.Timeout:
|
|
122
|
+
return "Timeout";
|
|
123
|
+
case FailureKind.Disconnected:
|
|
124
|
+
return "Disconnected";
|
|
125
|
+
case FailureKind.UNRECOGNIZED:
|
|
126
|
+
default:
|
|
127
|
+
return "UNRECOGNIZED";
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export enum ValidationResultSeverity {
|
|
132
|
+
VALIDATION_RESULT_SEVERITY_Unknown = 0,
|
|
133
|
+
Information = 1,
|
|
134
|
+
VALIDATION_RESULT_SEVERITY_Warning = 2,
|
|
135
|
+
Error = 3,
|
|
136
|
+
UNRECOGNIZED = -1,
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function validationResultSeverityFromJSON(object: any): ValidationResultSeverity {
|
|
140
|
+
switch (object) {
|
|
141
|
+
case 0:
|
|
142
|
+
case "VALIDATION_RESULT_SEVERITY_Unknown":
|
|
143
|
+
return ValidationResultSeverity.VALIDATION_RESULT_SEVERITY_Unknown;
|
|
144
|
+
case 1:
|
|
145
|
+
case "Information":
|
|
146
|
+
return ValidationResultSeverity.Information;
|
|
147
|
+
case 2:
|
|
148
|
+
case "VALIDATION_RESULT_SEVERITY_Warning":
|
|
149
|
+
return ValidationResultSeverity.VALIDATION_RESULT_SEVERITY_Warning;
|
|
150
|
+
case 3:
|
|
151
|
+
case "Error":
|
|
152
|
+
return ValidationResultSeverity.Error;
|
|
153
|
+
case -1:
|
|
154
|
+
case "UNRECOGNIZED":
|
|
155
|
+
default:
|
|
156
|
+
return ValidationResultSeverity.UNRECOGNIZED;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function validationResultSeverityToJSON(object: ValidationResultSeverity): string {
|
|
161
|
+
switch (object) {
|
|
162
|
+
case ValidationResultSeverity.VALIDATION_RESULT_SEVERITY_Unknown:
|
|
163
|
+
return "VALIDATION_RESULT_SEVERITY_Unknown";
|
|
164
|
+
case ValidationResultSeverity.Information:
|
|
165
|
+
return "Information";
|
|
166
|
+
case ValidationResultSeverity.VALIDATION_RESULT_SEVERITY_Warning:
|
|
167
|
+
return "VALIDATION_RESULT_SEVERITY_Warning";
|
|
168
|
+
case ValidationResultSeverity.Error:
|
|
169
|
+
return "Error";
|
|
170
|
+
case ValidationResultSeverity.UNRECOGNIZED:
|
|
171
|
+
default:
|
|
172
|
+
return "UNRECOGNIZED";
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface AlertEvidence {
|
|
177
|
+
AttemptCount: number;
|
|
178
|
+
FirstFailure: SerializableDateTimeOffset | undefined;
|
|
179
|
+
LastFailure: SerializableDateTimeOffset | undefined;
|
|
180
|
+
FailureKind: FailureKind;
|
|
181
|
+
Message: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface AlertIncidentContinuation {
|
|
185
|
+
RaisedSequenceNumber: bigint;
|
|
186
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
187
|
+
IncidentId: Guid | undefined;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface AlertIncidentCountDetails {
|
|
191
|
+
Namespace: string;
|
|
192
|
+
Condition: string;
|
|
193
|
+
Severity: AlertSeverity;
|
|
194
|
+
Count: bigint;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface AlertIncidentDetails {
|
|
198
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
199
|
+
Id: Guid | undefined;
|
|
200
|
+
Target: AlertTarget | undefined;
|
|
201
|
+
Condition: string;
|
|
202
|
+
Severity: AlertSeverity;
|
|
203
|
+
Evidence: AlertEvidence | undefined;
|
|
204
|
+
RaisedAt: SerializableDateTimeOffset | undefined;
|
|
205
|
+
LastChangedAt: SerializableDateTimeOffset | undefined;
|
|
206
|
+
RaisedSequenceNumber: bigint;
|
|
207
|
+
LastTransitionSequenceNumber: bigint;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export interface AlertIncidentLookupResponse {
|
|
211
|
+
Status: AlertIncidentsReadinessState;
|
|
212
|
+
Incident: AlertIncidentDetails | undefined;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface AlertIncidentPageResponse {
|
|
216
|
+
Status: AlertIncidentsReadinessState;
|
|
217
|
+
Items: AlertIncidentDetails[];
|
|
218
|
+
Next: AlertIncidentContinuation | undefined;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface AlertIncidentSummaryResponse {
|
|
222
|
+
Status: AlertIncidentsReadinessState;
|
|
223
|
+
Counts: AlertIncidentCountDetails[];
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface AlertTarget {
|
|
227
|
+
EventStore: string;
|
|
228
|
+
Namespace: string;
|
|
229
|
+
ObserverId: string;
|
|
230
|
+
EventSequenceId: string;
|
|
231
|
+
Partition: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface GetOpenIncidentCountsRequest {
|
|
235
|
+
EventStore: string;
|
|
236
|
+
Namespace: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface GetOpenIncidentRequest {
|
|
240
|
+
EventStore: string;
|
|
241
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
242
|
+
IncidentId: Guid | undefined;
|
|
243
|
+
Namespace: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface GetOpenIncidentsRequest {
|
|
247
|
+
EventStore: string;
|
|
248
|
+
Namespace: string;
|
|
249
|
+
ObserverId: string;
|
|
250
|
+
Condition: string;
|
|
251
|
+
MinimumSeverity: AlertSeverity;
|
|
252
|
+
Limit: number;
|
|
253
|
+
AfterRaisedSequenceNumber: bigint;
|
|
254
|
+
AfterIncidentId: Guid | undefined;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface QueryResultAlertIncidentLookupResponse {
|
|
258
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
259
|
+
CorrelationId: Guid | undefined;
|
|
260
|
+
IsAuthorized: boolean;
|
|
261
|
+
ValidationResults: ValidationResult[];
|
|
262
|
+
ExceptionMessages: string[];
|
|
263
|
+
ExceptionStackTrace: string;
|
|
264
|
+
Data: AlertIncidentLookupResponse | undefined;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface QueryResultAlertIncidentPageResponse {
|
|
268
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
269
|
+
CorrelationId: Guid | undefined;
|
|
270
|
+
IsAuthorized: boolean;
|
|
271
|
+
ValidationResults: ValidationResult[];
|
|
272
|
+
ExceptionMessages: string[];
|
|
273
|
+
ExceptionStackTrace: string;
|
|
274
|
+
Data: AlertIncidentPageResponse | undefined;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export interface QueryResultAlertIncidentSummaryResponse {
|
|
278
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
279
|
+
CorrelationId: Guid | undefined;
|
|
280
|
+
IsAuthorized: boolean;
|
|
281
|
+
ValidationResults: ValidationResult[];
|
|
282
|
+
ExceptionMessages: string[];
|
|
283
|
+
ExceptionStackTrace: string;
|
|
284
|
+
Data: AlertIncidentSummaryResponse | undefined;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/** Represents a DateTimeOffset value as an ISO 8601 string (e.g., "2024-01-15T12:30:00.0000000+02:00"). */
|
|
288
|
+
export interface SerializableDateTimeOffset {
|
|
289
|
+
Value: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export interface ValidationResult {
|
|
293
|
+
/** default value could not be applied: Error */
|
|
294
|
+
Severity: ValidationResultSeverity;
|
|
295
|
+
Message: string;
|
|
296
|
+
Members: string[];
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
function createBaseAlertEvidence(): AlertEvidence {
|
|
300
|
+
return { AttemptCount: 0, FirstFailure: undefined, LastFailure: undefined, FailureKind: 0, Message: "" };
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export const AlertEvidence: MessageFns<AlertEvidence> = {
|
|
304
|
+
encode(message: AlertEvidence, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
305
|
+
if (message.AttemptCount !== 0) {
|
|
306
|
+
writer.uint32(8).int32(message.AttemptCount);
|
|
307
|
+
}
|
|
308
|
+
if (message.FirstFailure !== undefined) {
|
|
309
|
+
SerializableDateTimeOffset.encode(message.FirstFailure, writer.uint32(18).fork()).join();
|
|
310
|
+
}
|
|
311
|
+
if (message.LastFailure !== undefined) {
|
|
312
|
+
SerializableDateTimeOffset.encode(message.LastFailure, writer.uint32(26).fork()).join();
|
|
313
|
+
}
|
|
314
|
+
if (message.FailureKind !== 0) {
|
|
315
|
+
writer.uint32(32).int32(message.FailureKind);
|
|
316
|
+
}
|
|
317
|
+
if (message.Message !== "") {
|
|
318
|
+
writer.uint32(42).string(message.Message);
|
|
319
|
+
}
|
|
320
|
+
return writer;
|
|
321
|
+
},
|
|
322
|
+
|
|
323
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AlertEvidence {
|
|
324
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
325
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
326
|
+
if (previousRecursionDepth >= 100) {
|
|
327
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
328
|
+
}
|
|
329
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
330
|
+
try {
|
|
331
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
332
|
+
const message = createBaseAlertEvidence();
|
|
333
|
+
while (reader.pos < end) {
|
|
334
|
+
const tag = reader.uint32();
|
|
335
|
+
switch (tag >>> 3) {
|
|
336
|
+
case 1: {
|
|
337
|
+
if (tag !== 8) {
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
message.AttemptCount = reader.int32();
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
case 2: {
|
|
345
|
+
if (tag !== 18) {
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
message.FirstFailure = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
case 3: {
|
|
353
|
+
if (tag !== 26) {
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
message.LastFailure = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
case 4: {
|
|
361
|
+
if (tag !== 32) {
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
message.FailureKind = reader.int32() as any;
|
|
366
|
+
continue;
|
|
367
|
+
}
|
|
368
|
+
case 5: {
|
|
369
|
+
if (tag !== 42) {
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
message.Message = reader.string();
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
reader.skip(tag & 7);
|
|
381
|
+
}
|
|
382
|
+
return message;
|
|
383
|
+
} finally {
|
|
384
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
|
|
388
|
+
fromJSON(object: any): AlertEvidence {
|
|
389
|
+
return {
|
|
390
|
+
AttemptCount: isSet(object.AttemptCount) ? globalThis.Number(object.AttemptCount) : 0,
|
|
391
|
+
FirstFailure: isSet(object.FirstFailure) ? SerializableDateTimeOffset.fromJSON(object.FirstFailure) : undefined,
|
|
392
|
+
LastFailure: isSet(object.LastFailure) ? SerializableDateTimeOffset.fromJSON(object.LastFailure) : undefined,
|
|
393
|
+
FailureKind: isSet(object.FailureKind) ? failureKindFromJSON(object.FailureKind) : 0,
|
|
394
|
+
Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
|
|
395
|
+
};
|
|
396
|
+
},
|
|
397
|
+
|
|
398
|
+
toJSON(message: AlertEvidence): unknown {
|
|
399
|
+
const obj: any = {};
|
|
400
|
+
if (message.AttemptCount !== 0) {
|
|
401
|
+
obj.AttemptCount = Math.round(message.AttemptCount);
|
|
402
|
+
}
|
|
403
|
+
if (message.FirstFailure !== undefined) {
|
|
404
|
+
obj.FirstFailure = SerializableDateTimeOffset.toJSON(message.FirstFailure);
|
|
405
|
+
}
|
|
406
|
+
if (message.LastFailure !== undefined) {
|
|
407
|
+
obj.LastFailure = SerializableDateTimeOffset.toJSON(message.LastFailure);
|
|
408
|
+
}
|
|
409
|
+
if (message.FailureKind !== 0) {
|
|
410
|
+
obj.FailureKind = failureKindToJSON(message.FailureKind);
|
|
411
|
+
}
|
|
412
|
+
if (message.Message !== "") {
|
|
413
|
+
obj.Message = message.Message;
|
|
414
|
+
}
|
|
415
|
+
return obj;
|
|
416
|
+
},
|
|
417
|
+
|
|
418
|
+
create(base?: DeepPartial<AlertEvidence>): AlertEvidence {
|
|
419
|
+
return AlertEvidence.fromPartial(base ?? {});
|
|
420
|
+
},
|
|
421
|
+
fromPartial(object: DeepPartial<AlertEvidence>): AlertEvidence {
|
|
422
|
+
const message = createBaseAlertEvidence();
|
|
423
|
+
message.AttemptCount = object.AttemptCount ?? 0;
|
|
424
|
+
message.FirstFailure = (object.FirstFailure !== undefined && object.FirstFailure !== null)
|
|
425
|
+
? SerializableDateTimeOffset.fromPartial(object.FirstFailure)
|
|
426
|
+
: undefined;
|
|
427
|
+
message.LastFailure = (object.LastFailure !== undefined && object.LastFailure !== null)
|
|
428
|
+
? SerializableDateTimeOffset.fromPartial(object.LastFailure)
|
|
429
|
+
: undefined;
|
|
430
|
+
message.FailureKind = object.FailureKind ?? 0;
|
|
431
|
+
message.Message = object.Message ?? "";
|
|
432
|
+
return message;
|
|
433
|
+
},
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
function createBaseAlertIncidentContinuation(): AlertIncidentContinuation {
|
|
437
|
+
return { RaisedSequenceNumber: 0n, IncidentId: undefined };
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export const AlertIncidentContinuation: MessageFns<AlertIncidentContinuation> = {
|
|
441
|
+
encode(message: AlertIncidentContinuation, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
442
|
+
if (message.RaisedSequenceNumber !== 0n) {
|
|
443
|
+
if (BigInt.asUintN(64, message.RaisedSequenceNumber) !== message.RaisedSequenceNumber) {
|
|
444
|
+
throw new globalThis.Error("value provided for field message.RaisedSequenceNumber of type uint64 too large");
|
|
445
|
+
}
|
|
446
|
+
writer.uint32(8).uint64(message.RaisedSequenceNumber);
|
|
447
|
+
}
|
|
448
|
+
if (message.IncidentId !== undefined) {
|
|
449
|
+
Guid.encode(message.IncidentId, writer.uint32(18).fork()).join();
|
|
450
|
+
}
|
|
451
|
+
return writer;
|
|
452
|
+
},
|
|
453
|
+
|
|
454
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AlertIncidentContinuation {
|
|
455
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
456
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
457
|
+
if (previousRecursionDepth >= 100) {
|
|
458
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
459
|
+
}
|
|
460
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
461
|
+
try {
|
|
462
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
463
|
+
const message = createBaseAlertIncidentContinuation();
|
|
464
|
+
while (reader.pos < end) {
|
|
465
|
+
const tag = reader.uint32();
|
|
466
|
+
switch (tag >>> 3) {
|
|
467
|
+
case 1: {
|
|
468
|
+
if (tag !== 8) {
|
|
469
|
+
break;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
message.RaisedSequenceNumber = reader.uint64() as bigint;
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
case 2: {
|
|
476
|
+
if (tag !== 18) {
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
message.IncidentId = Guid.decode(reader, reader.uint32());
|
|
481
|
+
continue;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
reader.skip(tag & 7);
|
|
488
|
+
}
|
|
489
|
+
return message;
|
|
490
|
+
} finally {
|
|
491
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
|
|
495
|
+
fromJSON(object: any): AlertIncidentContinuation {
|
|
496
|
+
return {
|
|
497
|
+
RaisedSequenceNumber: isSet(object.RaisedSequenceNumber) ? BigInt(object.RaisedSequenceNumber) : 0n,
|
|
498
|
+
IncidentId: isSet(object.IncidentId) ? Guid.fromJSON(object.IncidentId) : undefined,
|
|
499
|
+
};
|
|
500
|
+
},
|
|
501
|
+
|
|
502
|
+
toJSON(message: AlertIncidentContinuation): unknown {
|
|
503
|
+
const obj: any = {};
|
|
504
|
+
if (message.RaisedSequenceNumber !== 0n) {
|
|
505
|
+
obj.RaisedSequenceNumber = message.RaisedSequenceNumber.toString();
|
|
506
|
+
}
|
|
507
|
+
if (message.IncidentId !== undefined) {
|
|
508
|
+
obj.IncidentId = Guid.toJSON(message.IncidentId);
|
|
509
|
+
}
|
|
510
|
+
return obj;
|
|
511
|
+
},
|
|
512
|
+
|
|
513
|
+
create(base?: DeepPartial<AlertIncidentContinuation>): AlertIncidentContinuation {
|
|
514
|
+
return AlertIncidentContinuation.fromPartial(base ?? {});
|
|
515
|
+
},
|
|
516
|
+
fromPartial(object: DeepPartial<AlertIncidentContinuation>): AlertIncidentContinuation {
|
|
517
|
+
const message = createBaseAlertIncidentContinuation();
|
|
518
|
+
message.RaisedSequenceNumber = (object.RaisedSequenceNumber !== undefined && object.RaisedSequenceNumber !== null)
|
|
519
|
+
? BigInt(object.RaisedSequenceNumber)
|
|
520
|
+
: 0n;
|
|
521
|
+
message.IncidentId = (object.IncidentId !== undefined && object.IncidentId !== null)
|
|
522
|
+
? Guid.fromPartial(object.IncidentId)
|
|
523
|
+
: undefined;
|
|
524
|
+
return message;
|
|
525
|
+
},
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
function createBaseAlertIncidentCountDetails(): AlertIncidentCountDetails {
|
|
529
|
+
return { Namespace: "", Condition: "", Severity: 0, Count: 0n };
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export const AlertIncidentCountDetails: MessageFns<AlertIncidentCountDetails> = {
|
|
533
|
+
encode(message: AlertIncidentCountDetails, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
534
|
+
if (message.Namespace !== "") {
|
|
535
|
+
writer.uint32(10).string(message.Namespace);
|
|
536
|
+
}
|
|
537
|
+
if (message.Condition !== "") {
|
|
538
|
+
writer.uint32(18).string(message.Condition);
|
|
539
|
+
}
|
|
540
|
+
if (message.Severity !== 0) {
|
|
541
|
+
writer.uint32(24).int32(message.Severity);
|
|
542
|
+
}
|
|
543
|
+
if (message.Count !== 0n) {
|
|
544
|
+
if (BigInt.asIntN(64, message.Count) !== message.Count) {
|
|
545
|
+
throw new globalThis.Error("value provided for field message.Count of type int64 too large");
|
|
546
|
+
}
|
|
547
|
+
writer.uint32(32).int64(message.Count);
|
|
548
|
+
}
|
|
549
|
+
return writer;
|
|
550
|
+
},
|
|
551
|
+
|
|
552
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AlertIncidentCountDetails {
|
|
553
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
554
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
555
|
+
if (previousRecursionDepth >= 100) {
|
|
556
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
557
|
+
}
|
|
558
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
559
|
+
try {
|
|
560
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
561
|
+
const message = createBaseAlertIncidentCountDetails();
|
|
562
|
+
while (reader.pos < end) {
|
|
563
|
+
const tag = reader.uint32();
|
|
564
|
+
switch (tag >>> 3) {
|
|
565
|
+
case 1: {
|
|
566
|
+
if (tag !== 10) {
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
message.Namespace = reader.string();
|
|
571
|
+
continue;
|
|
572
|
+
}
|
|
573
|
+
case 2: {
|
|
574
|
+
if (tag !== 18) {
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
message.Condition = reader.string();
|
|
579
|
+
continue;
|
|
580
|
+
}
|
|
581
|
+
case 3: {
|
|
582
|
+
if (tag !== 24) {
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
message.Severity = reader.int32() as any;
|
|
587
|
+
continue;
|
|
588
|
+
}
|
|
589
|
+
case 4: {
|
|
590
|
+
if (tag !== 32) {
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
message.Count = reader.int64() as bigint;
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
reader.skip(tag & 7);
|
|
602
|
+
}
|
|
603
|
+
return message;
|
|
604
|
+
} finally {
|
|
605
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
|
|
609
|
+
fromJSON(object: any): AlertIncidentCountDetails {
|
|
610
|
+
return {
|
|
611
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
612
|
+
Condition: isSet(object.Condition) ? globalThis.String(object.Condition) : "",
|
|
613
|
+
Severity: isSet(object.Severity) ? alertSeverityFromJSON(object.Severity) : 0,
|
|
614
|
+
Count: isSet(object.Count) ? BigInt(object.Count) : 0n,
|
|
615
|
+
};
|
|
616
|
+
},
|
|
617
|
+
|
|
618
|
+
toJSON(message: AlertIncidentCountDetails): unknown {
|
|
619
|
+
const obj: any = {};
|
|
620
|
+
if (message.Namespace !== "") {
|
|
621
|
+
obj.Namespace = message.Namespace;
|
|
622
|
+
}
|
|
623
|
+
if (message.Condition !== "") {
|
|
624
|
+
obj.Condition = message.Condition;
|
|
625
|
+
}
|
|
626
|
+
if (message.Severity !== 0) {
|
|
627
|
+
obj.Severity = alertSeverityToJSON(message.Severity);
|
|
628
|
+
}
|
|
629
|
+
if (message.Count !== 0n) {
|
|
630
|
+
obj.Count = message.Count.toString();
|
|
631
|
+
}
|
|
632
|
+
return obj;
|
|
633
|
+
},
|
|
634
|
+
|
|
635
|
+
create(base?: DeepPartial<AlertIncidentCountDetails>): AlertIncidentCountDetails {
|
|
636
|
+
return AlertIncidentCountDetails.fromPartial(base ?? {});
|
|
637
|
+
},
|
|
638
|
+
fromPartial(object: DeepPartial<AlertIncidentCountDetails>): AlertIncidentCountDetails {
|
|
639
|
+
const message = createBaseAlertIncidentCountDetails();
|
|
640
|
+
message.Namespace = object.Namespace ?? "";
|
|
641
|
+
message.Condition = object.Condition ?? "";
|
|
642
|
+
message.Severity = object.Severity ?? 0;
|
|
643
|
+
message.Count = (object.Count !== undefined && object.Count !== null) ? BigInt(object.Count) : 0n;
|
|
644
|
+
return message;
|
|
645
|
+
},
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
function createBaseAlertIncidentDetails(): AlertIncidentDetails {
|
|
649
|
+
return {
|
|
650
|
+
Id: undefined,
|
|
651
|
+
Target: undefined,
|
|
652
|
+
Condition: "",
|
|
653
|
+
Severity: 0,
|
|
654
|
+
Evidence: undefined,
|
|
655
|
+
RaisedAt: undefined,
|
|
656
|
+
LastChangedAt: undefined,
|
|
657
|
+
RaisedSequenceNumber: 0n,
|
|
658
|
+
LastTransitionSequenceNumber: 0n,
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export const AlertIncidentDetails: MessageFns<AlertIncidentDetails> = {
|
|
663
|
+
encode(message: AlertIncidentDetails, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
664
|
+
if (message.Id !== undefined) {
|
|
665
|
+
Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
666
|
+
}
|
|
667
|
+
if (message.Target !== undefined) {
|
|
668
|
+
AlertTarget.encode(message.Target, writer.uint32(18).fork()).join();
|
|
669
|
+
}
|
|
670
|
+
if (message.Condition !== "") {
|
|
671
|
+
writer.uint32(26).string(message.Condition);
|
|
672
|
+
}
|
|
673
|
+
if (message.Severity !== 0) {
|
|
674
|
+
writer.uint32(32).int32(message.Severity);
|
|
675
|
+
}
|
|
676
|
+
if (message.Evidence !== undefined) {
|
|
677
|
+
AlertEvidence.encode(message.Evidence, writer.uint32(42).fork()).join();
|
|
678
|
+
}
|
|
679
|
+
if (message.RaisedAt !== undefined) {
|
|
680
|
+
SerializableDateTimeOffset.encode(message.RaisedAt, writer.uint32(50).fork()).join();
|
|
681
|
+
}
|
|
682
|
+
if (message.LastChangedAt !== undefined) {
|
|
683
|
+
SerializableDateTimeOffset.encode(message.LastChangedAt, writer.uint32(58).fork()).join();
|
|
684
|
+
}
|
|
685
|
+
if (message.RaisedSequenceNumber !== 0n) {
|
|
686
|
+
if (BigInt.asUintN(64, message.RaisedSequenceNumber) !== message.RaisedSequenceNumber) {
|
|
687
|
+
throw new globalThis.Error("value provided for field message.RaisedSequenceNumber of type uint64 too large");
|
|
688
|
+
}
|
|
689
|
+
writer.uint32(64).uint64(message.RaisedSequenceNumber);
|
|
690
|
+
}
|
|
691
|
+
if (message.LastTransitionSequenceNumber !== 0n) {
|
|
692
|
+
if (BigInt.asUintN(64, message.LastTransitionSequenceNumber) !== message.LastTransitionSequenceNumber) {
|
|
693
|
+
throw new globalThis.Error(
|
|
694
|
+
"value provided for field message.LastTransitionSequenceNumber of type uint64 too large",
|
|
695
|
+
);
|
|
696
|
+
}
|
|
697
|
+
writer.uint32(72).uint64(message.LastTransitionSequenceNumber);
|
|
698
|
+
}
|
|
699
|
+
return writer;
|
|
700
|
+
},
|
|
701
|
+
|
|
702
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AlertIncidentDetails {
|
|
703
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
704
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
705
|
+
if (previousRecursionDepth >= 100) {
|
|
706
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
707
|
+
}
|
|
708
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
709
|
+
try {
|
|
710
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
711
|
+
const message = createBaseAlertIncidentDetails();
|
|
712
|
+
while (reader.pos < end) {
|
|
713
|
+
const tag = reader.uint32();
|
|
714
|
+
switch (tag >>> 3) {
|
|
715
|
+
case 1: {
|
|
716
|
+
if (tag !== 10) {
|
|
717
|
+
break;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
message.Id = Guid.decode(reader, reader.uint32());
|
|
721
|
+
continue;
|
|
722
|
+
}
|
|
723
|
+
case 2: {
|
|
724
|
+
if (tag !== 18) {
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
message.Target = AlertTarget.decode(reader, reader.uint32());
|
|
729
|
+
continue;
|
|
730
|
+
}
|
|
731
|
+
case 3: {
|
|
732
|
+
if (tag !== 26) {
|
|
733
|
+
break;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
message.Condition = reader.string();
|
|
737
|
+
continue;
|
|
738
|
+
}
|
|
739
|
+
case 4: {
|
|
740
|
+
if (tag !== 32) {
|
|
741
|
+
break;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
message.Severity = reader.int32() as any;
|
|
745
|
+
continue;
|
|
746
|
+
}
|
|
747
|
+
case 5: {
|
|
748
|
+
if (tag !== 42) {
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
message.Evidence = AlertEvidence.decode(reader, reader.uint32());
|
|
753
|
+
continue;
|
|
754
|
+
}
|
|
755
|
+
case 6: {
|
|
756
|
+
if (tag !== 50) {
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
message.RaisedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
761
|
+
continue;
|
|
762
|
+
}
|
|
763
|
+
case 7: {
|
|
764
|
+
if (tag !== 58) {
|
|
765
|
+
break;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
message.LastChangedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
769
|
+
continue;
|
|
770
|
+
}
|
|
771
|
+
case 8: {
|
|
772
|
+
if (tag !== 64) {
|
|
773
|
+
break;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
message.RaisedSequenceNumber = reader.uint64() as bigint;
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
case 9: {
|
|
780
|
+
if (tag !== 72) {
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
message.LastTransitionSequenceNumber = reader.uint64() as bigint;
|
|
785
|
+
continue;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
789
|
+
break;
|
|
790
|
+
}
|
|
791
|
+
reader.skip(tag & 7);
|
|
792
|
+
}
|
|
793
|
+
return message;
|
|
794
|
+
} finally {
|
|
795
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
|
|
799
|
+
fromJSON(object: any): AlertIncidentDetails {
|
|
800
|
+
return {
|
|
801
|
+
Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined,
|
|
802
|
+
Target: isSet(object.Target) ? AlertTarget.fromJSON(object.Target) : undefined,
|
|
803
|
+
Condition: isSet(object.Condition) ? globalThis.String(object.Condition) : "",
|
|
804
|
+
Severity: isSet(object.Severity) ? alertSeverityFromJSON(object.Severity) : 0,
|
|
805
|
+
Evidence: isSet(object.Evidence) ? AlertEvidence.fromJSON(object.Evidence) : undefined,
|
|
806
|
+
RaisedAt: isSet(object.RaisedAt) ? SerializableDateTimeOffset.fromJSON(object.RaisedAt) : undefined,
|
|
807
|
+
LastChangedAt: isSet(object.LastChangedAt)
|
|
808
|
+
? SerializableDateTimeOffset.fromJSON(object.LastChangedAt)
|
|
809
|
+
: undefined,
|
|
810
|
+
RaisedSequenceNumber: isSet(object.RaisedSequenceNumber) ? BigInt(object.RaisedSequenceNumber) : 0n,
|
|
811
|
+
LastTransitionSequenceNumber: isSet(object.LastTransitionSequenceNumber)
|
|
812
|
+
? BigInt(object.LastTransitionSequenceNumber)
|
|
813
|
+
: 0n,
|
|
814
|
+
};
|
|
815
|
+
},
|
|
816
|
+
|
|
817
|
+
toJSON(message: AlertIncidentDetails): unknown {
|
|
818
|
+
const obj: any = {};
|
|
819
|
+
if (message.Id !== undefined) {
|
|
820
|
+
obj.Id = Guid.toJSON(message.Id);
|
|
821
|
+
}
|
|
822
|
+
if (message.Target !== undefined) {
|
|
823
|
+
obj.Target = AlertTarget.toJSON(message.Target);
|
|
824
|
+
}
|
|
825
|
+
if (message.Condition !== "") {
|
|
826
|
+
obj.Condition = message.Condition;
|
|
827
|
+
}
|
|
828
|
+
if (message.Severity !== 0) {
|
|
829
|
+
obj.Severity = alertSeverityToJSON(message.Severity);
|
|
830
|
+
}
|
|
831
|
+
if (message.Evidence !== undefined) {
|
|
832
|
+
obj.Evidence = AlertEvidence.toJSON(message.Evidence);
|
|
833
|
+
}
|
|
834
|
+
if (message.RaisedAt !== undefined) {
|
|
835
|
+
obj.RaisedAt = SerializableDateTimeOffset.toJSON(message.RaisedAt);
|
|
836
|
+
}
|
|
837
|
+
if (message.LastChangedAt !== undefined) {
|
|
838
|
+
obj.LastChangedAt = SerializableDateTimeOffset.toJSON(message.LastChangedAt);
|
|
839
|
+
}
|
|
840
|
+
if (message.RaisedSequenceNumber !== 0n) {
|
|
841
|
+
obj.RaisedSequenceNumber = message.RaisedSequenceNumber.toString();
|
|
842
|
+
}
|
|
843
|
+
if (message.LastTransitionSequenceNumber !== 0n) {
|
|
844
|
+
obj.LastTransitionSequenceNumber = message.LastTransitionSequenceNumber.toString();
|
|
845
|
+
}
|
|
846
|
+
return obj;
|
|
847
|
+
},
|
|
848
|
+
|
|
849
|
+
create(base?: DeepPartial<AlertIncidentDetails>): AlertIncidentDetails {
|
|
850
|
+
return AlertIncidentDetails.fromPartial(base ?? {});
|
|
851
|
+
},
|
|
852
|
+
fromPartial(object: DeepPartial<AlertIncidentDetails>): AlertIncidentDetails {
|
|
853
|
+
const message = createBaseAlertIncidentDetails();
|
|
854
|
+
message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
|
|
855
|
+
message.Target = (object.Target !== undefined && object.Target !== null)
|
|
856
|
+
? AlertTarget.fromPartial(object.Target)
|
|
857
|
+
: undefined;
|
|
858
|
+
message.Condition = object.Condition ?? "";
|
|
859
|
+
message.Severity = object.Severity ?? 0;
|
|
860
|
+
message.Evidence = (object.Evidence !== undefined && object.Evidence !== null)
|
|
861
|
+
? AlertEvidence.fromPartial(object.Evidence)
|
|
862
|
+
: undefined;
|
|
863
|
+
message.RaisedAt = (object.RaisedAt !== undefined && object.RaisedAt !== null)
|
|
864
|
+
? SerializableDateTimeOffset.fromPartial(object.RaisedAt)
|
|
865
|
+
: undefined;
|
|
866
|
+
message.LastChangedAt = (object.LastChangedAt !== undefined && object.LastChangedAt !== null)
|
|
867
|
+
? SerializableDateTimeOffset.fromPartial(object.LastChangedAt)
|
|
868
|
+
: undefined;
|
|
869
|
+
message.RaisedSequenceNumber = (object.RaisedSequenceNumber !== undefined && object.RaisedSequenceNumber !== null)
|
|
870
|
+
? BigInt(object.RaisedSequenceNumber)
|
|
871
|
+
: 0n;
|
|
872
|
+
message.LastTransitionSequenceNumber =
|
|
873
|
+
(object.LastTransitionSequenceNumber !== undefined && object.LastTransitionSequenceNumber !== null)
|
|
874
|
+
? BigInt(object.LastTransitionSequenceNumber)
|
|
875
|
+
: 0n;
|
|
876
|
+
return message;
|
|
877
|
+
},
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
function createBaseAlertIncidentLookupResponse(): AlertIncidentLookupResponse {
|
|
881
|
+
return { Status: 0, Incident: undefined };
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export const AlertIncidentLookupResponse: MessageFns<AlertIncidentLookupResponse> = {
|
|
885
|
+
encode(message: AlertIncidentLookupResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
886
|
+
if (message.Status !== 0) {
|
|
887
|
+
writer.uint32(8).int32(message.Status);
|
|
888
|
+
}
|
|
889
|
+
if (message.Incident !== undefined) {
|
|
890
|
+
AlertIncidentDetails.encode(message.Incident, writer.uint32(18).fork()).join();
|
|
891
|
+
}
|
|
892
|
+
return writer;
|
|
893
|
+
},
|
|
894
|
+
|
|
895
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AlertIncidentLookupResponse {
|
|
896
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
897
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
898
|
+
if (previousRecursionDepth >= 100) {
|
|
899
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
900
|
+
}
|
|
901
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
902
|
+
try {
|
|
903
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
904
|
+
const message = createBaseAlertIncidentLookupResponse();
|
|
905
|
+
while (reader.pos < end) {
|
|
906
|
+
const tag = reader.uint32();
|
|
907
|
+
switch (tag >>> 3) {
|
|
908
|
+
case 1: {
|
|
909
|
+
if (tag !== 8) {
|
|
910
|
+
break;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
message.Status = reader.int32() as any;
|
|
914
|
+
continue;
|
|
915
|
+
}
|
|
916
|
+
case 2: {
|
|
917
|
+
if (tag !== 18) {
|
|
918
|
+
break;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
message.Incident = AlertIncidentDetails.decode(reader, reader.uint32());
|
|
922
|
+
continue;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
926
|
+
break;
|
|
927
|
+
}
|
|
928
|
+
reader.skip(tag & 7);
|
|
929
|
+
}
|
|
930
|
+
return message;
|
|
931
|
+
} finally {
|
|
932
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
|
|
936
|
+
fromJSON(object: any): AlertIncidentLookupResponse {
|
|
937
|
+
return {
|
|
938
|
+
Status: isSet(object.Status) ? alertIncidentsReadinessStateFromJSON(object.Status) : 0,
|
|
939
|
+
Incident: isSet(object.Incident) ? AlertIncidentDetails.fromJSON(object.Incident) : undefined,
|
|
940
|
+
};
|
|
941
|
+
},
|
|
942
|
+
|
|
943
|
+
toJSON(message: AlertIncidentLookupResponse): unknown {
|
|
944
|
+
const obj: any = {};
|
|
945
|
+
if (message.Status !== 0) {
|
|
946
|
+
obj.Status = alertIncidentsReadinessStateToJSON(message.Status);
|
|
947
|
+
}
|
|
948
|
+
if (message.Incident !== undefined) {
|
|
949
|
+
obj.Incident = AlertIncidentDetails.toJSON(message.Incident);
|
|
950
|
+
}
|
|
951
|
+
return obj;
|
|
952
|
+
},
|
|
953
|
+
|
|
954
|
+
create(base?: DeepPartial<AlertIncidentLookupResponse>): AlertIncidentLookupResponse {
|
|
955
|
+
return AlertIncidentLookupResponse.fromPartial(base ?? {});
|
|
956
|
+
},
|
|
957
|
+
fromPartial(object: DeepPartial<AlertIncidentLookupResponse>): AlertIncidentLookupResponse {
|
|
958
|
+
const message = createBaseAlertIncidentLookupResponse();
|
|
959
|
+
message.Status = object.Status ?? 0;
|
|
960
|
+
message.Incident = (object.Incident !== undefined && object.Incident !== null)
|
|
961
|
+
? AlertIncidentDetails.fromPartial(object.Incident)
|
|
962
|
+
: undefined;
|
|
963
|
+
return message;
|
|
964
|
+
},
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
function createBaseAlertIncidentPageResponse(): AlertIncidentPageResponse {
|
|
968
|
+
return { Status: 0, Items: [], Next: undefined };
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export const AlertIncidentPageResponse: MessageFns<AlertIncidentPageResponse> = {
|
|
972
|
+
encode(message: AlertIncidentPageResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
973
|
+
if (message.Status !== 0) {
|
|
974
|
+
writer.uint32(8).int32(message.Status);
|
|
975
|
+
}
|
|
976
|
+
for (const v of message.Items) {
|
|
977
|
+
AlertIncidentDetails.encode(v!, writer.uint32(18).fork()).join();
|
|
978
|
+
}
|
|
979
|
+
if (message.Next !== undefined) {
|
|
980
|
+
AlertIncidentContinuation.encode(message.Next, writer.uint32(26).fork()).join();
|
|
981
|
+
}
|
|
982
|
+
return writer;
|
|
983
|
+
},
|
|
984
|
+
|
|
985
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AlertIncidentPageResponse {
|
|
986
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
987
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
988
|
+
if (previousRecursionDepth >= 100) {
|
|
989
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
990
|
+
}
|
|
991
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
992
|
+
try {
|
|
993
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
994
|
+
const message = createBaseAlertIncidentPageResponse();
|
|
995
|
+
while (reader.pos < end) {
|
|
996
|
+
const tag = reader.uint32();
|
|
997
|
+
switch (tag >>> 3) {
|
|
998
|
+
case 1: {
|
|
999
|
+
if (tag !== 8) {
|
|
1000
|
+
break;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
message.Status = reader.int32() as any;
|
|
1004
|
+
continue;
|
|
1005
|
+
}
|
|
1006
|
+
case 2: {
|
|
1007
|
+
if (tag !== 18) {
|
|
1008
|
+
break;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
message.Items.push(AlertIncidentDetails.decode(reader, reader.uint32()));
|
|
1012
|
+
continue;
|
|
1013
|
+
}
|
|
1014
|
+
case 3: {
|
|
1015
|
+
if (tag !== 26) {
|
|
1016
|
+
break;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
message.Next = AlertIncidentContinuation.decode(reader, reader.uint32());
|
|
1020
|
+
continue;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
reader.skip(tag & 7);
|
|
1027
|
+
}
|
|
1028
|
+
return message;
|
|
1029
|
+
} finally {
|
|
1030
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
|
|
1034
|
+
fromJSON(object: any): AlertIncidentPageResponse {
|
|
1035
|
+
return {
|
|
1036
|
+
Status: isSet(object.Status) ? alertIncidentsReadinessStateFromJSON(object.Status) : 0,
|
|
1037
|
+
Items: globalThis.Array.isArray(object?.Items)
|
|
1038
|
+
? object.Items.map((e: any) => AlertIncidentDetails.fromJSON(e))
|
|
1039
|
+
: [],
|
|
1040
|
+
Next: isSet(object.Next) ? AlertIncidentContinuation.fromJSON(object.Next) : undefined,
|
|
1041
|
+
};
|
|
1042
|
+
},
|
|
1043
|
+
|
|
1044
|
+
toJSON(message: AlertIncidentPageResponse): unknown {
|
|
1045
|
+
const obj: any = {};
|
|
1046
|
+
if (message.Status !== 0) {
|
|
1047
|
+
obj.Status = alertIncidentsReadinessStateToJSON(message.Status);
|
|
1048
|
+
}
|
|
1049
|
+
if (message.Items?.length) {
|
|
1050
|
+
obj.Items = message.Items.map((e) => AlertIncidentDetails.toJSON(e));
|
|
1051
|
+
}
|
|
1052
|
+
if (message.Next !== undefined) {
|
|
1053
|
+
obj.Next = AlertIncidentContinuation.toJSON(message.Next);
|
|
1054
|
+
}
|
|
1055
|
+
return obj;
|
|
1056
|
+
},
|
|
1057
|
+
|
|
1058
|
+
create(base?: DeepPartial<AlertIncidentPageResponse>): AlertIncidentPageResponse {
|
|
1059
|
+
return AlertIncidentPageResponse.fromPartial(base ?? {});
|
|
1060
|
+
},
|
|
1061
|
+
fromPartial(object: DeepPartial<AlertIncidentPageResponse>): AlertIncidentPageResponse {
|
|
1062
|
+
const message = createBaseAlertIncidentPageResponse();
|
|
1063
|
+
message.Status = object.Status ?? 0;
|
|
1064
|
+
message.Items = object.Items?.map((e) => AlertIncidentDetails.fromPartial(e)) || [];
|
|
1065
|
+
message.Next = (object.Next !== undefined && object.Next !== null)
|
|
1066
|
+
? AlertIncidentContinuation.fromPartial(object.Next)
|
|
1067
|
+
: undefined;
|
|
1068
|
+
return message;
|
|
1069
|
+
},
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
function createBaseAlertIncidentSummaryResponse(): AlertIncidentSummaryResponse {
|
|
1073
|
+
return { Status: 0, Counts: [] };
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
export const AlertIncidentSummaryResponse: MessageFns<AlertIncidentSummaryResponse> = {
|
|
1077
|
+
encode(message: AlertIncidentSummaryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1078
|
+
if (message.Status !== 0) {
|
|
1079
|
+
writer.uint32(8).int32(message.Status);
|
|
1080
|
+
}
|
|
1081
|
+
for (const v of message.Counts) {
|
|
1082
|
+
AlertIncidentCountDetails.encode(v!, writer.uint32(18).fork()).join();
|
|
1083
|
+
}
|
|
1084
|
+
return writer;
|
|
1085
|
+
},
|
|
1086
|
+
|
|
1087
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AlertIncidentSummaryResponse {
|
|
1088
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1089
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1090
|
+
if (previousRecursionDepth >= 100) {
|
|
1091
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1092
|
+
}
|
|
1093
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1094
|
+
try {
|
|
1095
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1096
|
+
const message = createBaseAlertIncidentSummaryResponse();
|
|
1097
|
+
while (reader.pos < end) {
|
|
1098
|
+
const tag = reader.uint32();
|
|
1099
|
+
switch (tag >>> 3) {
|
|
1100
|
+
case 1: {
|
|
1101
|
+
if (tag !== 8) {
|
|
1102
|
+
break;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
message.Status = reader.int32() as any;
|
|
1106
|
+
continue;
|
|
1107
|
+
}
|
|
1108
|
+
case 2: {
|
|
1109
|
+
if (tag !== 18) {
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
message.Counts.push(AlertIncidentCountDetails.decode(reader, reader.uint32()));
|
|
1114
|
+
continue;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
reader.skip(tag & 7);
|
|
1121
|
+
}
|
|
1122
|
+
return message;
|
|
1123
|
+
} finally {
|
|
1124
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
|
|
1128
|
+
fromJSON(object: any): AlertIncidentSummaryResponse {
|
|
1129
|
+
return {
|
|
1130
|
+
Status: isSet(object.Status) ? alertIncidentsReadinessStateFromJSON(object.Status) : 0,
|
|
1131
|
+
Counts: globalThis.Array.isArray(object?.Counts)
|
|
1132
|
+
? object.Counts.map((e: any) => AlertIncidentCountDetails.fromJSON(e))
|
|
1133
|
+
: [],
|
|
1134
|
+
};
|
|
1135
|
+
},
|
|
1136
|
+
|
|
1137
|
+
toJSON(message: AlertIncidentSummaryResponse): unknown {
|
|
1138
|
+
const obj: any = {};
|
|
1139
|
+
if (message.Status !== 0) {
|
|
1140
|
+
obj.Status = alertIncidentsReadinessStateToJSON(message.Status);
|
|
1141
|
+
}
|
|
1142
|
+
if (message.Counts?.length) {
|
|
1143
|
+
obj.Counts = message.Counts.map((e) => AlertIncidentCountDetails.toJSON(e));
|
|
1144
|
+
}
|
|
1145
|
+
return obj;
|
|
1146
|
+
},
|
|
1147
|
+
|
|
1148
|
+
create(base?: DeepPartial<AlertIncidentSummaryResponse>): AlertIncidentSummaryResponse {
|
|
1149
|
+
return AlertIncidentSummaryResponse.fromPartial(base ?? {});
|
|
1150
|
+
},
|
|
1151
|
+
fromPartial(object: DeepPartial<AlertIncidentSummaryResponse>): AlertIncidentSummaryResponse {
|
|
1152
|
+
const message = createBaseAlertIncidentSummaryResponse();
|
|
1153
|
+
message.Status = object.Status ?? 0;
|
|
1154
|
+
message.Counts = object.Counts?.map((e) => AlertIncidentCountDetails.fromPartial(e)) || [];
|
|
1155
|
+
return message;
|
|
1156
|
+
},
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1159
|
+
function createBaseAlertTarget(): AlertTarget {
|
|
1160
|
+
return { EventStore: "", Namespace: "", ObserverId: "", EventSequenceId: "", Partition: "" };
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
export const AlertTarget: MessageFns<AlertTarget> = {
|
|
1164
|
+
encode(message: AlertTarget, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1165
|
+
if (message.EventStore !== "") {
|
|
1166
|
+
writer.uint32(10).string(message.EventStore);
|
|
1167
|
+
}
|
|
1168
|
+
if (message.Namespace !== "") {
|
|
1169
|
+
writer.uint32(18).string(message.Namespace);
|
|
1170
|
+
}
|
|
1171
|
+
if (message.ObserverId !== "") {
|
|
1172
|
+
writer.uint32(26).string(message.ObserverId);
|
|
1173
|
+
}
|
|
1174
|
+
if (message.EventSequenceId !== "") {
|
|
1175
|
+
writer.uint32(34).string(message.EventSequenceId);
|
|
1176
|
+
}
|
|
1177
|
+
if (message.Partition !== "") {
|
|
1178
|
+
writer.uint32(42).string(message.Partition);
|
|
1179
|
+
}
|
|
1180
|
+
return writer;
|
|
1181
|
+
},
|
|
1182
|
+
|
|
1183
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AlertTarget {
|
|
1184
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1185
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1186
|
+
if (previousRecursionDepth >= 100) {
|
|
1187
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1188
|
+
}
|
|
1189
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1190
|
+
try {
|
|
1191
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1192
|
+
const message = createBaseAlertTarget();
|
|
1193
|
+
while (reader.pos < end) {
|
|
1194
|
+
const tag = reader.uint32();
|
|
1195
|
+
switch (tag >>> 3) {
|
|
1196
|
+
case 1: {
|
|
1197
|
+
if (tag !== 10) {
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
message.EventStore = reader.string();
|
|
1202
|
+
continue;
|
|
1203
|
+
}
|
|
1204
|
+
case 2: {
|
|
1205
|
+
if (tag !== 18) {
|
|
1206
|
+
break;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
message.Namespace = reader.string();
|
|
1210
|
+
continue;
|
|
1211
|
+
}
|
|
1212
|
+
case 3: {
|
|
1213
|
+
if (tag !== 26) {
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
message.ObserverId = reader.string();
|
|
1218
|
+
continue;
|
|
1219
|
+
}
|
|
1220
|
+
case 4: {
|
|
1221
|
+
if (tag !== 34) {
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
message.EventSequenceId = reader.string();
|
|
1226
|
+
continue;
|
|
1227
|
+
}
|
|
1228
|
+
case 5: {
|
|
1229
|
+
if (tag !== 42) {
|
|
1230
|
+
break;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
message.Partition = reader.string();
|
|
1234
|
+
continue;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1238
|
+
break;
|
|
1239
|
+
}
|
|
1240
|
+
reader.skip(tag & 7);
|
|
1241
|
+
}
|
|
1242
|
+
return message;
|
|
1243
|
+
} finally {
|
|
1244
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
|
|
1248
|
+
fromJSON(object: any): AlertTarget {
|
|
1249
|
+
return {
|
|
1250
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1251
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
1252
|
+
ObserverId: isSet(object.ObserverId) ? globalThis.String(object.ObserverId) : "",
|
|
1253
|
+
EventSequenceId: isSet(object.EventSequenceId) ? globalThis.String(object.EventSequenceId) : "",
|
|
1254
|
+
Partition: isSet(object.Partition) ? globalThis.String(object.Partition) : "",
|
|
1255
|
+
};
|
|
1256
|
+
},
|
|
1257
|
+
|
|
1258
|
+
toJSON(message: AlertTarget): unknown {
|
|
1259
|
+
const obj: any = {};
|
|
1260
|
+
if (message.EventStore !== "") {
|
|
1261
|
+
obj.EventStore = message.EventStore;
|
|
1262
|
+
}
|
|
1263
|
+
if (message.Namespace !== "") {
|
|
1264
|
+
obj.Namespace = message.Namespace;
|
|
1265
|
+
}
|
|
1266
|
+
if (message.ObserverId !== "") {
|
|
1267
|
+
obj.ObserverId = message.ObserverId;
|
|
1268
|
+
}
|
|
1269
|
+
if (message.EventSequenceId !== "") {
|
|
1270
|
+
obj.EventSequenceId = message.EventSequenceId;
|
|
1271
|
+
}
|
|
1272
|
+
if (message.Partition !== "") {
|
|
1273
|
+
obj.Partition = message.Partition;
|
|
1274
|
+
}
|
|
1275
|
+
return obj;
|
|
1276
|
+
},
|
|
1277
|
+
|
|
1278
|
+
create(base?: DeepPartial<AlertTarget>): AlertTarget {
|
|
1279
|
+
return AlertTarget.fromPartial(base ?? {});
|
|
1280
|
+
},
|
|
1281
|
+
fromPartial(object: DeepPartial<AlertTarget>): AlertTarget {
|
|
1282
|
+
const message = createBaseAlertTarget();
|
|
1283
|
+
message.EventStore = object.EventStore ?? "";
|
|
1284
|
+
message.Namespace = object.Namespace ?? "";
|
|
1285
|
+
message.ObserverId = object.ObserverId ?? "";
|
|
1286
|
+
message.EventSequenceId = object.EventSequenceId ?? "";
|
|
1287
|
+
message.Partition = object.Partition ?? "";
|
|
1288
|
+
return message;
|
|
1289
|
+
},
|
|
1290
|
+
};
|
|
1291
|
+
|
|
1292
|
+
function createBaseGetOpenIncidentCountsRequest(): GetOpenIncidentCountsRequest {
|
|
1293
|
+
return { EventStore: "", Namespace: "" };
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export const GetOpenIncidentCountsRequest: MessageFns<GetOpenIncidentCountsRequest> = {
|
|
1297
|
+
encode(message: GetOpenIncidentCountsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1298
|
+
if (message.EventStore !== "") {
|
|
1299
|
+
writer.uint32(10).string(message.EventStore);
|
|
1300
|
+
}
|
|
1301
|
+
if (message.Namespace !== "") {
|
|
1302
|
+
writer.uint32(18).string(message.Namespace);
|
|
1303
|
+
}
|
|
1304
|
+
return writer;
|
|
1305
|
+
},
|
|
1306
|
+
|
|
1307
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetOpenIncidentCountsRequest {
|
|
1308
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1309
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1310
|
+
if (previousRecursionDepth >= 100) {
|
|
1311
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1312
|
+
}
|
|
1313
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1314
|
+
try {
|
|
1315
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1316
|
+
const message = createBaseGetOpenIncidentCountsRequest();
|
|
1317
|
+
while (reader.pos < end) {
|
|
1318
|
+
const tag = reader.uint32();
|
|
1319
|
+
switch (tag >>> 3) {
|
|
1320
|
+
case 1: {
|
|
1321
|
+
if (tag !== 10) {
|
|
1322
|
+
break;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
message.EventStore = reader.string();
|
|
1326
|
+
continue;
|
|
1327
|
+
}
|
|
1328
|
+
case 2: {
|
|
1329
|
+
if (tag !== 18) {
|
|
1330
|
+
break;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
message.Namespace = reader.string();
|
|
1334
|
+
continue;
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1338
|
+
break;
|
|
1339
|
+
}
|
|
1340
|
+
reader.skip(tag & 7);
|
|
1341
|
+
}
|
|
1342
|
+
return message;
|
|
1343
|
+
} finally {
|
|
1344
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
|
|
1348
|
+
fromJSON(object: any): GetOpenIncidentCountsRequest {
|
|
1349
|
+
return {
|
|
1350
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1351
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
1352
|
+
};
|
|
1353
|
+
},
|
|
1354
|
+
|
|
1355
|
+
toJSON(message: GetOpenIncidentCountsRequest): unknown {
|
|
1356
|
+
const obj: any = {};
|
|
1357
|
+
if (message.EventStore !== "") {
|
|
1358
|
+
obj.EventStore = message.EventStore;
|
|
1359
|
+
}
|
|
1360
|
+
if (message.Namespace !== "") {
|
|
1361
|
+
obj.Namespace = message.Namespace;
|
|
1362
|
+
}
|
|
1363
|
+
return obj;
|
|
1364
|
+
},
|
|
1365
|
+
|
|
1366
|
+
create(base?: DeepPartial<GetOpenIncidentCountsRequest>): GetOpenIncidentCountsRequest {
|
|
1367
|
+
return GetOpenIncidentCountsRequest.fromPartial(base ?? {});
|
|
1368
|
+
},
|
|
1369
|
+
fromPartial(object: DeepPartial<GetOpenIncidentCountsRequest>): GetOpenIncidentCountsRequest {
|
|
1370
|
+
const message = createBaseGetOpenIncidentCountsRequest();
|
|
1371
|
+
message.EventStore = object.EventStore ?? "";
|
|
1372
|
+
message.Namespace = object.Namespace ?? "";
|
|
1373
|
+
return message;
|
|
1374
|
+
},
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
function createBaseGetOpenIncidentRequest(): GetOpenIncidentRequest {
|
|
1378
|
+
return { EventStore: "", IncidentId: undefined, Namespace: "" };
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
export const GetOpenIncidentRequest: MessageFns<GetOpenIncidentRequest> = {
|
|
1382
|
+
encode(message: GetOpenIncidentRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1383
|
+
if (message.EventStore !== "") {
|
|
1384
|
+
writer.uint32(10).string(message.EventStore);
|
|
1385
|
+
}
|
|
1386
|
+
if (message.IncidentId !== undefined) {
|
|
1387
|
+
Guid.encode(message.IncidentId, writer.uint32(18).fork()).join();
|
|
1388
|
+
}
|
|
1389
|
+
if (message.Namespace !== "") {
|
|
1390
|
+
writer.uint32(26).string(message.Namespace);
|
|
1391
|
+
}
|
|
1392
|
+
return writer;
|
|
1393
|
+
},
|
|
1394
|
+
|
|
1395
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetOpenIncidentRequest {
|
|
1396
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1397
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1398
|
+
if (previousRecursionDepth >= 100) {
|
|
1399
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1400
|
+
}
|
|
1401
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1402
|
+
try {
|
|
1403
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1404
|
+
const message = createBaseGetOpenIncidentRequest();
|
|
1405
|
+
while (reader.pos < end) {
|
|
1406
|
+
const tag = reader.uint32();
|
|
1407
|
+
switch (tag >>> 3) {
|
|
1408
|
+
case 1: {
|
|
1409
|
+
if (tag !== 10) {
|
|
1410
|
+
break;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
message.EventStore = reader.string();
|
|
1414
|
+
continue;
|
|
1415
|
+
}
|
|
1416
|
+
case 2: {
|
|
1417
|
+
if (tag !== 18) {
|
|
1418
|
+
break;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
message.IncidentId = Guid.decode(reader, reader.uint32());
|
|
1422
|
+
continue;
|
|
1423
|
+
}
|
|
1424
|
+
case 3: {
|
|
1425
|
+
if (tag !== 26) {
|
|
1426
|
+
break;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
message.Namespace = reader.string();
|
|
1430
|
+
continue;
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1434
|
+
break;
|
|
1435
|
+
}
|
|
1436
|
+
reader.skip(tag & 7);
|
|
1437
|
+
}
|
|
1438
|
+
return message;
|
|
1439
|
+
} finally {
|
|
1440
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
|
|
1444
|
+
fromJSON(object: any): GetOpenIncidentRequest {
|
|
1445
|
+
return {
|
|
1446
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1447
|
+
IncidentId: isSet(object.IncidentId) ? Guid.fromJSON(object.IncidentId) : undefined,
|
|
1448
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
1449
|
+
};
|
|
1450
|
+
},
|
|
1451
|
+
|
|
1452
|
+
toJSON(message: GetOpenIncidentRequest): unknown {
|
|
1453
|
+
const obj: any = {};
|
|
1454
|
+
if (message.EventStore !== "") {
|
|
1455
|
+
obj.EventStore = message.EventStore;
|
|
1456
|
+
}
|
|
1457
|
+
if (message.IncidentId !== undefined) {
|
|
1458
|
+
obj.IncidentId = Guid.toJSON(message.IncidentId);
|
|
1459
|
+
}
|
|
1460
|
+
if (message.Namespace !== "") {
|
|
1461
|
+
obj.Namespace = message.Namespace;
|
|
1462
|
+
}
|
|
1463
|
+
return obj;
|
|
1464
|
+
},
|
|
1465
|
+
|
|
1466
|
+
create(base?: DeepPartial<GetOpenIncidentRequest>): GetOpenIncidentRequest {
|
|
1467
|
+
return GetOpenIncidentRequest.fromPartial(base ?? {});
|
|
1468
|
+
},
|
|
1469
|
+
fromPartial(object: DeepPartial<GetOpenIncidentRequest>): GetOpenIncidentRequest {
|
|
1470
|
+
const message = createBaseGetOpenIncidentRequest();
|
|
1471
|
+
message.EventStore = object.EventStore ?? "";
|
|
1472
|
+
message.IncidentId = (object.IncidentId !== undefined && object.IncidentId !== null)
|
|
1473
|
+
? Guid.fromPartial(object.IncidentId)
|
|
1474
|
+
: undefined;
|
|
1475
|
+
message.Namespace = object.Namespace ?? "";
|
|
1476
|
+
return message;
|
|
1477
|
+
},
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
function createBaseGetOpenIncidentsRequest(): GetOpenIncidentsRequest {
|
|
1481
|
+
return {
|
|
1482
|
+
EventStore: "",
|
|
1483
|
+
Namespace: "",
|
|
1484
|
+
ObserverId: "",
|
|
1485
|
+
Condition: "",
|
|
1486
|
+
MinimumSeverity: 0,
|
|
1487
|
+
Limit: 0,
|
|
1488
|
+
AfterRaisedSequenceNumber: 0n,
|
|
1489
|
+
AfterIncidentId: undefined,
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
export const GetOpenIncidentsRequest: MessageFns<GetOpenIncidentsRequest> = {
|
|
1494
|
+
encode(message: GetOpenIncidentsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1495
|
+
if (message.EventStore !== "") {
|
|
1496
|
+
writer.uint32(10).string(message.EventStore);
|
|
1497
|
+
}
|
|
1498
|
+
if (message.Namespace !== "") {
|
|
1499
|
+
writer.uint32(18).string(message.Namespace);
|
|
1500
|
+
}
|
|
1501
|
+
if (message.ObserverId !== "") {
|
|
1502
|
+
writer.uint32(26).string(message.ObserverId);
|
|
1503
|
+
}
|
|
1504
|
+
if (message.Condition !== "") {
|
|
1505
|
+
writer.uint32(34).string(message.Condition);
|
|
1506
|
+
}
|
|
1507
|
+
if (message.MinimumSeverity !== 0) {
|
|
1508
|
+
writer.uint32(40).int32(message.MinimumSeverity);
|
|
1509
|
+
}
|
|
1510
|
+
if (message.Limit !== 0) {
|
|
1511
|
+
writer.uint32(48).int32(message.Limit);
|
|
1512
|
+
}
|
|
1513
|
+
if (message.AfterRaisedSequenceNumber !== 0n) {
|
|
1514
|
+
if (BigInt.asUintN(64, message.AfterRaisedSequenceNumber) !== message.AfterRaisedSequenceNumber) {
|
|
1515
|
+
throw new globalThis.Error(
|
|
1516
|
+
"value provided for field message.AfterRaisedSequenceNumber of type uint64 too large",
|
|
1517
|
+
);
|
|
1518
|
+
}
|
|
1519
|
+
writer.uint32(56).uint64(message.AfterRaisedSequenceNumber);
|
|
1520
|
+
}
|
|
1521
|
+
if (message.AfterIncidentId !== undefined) {
|
|
1522
|
+
Guid.encode(message.AfterIncidentId, writer.uint32(66).fork()).join();
|
|
1523
|
+
}
|
|
1524
|
+
return writer;
|
|
1525
|
+
},
|
|
1526
|
+
|
|
1527
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetOpenIncidentsRequest {
|
|
1528
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1529
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1530
|
+
if (previousRecursionDepth >= 100) {
|
|
1531
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1532
|
+
}
|
|
1533
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1534
|
+
try {
|
|
1535
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1536
|
+
const message = createBaseGetOpenIncidentsRequest();
|
|
1537
|
+
while (reader.pos < end) {
|
|
1538
|
+
const tag = reader.uint32();
|
|
1539
|
+
switch (tag >>> 3) {
|
|
1540
|
+
case 1: {
|
|
1541
|
+
if (tag !== 10) {
|
|
1542
|
+
break;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
message.EventStore = reader.string();
|
|
1546
|
+
continue;
|
|
1547
|
+
}
|
|
1548
|
+
case 2: {
|
|
1549
|
+
if (tag !== 18) {
|
|
1550
|
+
break;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
message.Namespace = reader.string();
|
|
1554
|
+
continue;
|
|
1555
|
+
}
|
|
1556
|
+
case 3: {
|
|
1557
|
+
if (tag !== 26) {
|
|
1558
|
+
break;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
message.ObserverId = reader.string();
|
|
1562
|
+
continue;
|
|
1563
|
+
}
|
|
1564
|
+
case 4: {
|
|
1565
|
+
if (tag !== 34) {
|
|
1566
|
+
break;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
message.Condition = reader.string();
|
|
1570
|
+
continue;
|
|
1571
|
+
}
|
|
1572
|
+
case 5: {
|
|
1573
|
+
if (tag !== 40) {
|
|
1574
|
+
break;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
message.MinimumSeverity = reader.int32() as any;
|
|
1578
|
+
continue;
|
|
1579
|
+
}
|
|
1580
|
+
case 6: {
|
|
1581
|
+
if (tag !== 48) {
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
message.Limit = reader.int32();
|
|
1586
|
+
continue;
|
|
1587
|
+
}
|
|
1588
|
+
case 7: {
|
|
1589
|
+
if (tag !== 56) {
|
|
1590
|
+
break;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
message.AfterRaisedSequenceNumber = reader.uint64() as bigint;
|
|
1594
|
+
continue;
|
|
1595
|
+
}
|
|
1596
|
+
case 8: {
|
|
1597
|
+
if (tag !== 66) {
|
|
1598
|
+
break;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
message.AfterIncidentId = Guid.decode(reader, reader.uint32());
|
|
1602
|
+
continue;
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1606
|
+
break;
|
|
1607
|
+
}
|
|
1608
|
+
reader.skip(tag & 7);
|
|
1609
|
+
}
|
|
1610
|
+
return message;
|
|
1611
|
+
} finally {
|
|
1612
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1613
|
+
}
|
|
1614
|
+
},
|
|
1615
|
+
|
|
1616
|
+
fromJSON(object: any): GetOpenIncidentsRequest {
|
|
1617
|
+
return {
|
|
1618
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1619
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
1620
|
+
ObserverId: isSet(object.ObserverId) ? globalThis.String(object.ObserverId) : "",
|
|
1621
|
+
Condition: isSet(object.Condition) ? globalThis.String(object.Condition) : "",
|
|
1622
|
+
MinimumSeverity: isSet(object.MinimumSeverity) ? alertSeverityFromJSON(object.MinimumSeverity) : 0,
|
|
1623
|
+
Limit: isSet(object.Limit) ? globalThis.Number(object.Limit) : 0,
|
|
1624
|
+
AfterRaisedSequenceNumber: isSet(object.AfterRaisedSequenceNumber)
|
|
1625
|
+
? BigInt(object.AfterRaisedSequenceNumber)
|
|
1626
|
+
: 0n,
|
|
1627
|
+
AfterIncidentId: isSet(object.AfterIncidentId) ? Guid.fromJSON(object.AfterIncidentId) : undefined,
|
|
1628
|
+
};
|
|
1629
|
+
},
|
|
1630
|
+
|
|
1631
|
+
toJSON(message: GetOpenIncidentsRequest): unknown {
|
|
1632
|
+
const obj: any = {};
|
|
1633
|
+
if (message.EventStore !== "") {
|
|
1634
|
+
obj.EventStore = message.EventStore;
|
|
1635
|
+
}
|
|
1636
|
+
if (message.Namespace !== "") {
|
|
1637
|
+
obj.Namespace = message.Namespace;
|
|
1638
|
+
}
|
|
1639
|
+
if (message.ObserverId !== "") {
|
|
1640
|
+
obj.ObserverId = message.ObserverId;
|
|
1641
|
+
}
|
|
1642
|
+
if (message.Condition !== "") {
|
|
1643
|
+
obj.Condition = message.Condition;
|
|
1644
|
+
}
|
|
1645
|
+
if (message.MinimumSeverity !== 0) {
|
|
1646
|
+
obj.MinimumSeverity = alertSeverityToJSON(message.MinimumSeverity);
|
|
1647
|
+
}
|
|
1648
|
+
if (message.Limit !== 0) {
|
|
1649
|
+
obj.Limit = Math.round(message.Limit);
|
|
1650
|
+
}
|
|
1651
|
+
if (message.AfterRaisedSequenceNumber !== 0n) {
|
|
1652
|
+
obj.AfterRaisedSequenceNumber = message.AfterRaisedSequenceNumber.toString();
|
|
1653
|
+
}
|
|
1654
|
+
if (message.AfterIncidentId !== undefined) {
|
|
1655
|
+
obj.AfterIncidentId = Guid.toJSON(message.AfterIncidentId);
|
|
1656
|
+
}
|
|
1657
|
+
return obj;
|
|
1658
|
+
},
|
|
1659
|
+
|
|
1660
|
+
create(base?: DeepPartial<GetOpenIncidentsRequest>): GetOpenIncidentsRequest {
|
|
1661
|
+
return GetOpenIncidentsRequest.fromPartial(base ?? {});
|
|
1662
|
+
},
|
|
1663
|
+
fromPartial(object: DeepPartial<GetOpenIncidentsRequest>): GetOpenIncidentsRequest {
|
|
1664
|
+
const message = createBaseGetOpenIncidentsRequest();
|
|
1665
|
+
message.EventStore = object.EventStore ?? "";
|
|
1666
|
+
message.Namespace = object.Namespace ?? "";
|
|
1667
|
+
message.ObserverId = object.ObserverId ?? "";
|
|
1668
|
+
message.Condition = object.Condition ?? "";
|
|
1669
|
+
message.MinimumSeverity = object.MinimumSeverity ?? 0;
|
|
1670
|
+
message.Limit = object.Limit ?? 0;
|
|
1671
|
+
message.AfterRaisedSequenceNumber =
|
|
1672
|
+
(object.AfterRaisedSequenceNumber !== undefined && object.AfterRaisedSequenceNumber !== null)
|
|
1673
|
+
? BigInt(object.AfterRaisedSequenceNumber)
|
|
1674
|
+
: 0n;
|
|
1675
|
+
message.AfterIncidentId = (object.AfterIncidentId !== undefined && object.AfterIncidentId !== null)
|
|
1676
|
+
? Guid.fromPartial(object.AfterIncidentId)
|
|
1677
|
+
: undefined;
|
|
1678
|
+
return message;
|
|
1679
|
+
},
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
function createBaseQueryResultAlertIncidentLookupResponse(): QueryResultAlertIncidentLookupResponse {
|
|
1683
|
+
return {
|
|
1684
|
+
CorrelationId: undefined,
|
|
1685
|
+
IsAuthorized: false,
|
|
1686
|
+
ValidationResults: [],
|
|
1687
|
+
ExceptionMessages: [],
|
|
1688
|
+
ExceptionStackTrace: "",
|
|
1689
|
+
Data: undefined,
|
|
1690
|
+
};
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
export const QueryResultAlertIncidentLookupResponse: MessageFns<QueryResultAlertIncidentLookupResponse> = {
|
|
1694
|
+
encode(message: QueryResultAlertIncidentLookupResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1695
|
+
if (message.CorrelationId !== undefined) {
|
|
1696
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1697
|
+
}
|
|
1698
|
+
if (message.IsAuthorized !== false) {
|
|
1699
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1700
|
+
}
|
|
1701
|
+
for (const v of message.ValidationResults) {
|
|
1702
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
1703
|
+
}
|
|
1704
|
+
for (const v of message.ExceptionMessages) {
|
|
1705
|
+
writer.uint32(34).string(v!);
|
|
1706
|
+
}
|
|
1707
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1708
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1709
|
+
}
|
|
1710
|
+
if (message.Data !== undefined) {
|
|
1711
|
+
AlertIncidentLookupResponse.encode(message.Data, writer.uint32(50).fork()).join();
|
|
1712
|
+
}
|
|
1713
|
+
return writer;
|
|
1714
|
+
},
|
|
1715
|
+
|
|
1716
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultAlertIncidentLookupResponse {
|
|
1717
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1718
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1719
|
+
if (previousRecursionDepth >= 100) {
|
|
1720
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1721
|
+
}
|
|
1722
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1723
|
+
try {
|
|
1724
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1725
|
+
const message = createBaseQueryResultAlertIncidentLookupResponse();
|
|
1726
|
+
while (reader.pos < end) {
|
|
1727
|
+
const tag = reader.uint32();
|
|
1728
|
+
switch (tag >>> 3) {
|
|
1729
|
+
case 1: {
|
|
1730
|
+
if (tag !== 10) {
|
|
1731
|
+
break;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
1735
|
+
continue;
|
|
1736
|
+
}
|
|
1737
|
+
case 2: {
|
|
1738
|
+
if (tag !== 16) {
|
|
1739
|
+
break;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
message.IsAuthorized = reader.bool();
|
|
1743
|
+
continue;
|
|
1744
|
+
}
|
|
1745
|
+
case 3: {
|
|
1746
|
+
if (tag !== 26) {
|
|
1747
|
+
break;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1751
|
+
continue;
|
|
1752
|
+
}
|
|
1753
|
+
case 4: {
|
|
1754
|
+
if (tag !== 34) {
|
|
1755
|
+
break;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
message.ExceptionMessages.push(reader.string());
|
|
1759
|
+
continue;
|
|
1760
|
+
}
|
|
1761
|
+
case 5: {
|
|
1762
|
+
if (tag !== 42) {
|
|
1763
|
+
break;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
message.ExceptionStackTrace = reader.string();
|
|
1767
|
+
continue;
|
|
1768
|
+
}
|
|
1769
|
+
case 6: {
|
|
1770
|
+
if (tag !== 50) {
|
|
1771
|
+
break;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
message.Data = AlertIncidentLookupResponse.decode(reader, reader.uint32());
|
|
1775
|
+
continue;
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1779
|
+
break;
|
|
1780
|
+
}
|
|
1781
|
+
reader.skip(tag & 7);
|
|
1782
|
+
}
|
|
1783
|
+
return message;
|
|
1784
|
+
} finally {
|
|
1785
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
|
|
1789
|
+
fromJSON(object: any): QueryResultAlertIncidentLookupResponse {
|
|
1790
|
+
return {
|
|
1791
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1792
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1793
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1794
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
1795
|
+
: [],
|
|
1796
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1797
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1798
|
+
: [],
|
|
1799
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1800
|
+
Data: isSet(object.Data) ? AlertIncidentLookupResponse.fromJSON(object.Data) : undefined,
|
|
1801
|
+
};
|
|
1802
|
+
},
|
|
1803
|
+
|
|
1804
|
+
toJSON(message: QueryResultAlertIncidentLookupResponse): unknown {
|
|
1805
|
+
const obj: any = {};
|
|
1806
|
+
if (message.CorrelationId !== undefined) {
|
|
1807
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1808
|
+
}
|
|
1809
|
+
if (message.IsAuthorized !== false) {
|
|
1810
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1811
|
+
}
|
|
1812
|
+
if (message.ValidationResults?.length) {
|
|
1813
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1814
|
+
}
|
|
1815
|
+
if (message.ExceptionMessages?.length) {
|
|
1816
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1817
|
+
}
|
|
1818
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1819
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1820
|
+
}
|
|
1821
|
+
if (message.Data !== undefined) {
|
|
1822
|
+
obj.Data = AlertIncidentLookupResponse.toJSON(message.Data);
|
|
1823
|
+
}
|
|
1824
|
+
return obj;
|
|
1825
|
+
},
|
|
1826
|
+
|
|
1827
|
+
create(base?: DeepPartial<QueryResultAlertIncidentLookupResponse>): QueryResultAlertIncidentLookupResponse {
|
|
1828
|
+
return QueryResultAlertIncidentLookupResponse.fromPartial(base ?? {});
|
|
1829
|
+
},
|
|
1830
|
+
fromPartial(object: DeepPartial<QueryResultAlertIncidentLookupResponse>): QueryResultAlertIncidentLookupResponse {
|
|
1831
|
+
const message = createBaseQueryResultAlertIncidentLookupResponse();
|
|
1832
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1833
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1834
|
+
: undefined;
|
|
1835
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1836
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1837
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1838
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1839
|
+
message.Data = (object.Data !== undefined && object.Data !== null)
|
|
1840
|
+
? AlertIncidentLookupResponse.fromPartial(object.Data)
|
|
1841
|
+
: undefined;
|
|
1842
|
+
return message;
|
|
1843
|
+
},
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
function createBaseQueryResultAlertIncidentPageResponse(): QueryResultAlertIncidentPageResponse {
|
|
1847
|
+
return {
|
|
1848
|
+
CorrelationId: undefined,
|
|
1849
|
+
IsAuthorized: false,
|
|
1850
|
+
ValidationResults: [],
|
|
1851
|
+
ExceptionMessages: [],
|
|
1852
|
+
ExceptionStackTrace: "",
|
|
1853
|
+
Data: undefined,
|
|
1854
|
+
};
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
export const QueryResultAlertIncidentPageResponse: MessageFns<QueryResultAlertIncidentPageResponse> = {
|
|
1858
|
+
encode(message: QueryResultAlertIncidentPageResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1859
|
+
if (message.CorrelationId !== undefined) {
|
|
1860
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1861
|
+
}
|
|
1862
|
+
if (message.IsAuthorized !== false) {
|
|
1863
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1864
|
+
}
|
|
1865
|
+
for (const v of message.ValidationResults) {
|
|
1866
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
1867
|
+
}
|
|
1868
|
+
for (const v of message.ExceptionMessages) {
|
|
1869
|
+
writer.uint32(34).string(v!);
|
|
1870
|
+
}
|
|
1871
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1872
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1873
|
+
}
|
|
1874
|
+
if (message.Data !== undefined) {
|
|
1875
|
+
AlertIncidentPageResponse.encode(message.Data, writer.uint32(50).fork()).join();
|
|
1876
|
+
}
|
|
1877
|
+
return writer;
|
|
1878
|
+
},
|
|
1879
|
+
|
|
1880
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultAlertIncidentPageResponse {
|
|
1881
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1882
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1883
|
+
if (previousRecursionDepth >= 100) {
|
|
1884
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1885
|
+
}
|
|
1886
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1887
|
+
try {
|
|
1888
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1889
|
+
const message = createBaseQueryResultAlertIncidentPageResponse();
|
|
1890
|
+
while (reader.pos < end) {
|
|
1891
|
+
const tag = reader.uint32();
|
|
1892
|
+
switch (tag >>> 3) {
|
|
1893
|
+
case 1: {
|
|
1894
|
+
if (tag !== 10) {
|
|
1895
|
+
break;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
1899
|
+
continue;
|
|
1900
|
+
}
|
|
1901
|
+
case 2: {
|
|
1902
|
+
if (tag !== 16) {
|
|
1903
|
+
break;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
message.IsAuthorized = reader.bool();
|
|
1907
|
+
continue;
|
|
1908
|
+
}
|
|
1909
|
+
case 3: {
|
|
1910
|
+
if (tag !== 26) {
|
|
1911
|
+
break;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1915
|
+
continue;
|
|
1916
|
+
}
|
|
1917
|
+
case 4: {
|
|
1918
|
+
if (tag !== 34) {
|
|
1919
|
+
break;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
message.ExceptionMessages.push(reader.string());
|
|
1923
|
+
continue;
|
|
1924
|
+
}
|
|
1925
|
+
case 5: {
|
|
1926
|
+
if (tag !== 42) {
|
|
1927
|
+
break;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
message.ExceptionStackTrace = reader.string();
|
|
1931
|
+
continue;
|
|
1932
|
+
}
|
|
1933
|
+
case 6: {
|
|
1934
|
+
if (tag !== 50) {
|
|
1935
|
+
break;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
message.Data = AlertIncidentPageResponse.decode(reader, reader.uint32());
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1943
|
+
break;
|
|
1944
|
+
}
|
|
1945
|
+
reader.skip(tag & 7);
|
|
1946
|
+
}
|
|
1947
|
+
return message;
|
|
1948
|
+
} finally {
|
|
1949
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
|
|
1953
|
+
fromJSON(object: any): QueryResultAlertIncidentPageResponse {
|
|
1954
|
+
return {
|
|
1955
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1956
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1957
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1958
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
1959
|
+
: [],
|
|
1960
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1961
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1962
|
+
: [],
|
|
1963
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1964
|
+
Data: isSet(object.Data) ? AlertIncidentPageResponse.fromJSON(object.Data) : undefined,
|
|
1965
|
+
};
|
|
1966
|
+
},
|
|
1967
|
+
|
|
1968
|
+
toJSON(message: QueryResultAlertIncidentPageResponse): unknown {
|
|
1969
|
+
const obj: any = {};
|
|
1970
|
+
if (message.CorrelationId !== undefined) {
|
|
1971
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1972
|
+
}
|
|
1973
|
+
if (message.IsAuthorized !== false) {
|
|
1974
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1975
|
+
}
|
|
1976
|
+
if (message.ValidationResults?.length) {
|
|
1977
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1978
|
+
}
|
|
1979
|
+
if (message.ExceptionMessages?.length) {
|
|
1980
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1981
|
+
}
|
|
1982
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1983
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1984
|
+
}
|
|
1985
|
+
if (message.Data !== undefined) {
|
|
1986
|
+
obj.Data = AlertIncidentPageResponse.toJSON(message.Data);
|
|
1987
|
+
}
|
|
1988
|
+
return obj;
|
|
1989
|
+
},
|
|
1990
|
+
|
|
1991
|
+
create(base?: DeepPartial<QueryResultAlertIncidentPageResponse>): QueryResultAlertIncidentPageResponse {
|
|
1992
|
+
return QueryResultAlertIncidentPageResponse.fromPartial(base ?? {});
|
|
1993
|
+
},
|
|
1994
|
+
fromPartial(object: DeepPartial<QueryResultAlertIncidentPageResponse>): QueryResultAlertIncidentPageResponse {
|
|
1995
|
+
const message = createBaseQueryResultAlertIncidentPageResponse();
|
|
1996
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1997
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1998
|
+
: undefined;
|
|
1999
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
2000
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
2001
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
2002
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
2003
|
+
message.Data = (object.Data !== undefined && object.Data !== null)
|
|
2004
|
+
? AlertIncidentPageResponse.fromPartial(object.Data)
|
|
2005
|
+
: undefined;
|
|
2006
|
+
return message;
|
|
2007
|
+
},
|
|
2008
|
+
};
|
|
2009
|
+
|
|
2010
|
+
function createBaseQueryResultAlertIncidentSummaryResponse(): QueryResultAlertIncidentSummaryResponse {
|
|
2011
|
+
return {
|
|
2012
|
+
CorrelationId: undefined,
|
|
2013
|
+
IsAuthorized: false,
|
|
2014
|
+
ValidationResults: [],
|
|
2015
|
+
ExceptionMessages: [],
|
|
2016
|
+
ExceptionStackTrace: "",
|
|
2017
|
+
Data: undefined,
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
export const QueryResultAlertIncidentSummaryResponse: MessageFns<QueryResultAlertIncidentSummaryResponse> = {
|
|
2022
|
+
encode(message: QueryResultAlertIncidentSummaryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2023
|
+
if (message.CorrelationId !== undefined) {
|
|
2024
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
2025
|
+
}
|
|
2026
|
+
if (message.IsAuthorized !== false) {
|
|
2027
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
2028
|
+
}
|
|
2029
|
+
for (const v of message.ValidationResults) {
|
|
2030
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
2031
|
+
}
|
|
2032
|
+
for (const v of message.ExceptionMessages) {
|
|
2033
|
+
writer.uint32(34).string(v!);
|
|
2034
|
+
}
|
|
2035
|
+
if (message.ExceptionStackTrace !== "") {
|
|
2036
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
2037
|
+
}
|
|
2038
|
+
if (message.Data !== undefined) {
|
|
2039
|
+
AlertIncidentSummaryResponse.encode(message.Data, writer.uint32(50).fork()).join();
|
|
2040
|
+
}
|
|
2041
|
+
return writer;
|
|
2042
|
+
},
|
|
2043
|
+
|
|
2044
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultAlertIncidentSummaryResponse {
|
|
2045
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2046
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2047
|
+
if (previousRecursionDepth >= 100) {
|
|
2048
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2049
|
+
}
|
|
2050
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2051
|
+
try {
|
|
2052
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2053
|
+
const message = createBaseQueryResultAlertIncidentSummaryResponse();
|
|
2054
|
+
while (reader.pos < end) {
|
|
2055
|
+
const tag = reader.uint32();
|
|
2056
|
+
switch (tag >>> 3) {
|
|
2057
|
+
case 1: {
|
|
2058
|
+
if (tag !== 10) {
|
|
2059
|
+
break;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
2063
|
+
continue;
|
|
2064
|
+
}
|
|
2065
|
+
case 2: {
|
|
2066
|
+
if (tag !== 16) {
|
|
2067
|
+
break;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
message.IsAuthorized = reader.bool();
|
|
2071
|
+
continue;
|
|
2072
|
+
}
|
|
2073
|
+
case 3: {
|
|
2074
|
+
if (tag !== 26) {
|
|
2075
|
+
break;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
2079
|
+
continue;
|
|
2080
|
+
}
|
|
2081
|
+
case 4: {
|
|
2082
|
+
if (tag !== 34) {
|
|
2083
|
+
break;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
message.ExceptionMessages.push(reader.string());
|
|
2087
|
+
continue;
|
|
2088
|
+
}
|
|
2089
|
+
case 5: {
|
|
2090
|
+
if (tag !== 42) {
|
|
2091
|
+
break;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
message.ExceptionStackTrace = reader.string();
|
|
2095
|
+
continue;
|
|
2096
|
+
}
|
|
2097
|
+
case 6: {
|
|
2098
|
+
if (tag !== 50) {
|
|
2099
|
+
break;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
message.Data = AlertIncidentSummaryResponse.decode(reader, reader.uint32());
|
|
2103
|
+
continue;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2107
|
+
break;
|
|
2108
|
+
}
|
|
2109
|
+
reader.skip(tag & 7);
|
|
2110
|
+
}
|
|
2111
|
+
return message;
|
|
2112
|
+
} finally {
|
|
2113
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2114
|
+
}
|
|
2115
|
+
},
|
|
2116
|
+
|
|
2117
|
+
fromJSON(object: any): QueryResultAlertIncidentSummaryResponse {
|
|
2118
|
+
return {
|
|
2119
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
2120
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
2121
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
2122
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
2123
|
+
: [],
|
|
2124
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
2125
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
2126
|
+
: [],
|
|
2127
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
2128
|
+
Data: isSet(object.Data) ? AlertIncidentSummaryResponse.fromJSON(object.Data) : undefined,
|
|
2129
|
+
};
|
|
2130
|
+
},
|
|
2131
|
+
|
|
2132
|
+
toJSON(message: QueryResultAlertIncidentSummaryResponse): unknown {
|
|
2133
|
+
const obj: any = {};
|
|
2134
|
+
if (message.CorrelationId !== undefined) {
|
|
2135
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
2136
|
+
}
|
|
2137
|
+
if (message.IsAuthorized !== false) {
|
|
2138
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
2139
|
+
}
|
|
2140
|
+
if (message.ValidationResults?.length) {
|
|
2141
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
2142
|
+
}
|
|
2143
|
+
if (message.ExceptionMessages?.length) {
|
|
2144
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
2145
|
+
}
|
|
2146
|
+
if (message.ExceptionStackTrace !== "") {
|
|
2147
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
2148
|
+
}
|
|
2149
|
+
if (message.Data !== undefined) {
|
|
2150
|
+
obj.Data = AlertIncidentSummaryResponse.toJSON(message.Data);
|
|
2151
|
+
}
|
|
2152
|
+
return obj;
|
|
2153
|
+
},
|
|
2154
|
+
|
|
2155
|
+
create(base?: DeepPartial<QueryResultAlertIncidentSummaryResponse>): QueryResultAlertIncidentSummaryResponse {
|
|
2156
|
+
return QueryResultAlertIncidentSummaryResponse.fromPartial(base ?? {});
|
|
2157
|
+
},
|
|
2158
|
+
fromPartial(object: DeepPartial<QueryResultAlertIncidentSummaryResponse>): QueryResultAlertIncidentSummaryResponse {
|
|
2159
|
+
const message = createBaseQueryResultAlertIncidentSummaryResponse();
|
|
2160
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
2161
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
2162
|
+
: undefined;
|
|
2163
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
2164
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
2165
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
2166
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
2167
|
+
message.Data = (object.Data !== undefined && object.Data !== null)
|
|
2168
|
+
? AlertIncidentSummaryResponse.fromPartial(object.Data)
|
|
2169
|
+
: undefined;
|
|
2170
|
+
return message;
|
|
2171
|
+
},
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
function createBaseSerializableDateTimeOffset(): SerializableDateTimeOffset {
|
|
2175
|
+
return { Value: "" };
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
export const SerializableDateTimeOffset: MessageFns<SerializableDateTimeOffset> = {
|
|
2179
|
+
encode(message: SerializableDateTimeOffset, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2180
|
+
if (message.Value !== "") {
|
|
2181
|
+
writer.uint32(10).string(message.Value);
|
|
2182
|
+
}
|
|
2183
|
+
return writer;
|
|
2184
|
+
},
|
|
2185
|
+
|
|
2186
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SerializableDateTimeOffset {
|
|
2187
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2188
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2189
|
+
if (previousRecursionDepth >= 100) {
|
|
2190
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2191
|
+
}
|
|
2192
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2193
|
+
try {
|
|
2194
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2195
|
+
const message = createBaseSerializableDateTimeOffset();
|
|
2196
|
+
while (reader.pos < end) {
|
|
2197
|
+
const tag = reader.uint32();
|
|
2198
|
+
switch (tag >>> 3) {
|
|
2199
|
+
case 1: {
|
|
2200
|
+
if (tag !== 10) {
|
|
2201
|
+
break;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
message.Value = reader.string();
|
|
2205
|
+
continue;
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2209
|
+
break;
|
|
2210
|
+
}
|
|
2211
|
+
reader.skip(tag & 7);
|
|
2212
|
+
}
|
|
2213
|
+
return message;
|
|
2214
|
+
} finally {
|
|
2215
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
2218
|
+
|
|
2219
|
+
fromJSON(object: any): SerializableDateTimeOffset {
|
|
2220
|
+
return { Value: isSet(object.Value) ? globalThis.String(object.Value) : "" };
|
|
2221
|
+
},
|
|
2222
|
+
|
|
2223
|
+
toJSON(message: SerializableDateTimeOffset): unknown {
|
|
2224
|
+
const obj: any = {};
|
|
2225
|
+
if (message.Value !== "") {
|
|
2226
|
+
obj.Value = message.Value;
|
|
2227
|
+
}
|
|
2228
|
+
return obj;
|
|
2229
|
+
},
|
|
2230
|
+
|
|
2231
|
+
create(base?: DeepPartial<SerializableDateTimeOffset>): SerializableDateTimeOffset {
|
|
2232
|
+
return SerializableDateTimeOffset.fromPartial(base ?? {});
|
|
2233
|
+
},
|
|
2234
|
+
fromPartial(object: DeepPartial<SerializableDateTimeOffset>): SerializableDateTimeOffset {
|
|
2235
|
+
const message = createBaseSerializableDateTimeOffset();
|
|
2236
|
+
message.Value = object.Value ?? "";
|
|
2237
|
+
return message;
|
|
2238
|
+
},
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
function createBaseValidationResult(): ValidationResult {
|
|
2242
|
+
return { Severity: 0, Message: "", Members: [] };
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
export const ValidationResult: MessageFns<ValidationResult> = {
|
|
2246
|
+
encode(message: ValidationResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2247
|
+
if (message.Severity !== 0) {
|
|
2248
|
+
writer.uint32(8).int32(message.Severity);
|
|
2249
|
+
}
|
|
2250
|
+
if (message.Message !== "") {
|
|
2251
|
+
writer.uint32(18).string(message.Message);
|
|
2252
|
+
}
|
|
2253
|
+
for (const v of message.Members) {
|
|
2254
|
+
writer.uint32(26).string(v!);
|
|
2255
|
+
}
|
|
2256
|
+
return writer;
|
|
2257
|
+
},
|
|
2258
|
+
|
|
2259
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidationResult {
|
|
2260
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2261
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2262
|
+
if (previousRecursionDepth >= 100) {
|
|
2263
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2264
|
+
}
|
|
2265
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2266
|
+
try {
|
|
2267
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2268
|
+
const message = createBaseValidationResult();
|
|
2269
|
+
while (reader.pos < end) {
|
|
2270
|
+
const tag = reader.uint32();
|
|
2271
|
+
switch (tag >>> 3) {
|
|
2272
|
+
case 1: {
|
|
2273
|
+
if (tag !== 8) {
|
|
2274
|
+
break;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
message.Severity = reader.int32() as any;
|
|
2278
|
+
continue;
|
|
2279
|
+
}
|
|
2280
|
+
case 2: {
|
|
2281
|
+
if (tag !== 18) {
|
|
2282
|
+
break;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
message.Message = reader.string();
|
|
2286
|
+
continue;
|
|
2287
|
+
}
|
|
2288
|
+
case 3: {
|
|
2289
|
+
if (tag !== 26) {
|
|
2290
|
+
break;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
message.Members.push(reader.string());
|
|
2294
|
+
continue;
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2298
|
+
break;
|
|
2299
|
+
}
|
|
2300
|
+
reader.skip(tag & 7);
|
|
2301
|
+
}
|
|
2302
|
+
return message;
|
|
2303
|
+
} finally {
|
|
2304
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2305
|
+
}
|
|
2306
|
+
},
|
|
2307
|
+
|
|
2308
|
+
fromJSON(object: any): ValidationResult {
|
|
2309
|
+
return {
|
|
2310
|
+
Severity: isSet(object.Severity) ? validationResultSeverityFromJSON(object.Severity) : 0,
|
|
2311
|
+
Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
|
|
2312
|
+
Members: globalThis.Array.isArray(object?.Members) ? object.Members.map((e: any) => globalThis.String(e)) : [],
|
|
2313
|
+
};
|
|
2314
|
+
},
|
|
2315
|
+
|
|
2316
|
+
toJSON(message: ValidationResult): unknown {
|
|
2317
|
+
const obj: any = {};
|
|
2318
|
+
if (message.Severity !== 0) {
|
|
2319
|
+
obj.Severity = validationResultSeverityToJSON(message.Severity);
|
|
2320
|
+
}
|
|
2321
|
+
if (message.Message !== "") {
|
|
2322
|
+
obj.Message = message.Message;
|
|
2323
|
+
}
|
|
2324
|
+
if (message.Members?.length) {
|
|
2325
|
+
obj.Members = message.Members;
|
|
2326
|
+
}
|
|
2327
|
+
return obj;
|
|
2328
|
+
},
|
|
2329
|
+
|
|
2330
|
+
create(base?: DeepPartial<ValidationResult>): ValidationResult {
|
|
2331
|
+
return ValidationResult.fromPartial(base ?? {});
|
|
2332
|
+
},
|
|
2333
|
+
fromPartial(object: DeepPartial<ValidationResult>): ValidationResult {
|
|
2334
|
+
const message = createBaseValidationResult();
|
|
2335
|
+
message.Severity = object.Severity ?? 0;
|
|
2336
|
+
message.Message = object.Message ?? "";
|
|
2337
|
+
message.Members = object.Members?.map((e) => e) || [];
|
|
2338
|
+
return message;
|
|
2339
|
+
},
|
|
2340
|
+
};
|
|
2341
|
+
|
|
2342
|
+
export type AlertsDefinition = typeof AlertsDefinition;
|
|
2343
|
+
export const AlertsDefinition = {
|
|
2344
|
+
name: "Alerts",
|
|
2345
|
+
fullName: "Cratis.Chronicle.Contracts.Alerts.Alerts",
|
|
2346
|
+
methods: {
|
|
2347
|
+
getOpenIncident: {
|
|
2348
|
+
name: "GetOpenIncident",
|
|
2349
|
+
requestType: GetOpenIncidentRequest as typeof GetOpenIncidentRequest,
|
|
2350
|
+
requestStream: false,
|
|
2351
|
+
responseType: QueryResultAlertIncidentLookupResponse as typeof QueryResultAlertIncidentLookupResponse,
|
|
2352
|
+
responseStream: false,
|
|
2353
|
+
options: {},
|
|
2354
|
+
},
|
|
2355
|
+
getOpenIncidentCounts: {
|
|
2356
|
+
name: "GetOpenIncidentCounts",
|
|
2357
|
+
requestType: GetOpenIncidentCountsRequest as typeof GetOpenIncidentCountsRequest,
|
|
2358
|
+
requestStream: false,
|
|
2359
|
+
responseType: QueryResultAlertIncidentSummaryResponse as typeof QueryResultAlertIncidentSummaryResponse,
|
|
2360
|
+
responseStream: false,
|
|
2361
|
+
options: {},
|
|
2362
|
+
},
|
|
2363
|
+
getOpenIncidents: {
|
|
2364
|
+
name: "GetOpenIncidents",
|
|
2365
|
+
requestType: GetOpenIncidentsRequest as typeof GetOpenIncidentsRequest,
|
|
2366
|
+
requestStream: false,
|
|
2367
|
+
responseType: QueryResultAlertIncidentPageResponse as typeof QueryResultAlertIncidentPageResponse,
|
|
2368
|
+
responseStream: false,
|
|
2369
|
+
options: {},
|
|
2370
|
+
},
|
|
2371
|
+
},
|
|
2372
|
+
} as const;
|
|
2373
|
+
|
|
2374
|
+
export interface AlertsServiceImplementation<CallContextExt = {}> {
|
|
2375
|
+
getOpenIncident(
|
|
2376
|
+
request: GetOpenIncidentRequest,
|
|
2377
|
+
context: CallContext & CallContextExt,
|
|
2378
|
+
): Promise<DeepPartial<QueryResultAlertIncidentLookupResponse>>;
|
|
2379
|
+
getOpenIncidentCounts(
|
|
2380
|
+
request: GetOpenIncidentCountsRequest,
|
|
2381
|
+
context: CallContext & CallContextExt,
|
|
2382
|
+
): Promise<DeepPartial<QueryResultAlertIncidentSummaryResponse>>;
|
|
2383
|
+
getOpenIncidents(
|
|
2384
|
+
request: GetOpenIncidentsRequest,
|
|
2385
|
+
context: CallContext & CallContextExt,
|
|
2386
|
+
): Promise<DeepPartial<QueryResultAlertIncidentPageResponse>>;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
export interface AlertsClient<CallOptionsExt = {}> {
|
|
2390
|
+
getOpenIncident(
|
|
2391
|
+
request: DeepPartial<GetOpenIncidentRequest>,
|
|
2392
|
+
options?: CallOptions & CallOptionsExt,
|
|
2393
|
+
): Promise<QueryResultAlertIncidentLookupResponse>;
|
|
2394
|
+
getOpenIncidentCounts(
|
|
2395
|
+
request: DeepPartial<GetOpenIncidentCountsRequest>,
|
|
2396
|
+
options?: CallOptions & CallOptionsExt,
|
|
2397
|
+
): Promise<QueryResultAlertIncidentSummaryResponse>;
|
|
2398
|
+
getOpenIncidents(
|
|
2399
|
+
request: DeepPartial<GetOpenIncidentsRequest>,
|
|
2400
|
+
options?: CallOptions & CallOptionsExt,
|
|
2401
|
+
): Promise<QueryResultAlertIncidentPageResponse>;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
2405
|
+
|
|
2406
|
+
export type DeepPartial<T> = T extends bigint ? string | number | bigint
|
|
2407
|
+
: T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
2408
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
2409
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
2410
|
+
: Partial<T>;
|
|
2411
|
+
|
|
2412
|
+
function isSet(value: any): boolean {
|
|
2413
|
+
return value !== null && value !== undefined;
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
export interface MessageFns<T> {
|
|
2417
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
2418
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
2419
|
+
fromJSON(object: any): T;
|
|
2420
|
+
toJSON(message: T): unknown;
|
|
2421
|
+
create(base?: DeepPartial<T>): T;
|
|
2422
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
2423
|
+
}
|