@mlvscan/api-client 1.1.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.
Files changed (46) hide show
  1. package/README.md +21 -0
  2. package/dist/generated/files/index.d.ts +45 -0
  3. package/dist/generated/files/index.d.ts.map +1 -0
  4. package/dist/generated/files/index.js +46 -0
  5. package/dist/generated/files/index.js.map +1 -0
  6. package/dist/generated/files/upload_url/index.d.ts +50 -0
  7. package/dist/generated/files/upload_url/index.d.ts.map +1 -0
  8. package/dist/generated/files/upload_url/index.js +30 -0
  9. package/dist/generated/files/upload_url/index.js.map +1 -0
  10. package/dist/generated/mlvScanApiClient.d.ts +35 -0
  11. package/dist/generated/mlvScanApiClient.d.ts.map +1 -0
  12. package/dist/generated/mlvScanApiClient.js +72 -0
  13. package/dist/generated/mlvScanApiClient.js.map +1 -0
  14. package/dist/generated/models/index.d.ts +1609 -0
  15. package/dist/generated/models/index.d.ts.map +1 -0
  16. package/dist/generated/models/index.js +1483 -0
  17. package/dist/generated/models/index.js.map +1 -0
  18. package/dist/generated/public/index.d.ts +20 -0
  19. package/dist/generated/public/index.d.ts.map +1 -0
  20. package/dist/generated/public/index.js +20 -0
  21. package/dist/generated/public/index.js.map +1 -0
  22. package/dist/generated/public/reports/index.d.ts +22 -0
  23. package/dist/generated/public/reports/index.d.ts.map +1 -0
  24. package/dist/generated/public/reports/index.js +21 -0
  25. package/dist/generated/public/reports/index.js.map +1 -0
  26. package/dist/generated/public/reports/item/index.d.ts +29 -0
  27. package/dist/generated/public/reports/item/index.d.ts.map +1 -0
  28. package/dist/generated/public/reports/item/index.js +26 -0
  29. package/dist/generated/public/reports/item/index.js.map +1 -0
  30. package/dist/generated/reports/index.d.ts +22 -0
  31. package/dist/generated/reports/index.d.ts.map +1 -0
  32. package/dist/generated/reports/index.js +21 -0
  33. package/dist/generated/reports/index.js.map +1 -0
  34. package/dist/generated/reports/item/index.d.ts +32 -0
  35. package/dist/generated/reports/item/index.d.ts.map +1 -0
  36. package/dist/generated/reports/item/index.js +29 -0
  37. package/dist/generated/reports/item/index.js.map +1 -0
  38. package/dist/index.d.ts +4 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +3 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/mlvscan-client.d.ts +29 -0
  43. package/dist/mlvscan-client.d.ts.map +1 -0
  44. package/dist/mlvscan-client.js +131 -0
  45. package/dist/mlvscan-client.js.map +1 -0
  46. package/package.json +57 -0
@@ -0,0 +1,1483 @@
1
+ /**
2
+ * Creates a new instance of the appropriate class based on discriminator value
3
+ * @param parseNode The parse node to use to read the discriminator value and create the object
4
+ * @returns {AssemblyMetadata}
5
+ */
6
+ // @ts-ignore
7
+ export function createAssemblyMetadataFromDiscriminatorValue(parseNode) {
8
+ return deserializeIntoAssemblyMetadata;
9
+ }
10
+ /**
11
+ * Creates a new instance of the appropriate class based on discriminator value
12
+ * @param parseNode The parse node to use to read the discriminator value and create the object
13
+ * @returns {CallChain}
14
+ */
15
+ // @ts-ignore
16
+ export function createCallChainFromDiscriminatorValue(parseNode) {
17
+ return deserializeIntoCallChain;
18
+ }
19
+ /**
20
+ * Creates a new instance of the appropriate class based on discriminator value
21
+ * @param parseNode The parse node to use to read the discriminator value and create the object
22
+ * @returns {CallChainNode}
23
+ */
24
+ // @ts-ignore
25
+ export function createCallChainNodeFromDiscriminatorValue(parseNode) {
26
+ return deserializeIntoCallChainNode;
27
+ }
28
+ /**
29
+ * Creates a new instance of the appropriate class based on discriminator value
30
+ * @param parseNode The parse node to use to read the discriminator value and create the object
31
+ * @returns {DataFlowChain}
32
+ */
33
+ // @ts-ignore
34
+ export function createDataFlowChainFromDiscriminatorValue(parseNode) {
35
+ return deserializeIntoDataFlowChain;
36
+ }
37
+ /**
38
+ * Creates a new instance of the appropriate class based on discriminator value
39
+ * @param parseNode The parse node to use to read the discriminator value and create the object
40
+ * @returns {DataFlowNode}
41
+ */
42
+ // @ts-ignore
43
+ export function createDataFlowNodeFromDiscriminatorValue(parseNode) {
44
+ return deserializeIntoDataFlowNode;
45
+ }
46
+ /**
47
+ * Creates a new instance of the appropriate class based on discriminator value
48
+ * @param parseNode The parse node to use to read the discriminator value and create the object
49
+ * @returns {DeveloperGuidance}
50
+ */
51
+ // @ts-ignore
52
+ export function createDeveloperGuidanceFromDiscriminatorValue(parseNode) {
53
+ return deserializeIntoDeveloperGuidance;
54
+ }
55
+ /**
56
+ * Creates a new instance of the appropriate class based on discriminator value
57
+ * @param parseNode The parse node to use to read the discriminator value and create the object
58
+ * @returns {ErrorResponse}
59
+ */
60
+ // @ts-ignore
61
+ export function createErrorResponseFromDiscriminatorValue(parseNode) {
62
+ return deserializeIntoErrorResponse;
63
+ }
64
+ /**
65
+ * Creates a new instance of the appropriate class based on discriminator value
66
+ * @param parseNode The parse node to use to read the discriminator value and create the object
67
+ * @returns {FilesUploadResponse_data_links}
68
+ */
69
+ // @ts-ignore
70
+ export function createFilesUploadResponse_data_linksFromDiscriminatorValue(parseNode) {
71
+ return deserializeIntoFilesUploadResponse_data_links;
72
+ }
73
+ /**
74
+ * Creates a new instance of the appropriate class based on discriminator value
75
+ * @param parseNode The parse node to use to read the discriminator value and create the object
76
+ * @returns {FilesUploadResponse_data}
77
+ */
78
+ // @ts-ignore
79
+ export function createFilesUploadResponse_dataFromDiscriminatorValue(parseNode) {
80
+ return deserializeIntoFilesUploadResponse_data;
81
+ }
82
+ /**
83
+ * Creates a new instance of the appropriate class based on discriminator value
84
+ * @param parseNode The parse node to use to read the discriminator value and create the object
85
+ * @returns {FilesUploadResponse}
86
+ */
87
+ // @ts-ignore
88
+ export function createFilesUploadResponseFromDiscriminatorValue(parseNode) {
89
+ return deserializeIntoFilesUploadResponse;
90
+ }
91
+ /**
92
+ * Creates a new instance of the appropriate class based on discriminator value
93
+ * @param parseNode The parse node to use to read the discriminator value and create the object
94
+ * @returns {FilesUploadUrlResponse_data}
95
+ */
96
+ // @ts-ignore
97
+ export function createFilesUploadUrlResponse_dataFromDiscriminatorValue(parseNode) {
98
+ return deserializeIntoFilesUploadUrlResponse_data;
99
+ }
100
+ /**
101
+ * Creates a new instance of the appropriate class based on discriminator value
102
+ * @param parseNode The parse node to use to read the discriminator value and create the object
103
+ * @returns {FilesUploadUrlResponse}
104
+ */
105
+ // @ts-ignore
106
+ export function createFilesUploadUrlResponseFromDiscriminatorValue(parseNode) {
107
+ return deserializeIntoFilesUploadUrlResponse;
108
+ }
109
+ /**
110
+ * Creates a new instance of the appropriate class based on discriminator value
111
+ * @param parseNode The parse node to use to read the discriminator value and create the object
112
+ * @returns {Finding}
113
+ */
114
+ // @ts-ignore
115
+ export function createFindingFromDiscriminatorValue(parseNode) {
116
+ return deserializeIntoFinding;
117
+ }
118
+ /**
119
+ * Creates a new instance of the appropriate class based on discriminator value
120
+ * @param parseNode The parse node to use to read the discriminator value and create the object
121
+ * @returns {PublicRelatedReport}
122
+ */
123
+ // @ts-ignore
124
+ export function createPublicRelatedReportFromDiscriminatorValue(parseNode) {
125
+ return deserializeIntoPublicRelatedReport;
126
+ }
127
+ /**
128
+ * Creates a new instance of the appropriate class based on discriminator value
129
+ * @param parseNode The parse node to use to read the discriminator value and create the object
130
+ * @returns {PublicReportFinding}
131
+ */
132
+ // @ts-ignore
133
+ export function createPublicReportFindingFromDiscriminatorValue(parseNode) {
134
+ return deserializeIntoPublicReportFinding;
135
+ }
136
+ /**
137
+ * Creates a new instance of the appropriate class based on discriminator value
138
+ * @param parseNode The parse node to use to read the discriminator value and create the object
139
+ * @returns {PublicReportResponse_reviewOverride}
140
+ */
141
+ // @ts-ignore
142
+ export function createPublicReportResponse_reviewOverrideFromDiscriminatorValue(parseNode) {
143
+ return deserializeIntoPublicReportResponse_reviewOverride;
144
+ }
145
+ /**
146
+ * Creates a new instance of the appropriate class based on discriminator value
147
+ * @param parseNode The parse node to use to read the discriminator value and create the object
148
+ * @returns {PublicReportResponse}
149
+ */
150
+ // @ts-ignore
151
+ export function createPublicReportResponseFromDiscriminatorValue(parseNode) {
152
+ return deserializeIntoPublicReportResponse;
153
+ }
154
+ /**
155
+ * Creates a new instance of the appropriate class based on discriminator value
156
+ * @param parseNode The parse node to use to read the discriminator value and create the object
157
+ * @returns {PublicReportSource}
158
+ */
159
+ // @ts-ignore
160
+ export function createPublicReportSourceFromDiscriminatorValue(parseNode) {
161
+ return deserializeIntoPublicReportSource;
162
+ }
163
+ /**
164
+ * Creates a new instance of the appropriate class based on discriminator value
165
+ * @param parseNode The parse node to use to read the discriminator value and create the object
166
+ * @returns {PublicReportThreatFamily}
167
+ */
168
+ // @ts-ignore
169
+ export function createPublicReportThreatFamilyFromDiscriminatorValue(parseNode) {
170
+ return deserializeIntoPublicReportThreatFamily;
171
+ }
172
+ /**
173
+ * Creates a new instance of the appropriate class based on discriminator value
174
+ * @param parseNode The parse node to use to read the discriminator value and create the object
175
+ * @returns {ReportResponse_result}
176
+ */
177
+ // @ts-ignore
178
+ export function createReportResponse_resultFromDiscriminatorValue(parseNode) {
179
+ return deserializeIntoReportResponse_result;
180
+ }
181
+ /**
182
+ * Creates a new instance of the appropriate class based on discriminator value
183
+ * @param parseNode The parse node to use to read the discriminator value and create the object
184
+ * @returns {ReportResponse_reviewOverride}
185
+ */
186
+ // @ts-ignore
187
+ export function createReportResponse_reviewOverrideFromDiscriminatorValue(parseNode) {
188
+ return deserializeIntoReportResponse_reviewOverride;
189
+ }
190
+ /**
191
+ * Creates a new instance of the appropriate class based on discriminator value
192
+ * @param parseNode The parse node to use to read the discriminator value and create the object
193
+ * @returns {ReportResponse}
194
+ */
195
+ // @ts-ignore
196
+ export function createReportResponseFromDiscriminatorValue(parseNode) {
197
+ return deserializeIntoReportResponse;
198
+ }
199
+ /**
200
+ * Creates a new instance of the appropriate class based on discriminator value
201
+ * @param parseNode The parse node to use to read the discriminator value and create the object
202
+ * @returns {ScanInput}
203
+ */
204
+ // @ts-ignore
205
+ export function createScanInputFromDiscriminatorValue(parseNode) {
206
+ return deserializeIntoScanInput;
207
+ }
208
+ /**
209
+ * Creates a new instance of the appropriate class based on discriminator value
210
+ * @param parseNode The parse node to use to read the discriminator value and create the object
211
+ * @returns {ScanMetadata}
212
+ */
213
+ // @ts-ignore
214
+ export function createScanMetadataFromDiscriminatorValue(parseNode) {
215
+ return deserializeIntoScanMetadata;
216
+ }
217
+ /**
218
+ * Creates a new instance of the appropriate class based on discriminator value
219
+ * @param parseNode The parse node to use to read the discriminator value and create the object
220
+ * @returns {ScanSummary_countBySeverity}
221
+ */
222
+ // @ts-ignore
223
+ export function createScanSummary_countBySeverityFromDiscriminatorValue(parseNode) {
224
+ return deserializeIntoScanSummary_countBySeverity;
225
+ }
226
+ /**
227
+ * Creates a new instance of the appropriate class based on discriminator value
228
+ * @param parseNode The parse node to use to read the discriminator value and create the object
229
+ * @returns {ScanSummary}
230
+ */
231
+ // @ts-ignore
232
+ export function createScanSummaryFromDiscriminatorValue(parseNode) {
233
+ return deserializeIntoScanSummary;
234
+ }
235
+ /**
236
+ * Creates a new instance of the appropriate class based on discriminator value
237
+ * @param parseNode The parse node to use to read the discriminator value and create the object
238
+ * @returns {ThreatDisposition}
239
+ */
240
+ // @ts-ignore
241
+ export function createThreatDispositionFromDiscriminatorValue(parseNode) {
242
+ return deserializeIntoThreatDisposition;
243
+ }
244
+ /**
245
+ * Creates a new instance of the appropriate class based on discriminator value
246
+ * @param parseNode The parse node to use to read the discriminator value and create the object
247
+ * @returns {ThreatFamilyEvidence}
248
+ */
249
+ // @ts-ignore
250
+ export function createThreatFamilyEvidenceFromDiscriminatorValue(parseNode) {
251
+ return deserializeIntoThreatFamilyEvidence;
252
+ }
253
+ /**
254
+ * Creates a new instance of the appropriate class based on discriminator value
255
+ * @param parseNode The parse node to use to read the discriminator value and create the object
256
+ * @returns {ThreatFamily}
257
+ */
258
+ // @ts-ignore
259
+ export function createThreatFamilyFromDiscriminatorValue(parseNode) {
260
+ return deserializeIntoThreatFamily;
261
+ }
262
+ /**
263
+ * The deserialization information for the current model
264
+ * @param AssemblyMetadata The instance to deserialize into.
265
+ * @returns {Record<string, (node: ParseNode) => void>}
266
+ */
267
+ // @ts-ignore
268
+ export function deserializeIntoAssemblyMetadata(assemblyMetadata = {}) {
269
+ return {
270
+ "assemblyVersion": n => { assemblyMetadata.assemblyVersion = n.getStringValue(); },
271
+ "fileVersion": n => { assemblyMetadata.fileVersion = n.getStringValue(); },
272
+ "informationalVersion": n => { assemblyMetadata.informationalVersion = n.getStringValue(); },
273
+ "moduleRuntimeVersion": n => { assemblyMetadata.moduleRuntimeVersion = n.getStringValue(); },
274
+ "name": n => { assemblyMetadata.name = n.getStringValue(); },
275
+ "referencedAssemblies": n => { assemblyMetadata.referencedAssemblies = n.getCollectionOfPrimitiveValues(); },
276
+ "targetFramework": n => { assemblyMetadata.targetFramework = n.getStringValue(); },
277
+ };
278
+ }
279
+ /**
280
+ * The deserialization information for the current model
281
+ * @param CallChain The instance to deserialize into.
282
+ * @returns {Record<string, (node: ParseNode) => void>}
283
+ */
284
+ // @ts-ignore
285
+ export function deserializeIntoCallChain(callChain = {}) {
286
+ return {
287
+ "description": n => { callChain.description = n.getStringValue(); },
288
+ "id": n => { callChain.id = n.getStringValue(); },
289
+ "nodes": n => { callChain.nodes = n.getCollectionOfObjectValues(createCallChainNodeFromDiscriminatorValue); },
290
+ "ruleId": n => { callChain.ruleId = n.getStringValue(); },
291
+ "severity": n => { callChain.severity = n.getEnumValue(SeverityObject); },
292
+ };
293
+ }
294
+ /**
295
+ * The deserialization information for the current model
296
+ * @param CallChainNode The instance to deserialize into.
297
+ * @returns {Record<string, (node: ParseNode) => void>}
298
+ */
299
+ // @ts-ignore
300
+ export function deserializeIntoCallChainNode(callChainNode = {}) {
301
+ return {
302
+ "codeSnippet": n => { callChainNode.codeSnippet = n.getStringValue(); },
303
+ "description": n => { callChainNode.description = n.getStringValue(); },
304
+ "location": n => { callChainNode.location = n.getStringValue(); },
305
+ "nodeType": n => { callChainNode.nodeType = n.getEnumValue(CallChainNodeTypeObject); },
306
+ };
307
+ }
308
+ /**
309
+ * The deserialization information for the current model
310
+ * @param DataFlowChain The instance to deserialize into.
311
+ * @returns {Record<string, (node: ParseNode) => void>}
312
+ */
313
+ // @ts-ignore
314
+ export function deserializeIntoDataFlowChain(dataFlowChain = {}) {
315
+ return {
316
+ "callDepth": n => { dataFlowChain.callDepth = n.getNumberValue(); },
317
+ "description": n => { dataFlowChain.description = n.getStringValue(); },
318
+ "id": n => { dataFlowChain.id = n.getStringValue(); },
319
+ "involvedMethods": n => { dataFlowChain.involvedMethods = n.getCollectionOfPrimitiveValues(); },
320
+ "isCrossMethod": n => { dataFlowChain.isCrossMethod = n.getBooleanValue(); },
321
+ "isSuspicious": n => { dataFlowChain.isSuspicious = n.getBooleanValue(); },
322
+ "methodLocation": n => { dataFlowChain.methodLocation = n.getStringValue(); },
323
+ "nodes": n => { dataFlowChain.nodes = n.getCollectionOfObjectValues(createDataFlowNodeFromDiscriminatorValue); },
324
+ "pattern": n => { dataFlowChain.pattern = n.getEnumValue(DataFlowPatternObject); },
325
+ "severity": n => { dataFlowChain.severity = n.getEnumValue(SeverityObject); },
326
+ "sourceVariable": n => { dataFlowChain.sourceVariable = n.getStringValue(); },
327
+ };
328
+ }
329
+ /**
330
+ * The deserialization information for the current model
331
+ * @param DataFlowNode The instance to deserialize into.
332
+ * @returns {Record<string, (node: ParseNode) => void>}
333
+ */
334
+ // @ts-ignore
335
+ export function deserializeIntoDataFlowNode(dataFlowNode = {}) {
336
+ return {
337
+ "codeSnippet": n => { dataFlowNode.codeSnippet = n.getStringValue(); },
338
+ "dataDescription": n => { dataFlowNode.dataDescription = n.getStringValue(); },
339
+ "instructionOffset": n => { dataFlowNode.instructionOffset = n.getNumberValue(); },
340
+ "isMethodBoundary": n => { dataFlowNode.isMethodBoundary = n.getBooleanValue(); },
341
+ "location": n => { dataFlowNode.location = n.getStringValue(); },
342
+ "methodKey": n => { dataFlowNode.methodKey = n.getStringValue(); },
343
+ "nodeType": n => { dataFlowNode.nodeType = n.getEnumValue(DataFlowNodeTypeObject); },
344
+ "operation": n => { dataFlowNode.operation = n.getStringValue(); },
345
+ "targetMethodKey": n => { dataFlowNode.targetMethodKey = n.getStringValue(); },
346
+ };
347
+ }
348
+ /**
349
+ * The deserialization information for the current model
350
+ * @param DeveloperGuidance The instance to deserialize into.
351
+ * @returns {Record<string, (node: ParseNode) => void>}
352
+ */
353
+ // @ts-ignore
354
+ export function deserializeIntoDeveloperGuidance(developerGuidance = {}) {
355
+ return {
356
+ "alternativeApis": n => { developerGuidance.alternativeApis = n.getCollectionOfPrimitiveValues(); },
357
+ "documentationUrl": n => { developerGuidance.documentationUrl = n.getStringValue(); },
358
+ "isRemediable": n => { developerGuidance.isRemediable = n.getBooleanValue(); },
359
+ "remediation": n => { developerGuidance.remediation = n.getStringValue(); },
360
+ "ruleId": n => { developerGuidance.ruleId = n.getStringValue(); },
361
+ "ruleIds": n => { developerGuidance.ruleIds = n.getCollectionOfPrimitiveValues(); },
362
+ };
363
+ }
364
+ /**
365
+ * The deserialization information for the current model
366
+ * @param ErrorResponse The instance to deserialize into.
367
+ * @returns {Record<string, (node: ParseNode) => void>}
368
+ */
369
+ // @ts-ignore
370
+ export function deserializeIntoErrorResponse(errorResponse = {}) {
371
+ return {
372
+ "error": n => { errorResponse.errorEscaped = n.getStringValue(); },
373
+ "message": n => { errorResponse.messageEscaped = n.getStringValue(); },
374
+ };
375
+ }
376
+ /**
377
+ * The deserialization information for the current model
378
+ * @param FilesUploadResponse The instance to deserialize into.
379
+ * @returns {Record<string, (node: ParseNode) => void>}
380
+ */
381
+ // @ts-ignore
382
+ export function deserializeIntoFilesUploadResponse(filesUploadResponse = {}) {
383
+ return {
384
+ "data": n => { filesUploadResponse.data = n.getObjectValue(createFilesUploadResponse_dataFromDiscriminatorValue); },
385
+ };
386
+ }
387
+ /**
388
+ * The deserialization information for the current model
389
+ * @param FilesUploadResponse_data The instance to deserialize into.
390
+ * @returns {Record<string, (node: ParseNode) => void>}
391
+ */
392
+ // @ts-ignore
393
+ export function deserializeIntoFilesUploadResponse_data(filesUploadResponse_data = {}) {
394
+ return {
395
+ "id": n => { filesUploadResponse_data.id = n.getStringValue(); },
396
+ "links": n => { filesUploadResponse_data.links = n.getObjectValue(createFilesUploadResponse_data_linksFromDiscriminatorValue); },
397
+ "type": n => { filesUploadResponse_data.type = n.getEnumValue(FilesUploadResponse_data_typeObject); },
398
+ };
399
+ }
400
+ /**
401
+ * The deserialization information for the current model
402
+ * @param FilesUploadResponse_data_links The instance to deserialize into.
403
+ * @returns {Record<string, (node: ParseNode) => void>}
404
+ */
405
+ // @ts-ignore
406
+ export function deserializeIntoFilesUploadResponse_data_links(filesUploadResponse_data_links = {}) {
407
+ return {
408
+ "self": n => { filesUploadResponse_data_links.self = n.getStringValue(); },
409
+ };
410
+ }
411
+ /**
412
+ * The deserialization information for the current model
413
+ * @param FilesUploadUrlResponse The instance to deserialize into.
414
+ * @returns {Record<string, (node: ParseNode) => void>}
415
+ */
416
+ // @ts-ignore
417
+ export function deserializeIntoFilesUploadUrlResponse(filesUploadUrlResponse = {}) {
418
+ return {
419
+ "data": n => { filesUploadUrlResponse.data = n.getObjectValue(createFilesUploadUrlResponse_dataFromDiscriminatorValue); },
420
+ };
421
+ }
422
+ /**
423
+ * The deserialization information for the current model
424
+ * @param FilesUploadUrlResponse_data The instance to deserialize into.
425
+ * @returns {Record<string, (node: ParseNode) => void>}
426
+ */
427
+ // @ts-ignore
428
+ export function deserializeIntoFilesUploadUrlResponse_data(filesUploadUrlResponse_data = {}) {
429
+ return {
430
+ "expires_in": n => { filesUploadUrlResponse_data.expiresIn = n.getNumberValue(); },
431
+ "submission_id": n => { filesUploadUrlResponse_data.submissionId = n.getStringValue(); },
432
+ "upload_method": n => { filesUploadUrlResponse_data.uploadMethod = n.getEnumValue(FilesUploadUrlResponse_data_upload_methodObject); },
433
+ "upload_url": n => { filesUploadUrlResponse_data.uploadUrl = n.getStringValue(); },
434
+ };
435
+ }
436
+ /**
437
+ * The deserialization information for the current model
438
+ * @param Finding The instance to deserialize into.
439
+ * @returns {Record<string, (node: ParseNode) => void>}
440
+ */
441
+ // @ts-ignore
442
+ export function deserializeIntoFinding(finding = {}) {
443
+ return {
444
+ "callChain": n => { finding.callChain = n.getObjectValue(createCallChainFromDiscriminatorValue); },
445
+ "callChainId": n => { finding.callChainId = n.getStringValue(); },
446
+ "codeSnippet": n => { finding.codeSnippet = n.getStringValue(); },
447
+ "dataFlowChain": n => { finding.dataFlowChain = n.getObjectValue(createDataFlowChainFromDiscriminatorValue); },
448
+ "dataFlowChainId": n => { finding.dataFlowChainId = n.getStringValue(); },
449
+ "description": n => { finding.description = n.getStringValue(); },
450
+ "developerGuidance": n => { finding.developerGuidance = n.getObjectValue(createDeveloperGuidanceFromDiscriminatorValue); },
451
+ "id": n => { finding.id = n.getStringValue(); },
452
+ "location": n => { finding.location = n.getStringValue(); },
453
+ "riskScore": n => { finding.riskScore = n.getNumberValue(); },
454
+ "ruleId": n => { finding.ruleId = n.getStringValue(); },
455
+ "severity": n => { finding.severity = n.getEnumValue(SeverityObject); },
456
+ "visibility": n => { finding.visibility = n.getEnumValue(FindingVisibilityObject); },
457
+ };
458
+ }
459
+ /**
460
+ * The deserialization information for the current model
461
+ * @param PublicRelatedReport The instance to deserialize into.
462
+ * @returns {Record<string, (node: ParseNode) => void>}
463
+ */
464
+ // @ts-ignore
465
+ export function deserializeIntoPublicRelatedReport(publicRelatedReport = {}) {
466
+ return {
467
+ "classification": n => { publicRelatedReport.classification = n.getEnumValue(PublicRelatedReport_classificationObject); },
468
+ "contentHash": n => { publicRelatedReport.contentHash = n.getStringValue(); },
469
+ "createdAt": n => { publicRelatedReport.createdAt = n.getDateValue(); },
470
+ "current": n => { publicRelatedReport.current = n.getBooleanValue(); },
471
+ "fileName": n => { publicRelatedReport.fileName = n.getStringValue(); },
472
+ "findingCount": n => { publicRelatedReport.findingCount = n.getNumberValue(); },
473
+ "reportId": n => { publicRelatedReport.reportId = n.getStringValue(); },
474
+ "schemaVersion": n => { publicRelatedReport.schemaVersion = n.getStringValue(); },
475
+ "status": n => { publicRelatedReport.status = n.getEnumValue(PublicRelatedReport_statusObject); },
476
+ "submissionId": n => { publicRelatedReport.submissionId = n.getStringValue(); },
477
+ };
478
+ }
479
+ /**
480
+ * The deserialization information for the current model
481
+ * @param PublicReportFinding The instance to deserialize into.
482
+ * @returns {Record<string, (node: ParseNode) => void>}
483
+ */
484
+ // @ts-ignore
485
+ export function deserializeIntoPublicReportFinding(publicReportFinding = {}) {
486
+ return {
487
+ "description": n => { publicReportFinding.description = n.getStringValue(); },
488
+ "id": n => { publicReportFinding.id = n.getStringValue(); },
489
+ "location": n => { publicReportFinding.location = n.getStringValue(); },
490
+ "ruleId": n => { publicReportFinding.ruleId = n.getStringValue(); },
491
+ "severity": n => { publicReportFinding.severity = n.getStringValue(); },
492
+ "visibility": n => { publicReportFinding.visibility = n.getEnumValue(PublicReportFinding_visibilityObject); },
493
+ };
494
+ }
495
+ /**
496
+ * The deserialization information for the current model
497
+ * @param PublicReportResponse The instance to deserialize into.
498
+ * @returns {Record<string, (node: ParseNode) => void>}
499
+ */
500
+ // @ts-ignore
501
+ export function deserializeIntoPublicReportResponse(publicReportResponse = {}) {
502
+ return {
503
+ "blockingRecommended": n => { publicReportResponse.blockingRecommended = n.getBooleanValue(); },
504
+ "classification": n => { publicReportResponse.classification = n.getEnumValue(PublicReportResponse_classificationObject); },
505
+ "contentHash": n => { publicReportResponse.contentHash = n.getStringValue(); },
506
+ "fileName": n => { publicReportResponse.fileName = n.getStringValue(); },
507
+ "findingCount": n => { publicReportResponse.findingCount = n.getNumberValue(); },
508
+ "findings": n => { publicReportResponse.findings = n.getCollectionOfObjectValues(createPublicReportFindingFromDiscriminatorValue); },
509
+ "headline": n => { publicReportResponse.headline = n.getStringValue(); },
510
+ "primaryThreatFamilyId": n => { publicReportResponse.primaryThreatFamilyId = n.getStringValue(); },
511
+ "relatedReports": n => { publicReportResponse.relatedReports = n.getCollectionOfObjectValues(createPublicRelatedReportFromDiscriminatorValue); },
512
+ "reportId": n => { publicReportResponse.reportId = n.getStringValue(); },
513
+ "reviewedAt": n => { publicReportResponse.reviewedAt = n.getDateValue(); },
514
+ "reviewedBy": n => { publicReportResponse.reviewedBy = n.getStringValue(); },
515
+ "reviewOverride": n => { publicReportResponse.reviewOverride = n.getObjectValue(createPublicReportResponse_reviewOverrideFromDiscriminatorValue); },
516
+ "reviewStatus": n => { publicReportResponse.reviewStatus = n.getEnumValue(PublicReportResponse_reviewStatusObject); },
517
+ "scannedAt": n => { publicReportResponse.scannedAt = n.getDateValue(); },
518
+ "scannerVersion": n => { publicReportResponse.scannerVersion = n.getStringValue(); },
519
+ "schemaVersion": n => { publicReportResponse.schemaVersion = n.getStringValue(); },
520
+ "sizeBytes": n => { publicReportResponse.sizeBytes = n.getNumberValue(); },
521
+ "source": n => { publicReportResponse.source = n.getObjectValue(createPublicReportSourceFromDiscriminatorValue); },
522
+ "status": n => { publicReportResponse.status = n.getEnumValue(PublicReportResponse_statusObject); },
523
+ "submissionId": n => { publicReportResponse.submissionId = n.getStringValue(); },
524
+ "summary": n => { publicReportResponse.summary = n.getStringValue(); },
525
+ "threatFamilies": n => { publicReportResponse.threatFamilies = n.getCollectionOfObjectValues(createPublicReportThreatFamilyFromDiscriminatorValue); },
526
+ "triggeredRules": n => { publicReportResponse.triggeredRules = n.getCollectionOfPrimitiveValues(); },
527
+ };
528
+ }
529
+ /**
530
+ * The deserialization information for the current model
531
+ * @param PublicReportResponse_reviewOverride The instance to deserialize into.
532
+ * @returns {Record<string, (node: ParseNode) => void>}
533
+ */
534
+ // @ts-ignore
535
+ export function deserializeIntoPublicReportResponse_reviewOverride(publicReportResponse_reviewOverride = {}) {
536
+ return {
537
+ "blockingRecommended": n => { publicReportResponse_reviewOverride.blockingRecommended = n.getBooleanValue(); },
538
+ "classification": n => { publicReportResponse_reviewOverride.classification = n.getEnumValue(ThreatDispositionClassificationObject); },
539
+ "headline": n => { publicReportResponse_reviewOverride.headline = n.getStringValue(); },
540
+ "id": n => { publicReportResponse_reviewOverride.id = n.getStringValue(); },
541
+ "reason": n => { publicReportResponse_reviewOverride.reason = n.getStringValue(); },
542
+ "reviewedAt": n => { publicReportResponse_reviewOverride.reviewedAt = n.getDateValue(); },
543
+ "reviewedBy": n => { publicReportResponse_reviewOverride.reviewedBy = n.getStringValue(); },
544
+ "reviewedByDiscordUserId": n => { publicReportResponse_reviewOverride.reviewedByDiscordUserId = n.getStringValue(); },
545
+ "reviewStatus": n => { publicReportResponse_reviewOverride.reviewStatus = n.getEnumValue(PublicReportResponse_reviewOverride_reviewStatusObject); },
546
+ "scopeKind": n => { publicReportResponse_reviewOverride.scopeKind = n.getEnumValue(PublicReportResponse_reviewOverride_scopeKindObject); },
547
+ "summary": n => { publicReportResponse_reviewOverride.summary = n.getStringValue(); },
548
+ };
549
+ }
550
+ /**
551
+ * The deserialization information for the current model
552
+ * @param PublicReportSource The instance to deserialize into.
553
+ * @returns {Record<string, (node: ParseNode) => void>}
554
+ */
555
+ // @ts-ignore
556
+ export function deserializeIntoPublicReportSource(publicReportSource = {}) {
557
+ return {
558
+ "author": n => { publicReportSource.author = n.getStringValue(); },
559
+ "displayName": n => { publicReportSource.displayName = n.getStringValue(); },
560
+ "fileName": n => { publicReportSource.fileName = n.getStringValue(); },
561
+ "game": n => { publicReportSource.game = n.getStringValue(); },
562
+ "packageFileName": n => { publicReportSource.packageFileName = n.getStringValue(); },
563
+ "provider": n => { publicReportSource.provider = n.getStringValue(); },
564
+ "sourceKey": n => { publicReportSource.sourceKey = n.getStringValue(); },
565
+ "sourceUrl": n => { publicReportSource.sourceUrl = n.getStringValue(); },
566
+ "version": n => { publicReportSource.version = n.getStringValue(); },
567
+ };
568
+ }
569
+ /**
570
+ * The deserialization information for the current model
571
+ * @param PublicReportThreatFamily The instance to deserialize into.
572
+ * @returns {Record<string, (node: ParseNode) => void>}
573
+ */
574
+ // @ts-ignore
575
+ export function deserializeIntoPublicReportThreatFamily(publicReportThreatFamily = {}) {
576
+ return {
577
+ "advisorySlugs": n => { publicReportThreatFamily.advisorySlugs = n.getCollectionOfPrimitiveValues(); },
578
+ "confidence": n => { publicReportThreatFamily.confidence = n.getNumberValue(); },
579
+ "displayName": n => { publicReportThreatFamily.displayName = n.getStringValue(); },
580
+ "exactHashMatch": n => { publicReportThreatFamily.exactHashMatch = n.getBooleanValue(); },
581
+ "familyId": n => { publicReportThreatFamily.familyId = n.getStringValue(); },
582
+ "matchedRules": n => { publicReportThreatFamily.matchedRules = n.getCollectionOfPrimitiveValues(); },
583
+ "matchKind": n => { publicReportThreatFamily.matchKind = n.getStringValue(); },
584
+ "summary": n => { publicReportThreatFamily.summary = n.getStringValue(); },
585
+ "variantId": n => { publicReportThreatFamily.variantId = n.getStringValue(); },
586
+ };
587
+ }
588
+ /**
589
+ * The deserialization information for the current model
590
+ * @param ReportResponse The instance to deserialize into.
591
+ * @returns {Record<string, (node: ParseNode) => void>}
592
+ */
593
+ // @ts-ignore
594
+ export function deserializeIntoReportResponse(reportResponse = {}) {
595
+ return {
596
+ "completedAt": n => { reportResponse.completedAt = n.getDateValue(); },
597
+ "createdAt": n => { reportResponse.createdAt = n.getDateValue(); },
598
+ "error": n => { reportResponse.errorEscaped = n.getStringValue(); },
599
+ "reportId": n => { reportResponse.reportId = n.getStringValue(); },
600
+ "result": n => { reportResponse.result = n.getObjectValue(createReportResponse_resultFromDiscriminatorValue); },
601
+ "reviewOverride": n => { reportResponse.reviewOverride = n.getObjectValue(createReportResponse_reviewOverrideFromDiscriminatorValue); },
602
+ "status": n => { reportResponse.status = n.getEnumValue(ReportResponse_statusObject); },
603
+ };
604
+ }
605
+ /**
606
+ * The deserialization information for the current model
607
+ * @param ReportResponse_result The instance to deserialize into.
608
+ * @returns {Record<string, (node: ParseNode) => void>}
609
+ */
610
+ // @ts-ignore
611
+ export function deserializeIntoReportResponse_result(reportResponse_result = {}) {
612
+ return {
613
+ "assembly": n => { reportResponse_result.assembly = n.getObjectValue(createAssemblyMetadataFromDiscriminatorValue); },
614
+ "callChains": n => { reportResponse_result.callChains = n.getCollectionOfObjectValues(createCallChainFromDiscriminatorValue); },
615
+ "dataFlows": n => { reportResponse_result.dataFlows = n.getCollectionOfObjectValues(createDataFlowChainFromDiscriminatorValue); },
616
+ "developerGuidance": n => { reportResponse_result.developerGuidance = n.getCollectionOfObjectValues(createDeveloperGuidanceFromDiscriminatorValue); },
617
+ "disposition": n => { reportResponse_result.disposition = n.getObjectValue(createThreatDispositionFromDiscriminatorValue); },
618
+ "findings": n => { reportResponse_result.findings = n.getCollectionOfObjectValues(createFindingFromDiscriminatorValue); },
619
+ "input": n => { reportResponse_result.input = n.getObjectValue(createScanInputFromDiscriminatorValue); },
620
+ "metadata": n => { reportResponse_result.metadata = n.getObjectValue(createScanMetadataFromDiscriminatorValue); },
621
+ "schemaVersion": n => { reportResponse_result.schemaVersion = n.getEnumValue(ReportResponse_result_schemaVersionObject); },
622
+ "summary": n => { reportResponse_result.summary = n.getObjectValue(createScanSummaryFromDiscriminatorValue); },
623
+ "threatFamilies": n => { reportResponse_result.threatFamilies = n.getCollectionOfObjectValues(createThreatFamilyFromDiscriminatorValue); },
624
+ };
625
+ }
626
+ /**
627
+ * The deserialization information for the current model
628
+ * @param ReportResponse_reviewOverride The instance to deserialize into.
629
+ * @returns {Record<string, (node: ParseNode) => void>}
630
+ */
631
+ // @ts-ignore
632
+ export function deserializeIntoReportResponse_reviewOverride(reportResponse_reviewOverride = {}) {
633
+ return {
634
+ "blockingRecommended": n => { reportResponse_reviewOverride.blockingRecommended = n.getBooleanValue(); },
635
+ "classification": n => { reportResponse_reviewOverride.classification = n.getEnumValue(ThreatDispositionClassificationObject); },
636
+ "headline": n => { reportResponse_reviewOverride.headline = n.getStringValue(); },
637
+ "id": n => { reportResponse_reviewOverride.id = n.getStringValue(); },
638
+ "reason": n => { reportResponse_reviewOverride.reason = n.getStringValue(); },
639
+ "reviewedAt": n => { reportResponse_reviewOverride.reviewedAt = n.getDateValue(); },
640
+ "reviewedBy": n => { reportResponse_reviewOverride.reviewedBy = n.getStringValue(); },
641
+ "reviewedByDiscordUserId": n => { reportResponse_reviewOverride.reviewedByDiscordUserId = n.getStringValue(); },
642
+ "reviewStatus": n => { reportResponse_reviewOverride.reviewStatus = n.getEnumValue(ReportResponse_reviewOverride_reviewStatusObject); },
643
+ "scopeKind": n => { reportResponse_reviewOverride.scopeKind = n.getEnumValue(ReportResponse_reviewOverride_scopeKindObject); },
644
+ "summary": n => { reportResponse_reviewOverride.summary = n.getStringValue(); },
645
+ };
646
+ }
647
+ /**
648
+ * The deserialization information for the current model
649
+ * @param ScanInput The instance to deserialize into.
650
+ * @returns {Record<string, (node: ParseNode) => void>}
651
+ */
652
+ // @ts-ignore
653
+ export function deserializeIntoScanInput(scanInput = {}) {
654
+ return {
655
+ "fileName": n => { scanInput.fileName = n.getStringValue(); },
656
+ "sha256Hash": n => { scanInput.sha256Hash = n.getStringValue(); },
657
+ "sizeBytes": n => { scanInput.sizeBytes = n.getNumberValue(); },
658
+ };
659
+ }
660
+ /**
661
+ * The deserialization information for the current model
662
+ * @param ScanMetadata The instance to deserialize into.
663
+ * @returns {Record<string, (node: ParseNode) => void>}
664
+ */
665
+ // @ts-ignore
666
+ export function deserializeIntoScanMetadata(scanMetadata = {}) {
667
+ return {
668
+ "coreVersion": n => { scanMetadata.coreVersion = n.getStringValue(); },
669
+ "platform": n => { scanMetadata.platform = n.getEnumValue(ScanPlatformObject); },
670
+ "platformVersion": n => { scanMetadata.platformVersion = n.getStringValue(); },
671
+ "scanMode": n => { scanMetadata.scanMode = n.getEnumValue(ScanModeObject); },
672
+ "scannerVersion": n => { scanMetadata.scannerVersion = n.getStringValue(); },
673
+ "timestamp": n => { scanMetadata.timestamp = n.getDateValue(); },
674
+ };
675
+ }
676
+ /**
677
+ * The deserialization information for the current model
678
+ * @param ScanSummary The instance to deserialize into.
679
+ * @returns {Record<string, (node: ParseNode) => void>}
680
+ */
681
+ // @ts-ignore
682
+ export function deserializeIntoScanSummary(scanSummary = {}) {
683
+ return {
684
+ "countBySeverity": n => { scanSummary.countBySeverity = n.getObjectValue(createScanSummary_countBySeverityFromDiscriminatorValue); },
685
+ "totalFindings": n => { scanSummary.totalFindings = n.getNumberValue(); },
686
+ "triggeredRules": n => { scanSummary.triggeredRules = n.getCollectionOfPrimitiveValues(); },
687
+ };
688
+ }
689
+ /**
690
+ * The deserialization information for the current model
691
+ * @param ScanSummary_countBySeverity The instance to deserialize into.
692
+ * @returns {Record<string, (node: ParseNode) => void>}
693
+ */
694
+ // @ts-ignore
695
+ export function deserializeIntoScanSummary_countBySeverity(scanSummary_countBySeverity = {}) {
696
+ return {};
697
+ }
698
+ /**
699
+ * The deserialization information for the current model
700
+ * @param ThreatDisposition The instance to deserialize into.
701
+ * @returns {Record<string, (node: ParseNode) => void>}
702
+ */
703
+ // @ts-ignore
704
+ export function deserializeIntoThreatDisposition(threatDisposition = {}) {
705
+ return {
706
+ "blockingRecommended": n => { threatDisposition.blockingRecommended = n.getBooleanValue(); },
707
+ "classification": n => { threatDisposition.classification = n.getEnumValue(ThreatDispositionClassificationObject); },
708
+ "headline": n => { threatDisposition.headline = n.getStringValue(); },
709
+ "primaryThreatFamilyId": n => { threatDisposition.primaryThreatFamilyId = n.getStringValue(); },
710
+ "relatedFindingIds": n => { threatDisposition.relatedFindingIds = n.getCollectionOfPrimitiveValues(); },
711
+ "summary": n => { threatDisposition.summary = n.getStringValue(); },
712
+ };
713
+ }
714
+ /**
715
+ * The deserialization information for the current model
716
+ * @param ThreatFamily The instance to deserialize into.
717
+ * @returns {Record<string, (node: ParseNode) => void>}
718
+ */
719
+ // @ts-ignore
720
+ export function deserializeIntoThreatFamily(threatFamily = {}) {
721
+ return {
722
+ "advisorySlugs": n => { threatFamily.advisorySlugs = n.getCollectionOfPrimitiveValues(); },
723
+ "confidence": n => { threatFamily.confidence = n.getNumberValue(); },
724
+ "displayName": n => { threatFamily.displayName = n.getStringValue(); },
725
+ "evidence": n => { threatFamily.evidence = n.getCollectionOfObjectValues(createThreatFamilyEvidenceFromDiscriminatorValue); },
726
+ "exactHashMatch": n => { threatFamily.exactHashMatch = n.getBooleanValue(); },
727
+ "familyId": n => { threatFamily.familyId = n.getStringValue(); },
728
+ "matchedRules": n => { threatFamily.matchedRules = n.getCollectionOfPrimitiveValues(); },
729
+ "matchKind": n => { threatFamily.matchKind = n.getEnumValue(ThreatMatchKindObject); },
730
+ "summary": n => { threatFamily.summary = n.getStringValue(); },
731
+ "variantId": n => { threatFamily.variantId = n.getStringValue(); },
732
+ };
733
+ }
734
+ /**
735
+ * The deserialization information for the current model
736
+ * @param ThreatFamilyEvidence The instance to deserialize into.
737
+ * @returns {Record<string, (node: ParseNode) => void>}
738
+ */
739
+ // @ts-ignore
740
+ export function deserializeIntoThreatFamilyEvidence(threatFamilyEvidence = {}) {
741
+ return {
742
+ "callChainId": n => { threatFamilyEvidence.callChainId = n.getStringValue(); },
743
+ "confidence": n => { threatFamilyEvidence.confidence = n.getNumberValue(); },
744
+ "dataFlowChainId": n => { threatFamilyEvidence.dataFlowChainId = n.getStringValue(); },
745
+ "kind": n => { threatFamilyEvidence.kind = n.getStringValue(); },
746
+ "location": n => { threatFamilyEvidence.location = n.getStringValue(); },
747
+ "methodLocation": n => { threatFamilyEvidence.methodLocation = n.getStringValue(); },
748
+ "pattern": n => { threatFamilyEvidence.pattern = n.getStringValue(); },
749
+ "ruleId": n => { threatFamilyEvidence.ruleId = n.getStringValue(); },
750
+ "value": n => { threatFamilyEvidence.value = n.getStringValue(); },
751
+ };
752
+ }
753
+ /**
754
+ * Serializes information the current object
755
+ * @param AssemblyMetadata The instance to serialize from.
756
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
757
+ * @param writer Serialization writer to use to serialize this model
758
+ */
759
+ // @ts-ignore
760
+ export function serializeAssemblyMetadata(writer, assemblyMetadata = {}, isSerializingDerivedType = false) {
761
+ if (!assemblyMetadata || isSerializingDerivedType) {
762
+ return;
763
+ }
764
+ writer.writeStringValue("assemblyVersion", assemblyMetadata.assemblyVersion);
765
+ writer.writeStringValue("fileVersion", assemblyMetadata.fileVersion);
766
+ writer.writeStringValue("informationalVersion", assemblyMetadata.informationalVersion);
767
+ writer.writeStringValue("moduleRuntimeVersion", assemblyMetadata.moduleRuntimeVersion);
768
+ writer.writeStringValue("name", assemblyMetadata.name);
769
+ writer.writeCollectionOfPrimitiveValues("referencedAssemblies", assemblyMetadata.referencedAssemblies);
770
+ writer.writeStringValue("targetFramework", assemblyMetadata.targetFramework);
771
+ writer.writeAdditionalData(assemblyMetadata.additionalData);
772
+ }
773
+ /**
774
+ * Serializes information the current object
775
+ * @param CallChain The instance to serialize from.
776
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
777
+ * @param writer Serialization writer to use to serialize this model
778
+ */
779
+ // @ts-ignore
780
+ export function serializeCallChain(writer, callChain = {}, isSerializingDerivedType = false) {
781
+ if (!callChain || isSerializingDerivedType) {
782
+ return;
783
+ }
784
+ writer.writeStringValue("description", callChain.description);
785
+ writer.writeStringValue("id", callChain.id);
786
+ writer.writeCollectionOfObjectValues("nodes", callChain.nodes, serializeCallChainNode);
787
+ writer.writeStringValue("ruleId", callChain.ruleId);
788
+ writer.writeEnumValue("severity", callChain.severity);
789
+ writer.writeAdditionalData(callChain.additionalData);
790
+ }
791
+ /**
792
+ * Serializes information the current object
793
+ * @param CallChainNode The instance to serialize from.
794
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
795
+ * @param writer Serialization writer to use to serialize this model
796
+ */
797
+ // @ts-ignore
798
+ export function serializeCallChainNode(writer, callChainNode = {}, isSerializingDerivedType = false) {
799
+ if (!callChainNode || isSerializingDerivedType) {
800
+ return;
801
+ }
802
+ writer.writeStringValue("codeSnippet", callChainNode.codeSnippet);
803
+ writer.writeStringValue("description", callChainNode.description);
804
+ writer.writeStringValue("location", callChainNode.location);
805
+ writer.writeEnumValue("nodeType", callChainNode.nodeType);
806
+ writer.writeAdditionalData(callChainNode.additionalData);
807
+ }
808
+ /**
809
+ * Serializes information the current object
810
+ * @param DataFlowChain The instance to serialize from.
811
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
812
+ * @param writer Serialization writer to use to serialize this model
813
+ */
814
+ // @ts-ignore
815
+ export function serializeDataFlowChain(writer, dataFlowChain = {}, isSerializingDerivedType = false) {
816
+ if (!dataFlowChain || isSerializingDerivedType) {
817
+ return;
818
+ }
819
+ writer.writeNumberValue("callDepth", dataFlowChain.callDepth);
820
+ writer.writeStringValue("description", dataFlowChain.description);
821
+ writer.writeStringValue("id", dataFlowChain.id);
822
+ writer.writeCollectionOfPrimitiveValues("involvedMethods", dataFlowChain.involvedMethods);
823
+ writer.writeBooleanValue("isCrossMethod", dataFlowChain.isCrossMethod);
824
+ writer.writeBooleanValue("isSuspicious", dataFlowChain.isSuspicious);
825
+ writer.writeStringValue("methodLocation", dataFlowChain.methodLocation);
826
+ writer.writeCollectionOfObjectValues("nodes", dataFlowChain.nodes, serializeDataFlowNode);
827
+ writer.writeEnumValue("pattern", dataFlowChain.pattern);
828
+ writer.writeEnumValue("severity", dataFlowChain.severity);
829
+ writer.writeStringValue("sourceVariable", dataFlowChain.sourceVariable);
830
+ writer.writeAdditionalData(dataFlowChain.additionalData);
831
+ }
832
+ /**
833
+ * Serializes information the current object
834
+ * @param DataFlowNode The instance to serialize from.
835
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
836
+ * @param writer Serialization writer to use to serialize this model
837
+ */
838
+ // @ts-ignore
839
+ export function serializeDataFlowNode(writer, dataFlowNode = {}, isSerializingDerivedType = false) {
840
+ if (!dataFlowNode || isSerializingDerivedType) {
841
+ return;
842
+ }
843
+ writer.writeStringValue("codeSnippet", dataFlowNode.codeSnippet);
844
+ writer.writeStringValue("dataDescription", dataFlowNode.dataDescription);
845
+ writer.writeNumberValue("instructionOffset", dataFlowNode.instructionOffset);
846
+ writer.writeBooleanValue("isMethodBoundary", dataFlowNode.isMethodBoundary);
847
+ writer.writeStringValue("location", dataFlowNode.location);
848
+ writer.writeStringValue("methodKey", dataFlowNode.methodKey);
849
+ writer.writeEnumValue("nodeType", dataFlowNode.nodeType);
850
+ writer.writeStringValue("operation", dataFlowNode.operation);
851
+ writer.writeStringValue("targetMethodKey", dataFlowNode.targetMethodKey);
852
+ writer.writeAdditionalData(dataFlowNode.additionalData);
853
+ }
854
+ /**
855
+ * Serializes information the current object
856
+ * @param DeveloperGuidance The instance to serialize from.
857
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
858
+ * @param writer Serialization writer to use to serialize this model
859
+ */
860
+ // @ts-ignore
861
+ export function serializeDeveloperGuidance(writer, developerGuidance = {}, isSerializingDerivedType = false) {
862
+ if (!developerGuidance || isSerializingDerivedType) {
863
+ return;
864
+ }
865
+ writer.writeCollectionOfPrimitiveValues("alternativeApis", developerGuidance.alternativeApis);
866
+ writer.writeStringValue("documentationUrl", developerGuidance.documentationUrl);
867
+ writer.writeBooleanValue("isRemediable", developerGuidance.isRemediable);
868
+ writer.writeStringValue("remediation", developerGuidance.remediation);
869
+ writer.writeStringValue("ruleId", developerGuidance.ruleId);
870
+ writer.writeCollectionOfPrimitiveValues("ruleIds", developerGuidance.ruleIds);
871
+ writer.writeAdditionalData(developerGuidance.additionalData);
872
+ }
873
+ /**
874
+ * Serializes information the current object
875
+ * @param ErrorResponse The instance to serialize from.
876
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
877
+ * @param writer Serialization writer to use to serialize this model
878
+ */
879
+ // @ts-ignore
880
+ export function serializeErrorResponse(writer, errorResponse = {}, isSerializingDerivedType = false) {
881
+ if (!errorResponse || isSerializingDerivedType) {
882
+ return;
883
+ }
884
+ writer.writeStringValue("error", errorResponse.errorEscaped);
885
+ writer.writeStringValue("message", errorResponse.messageEscaped);
886
+ writer.writeAdditionalData(errorResponse.additionalData);
887
+ }
888
+ /**
889
+ * Serializes information the current object
890
+ * @param FilesUploadResponse The instance to serialize from.
891
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
892
+ * @param writer Serialization writer to use to serialize this model
893
+ */
894
+ // @ts-ignore
895
+ export function serializeFilesUploadResponse(writer, filesUploadResponse = {}, isSerializingDerivedType = false) {
896
+ if (!filesUploadResponse || isSerializingDerivedType) {
897
+ return;
898
+ }
899
+ writer.writeObjectValue("data", filesUploadResponse.data, serializeFilesUploadResponse_data);
900
+ writer.writeAdditionalData(filesUploadResponse.additionalData);
901
+ }
902
+ /**
903
+ * Serializes information the current object
904
+ * @param FilesUploadResponse_data The instance to serialize from.
905
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
906
+ * @param writer Serialization writer to use to serialize this model
907
+ */
908
+ // @ts-ignore
909
+ export function serializeFilesUploadResponse_data(writer, filesUploadResponse_data = {}, isSerializingDerivedType = false) {
910
+ if (!filesUploadResponse_data || isSerializingDerivedType) {
911
+ return;
912
+ }
913
+ writer.writeStringValue("id", filesUploadResponse_data.id);
914
+ writer.writeObjectValue("links", filesUploadResponse_data.links, serializeFilesUploadResponse_data_links);
915
+ writer.writeEnumValue("type", filesUploadResponse_data.type);
916
+ writer.writeAdditionalData(filesUploadResponse_data.additionalData);
917
+ }
918
+ /**
919
+ * Serializes information the current object
920
+ * @param FilesUploadResponse_data_links The instance to serialize from.
921
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
922
+ * @param writer Serialization writer to use to serialize this model
923
+ */
924
+ // @ts-ignore
925
+ export function serializeFilesUploadResponse_data_links(writer, filesUploadResponse_data_links = {}, isSerializingDerivedType = false) {
926
+ if (!filesUploadResponse_data_links || isSerializingDerivedType) {
927
+ return;
928
+ }
929
+ writer.writeStringValue("self", filesUploadResponse_data_links.self);
930
+ writer.writeAdditionalData(filesUploadResponse_data_links.additionalData);
931
+ }
932
+ /**
933
+ * Serializes information the current object
934
+ * @param FilesUploadUrlResponse The instance to serialize from.
935
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
936
+ * @param writer Serialization writer to use to serialize this model
937
+ */
938
+ // @ts-ignore
939
+ export function serializeFilesUploadUrlResponse(writer, filesUploadUrlResponse = {}, isSerializingDerivedType = false) {
940
+ if (!filesUploadUrlResponse || isSerializingDerivedType) {
941
+ return;
942
+ }
943
+ writer.writeObjectValue("data", filesUploadUrlResponse.data, serializeFilesUploadUrlResponse_data);
944
+ writer.writeAdditionalData(filesUploadUrlResponse.additionalData);
945
+ }
946
+ /**
947
+ * Serializes information the current object
948
+ * @param FilesUploadUrlResponse_data The instance to serialize from.
949
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
950
+ * @param writer Serialization writer to use to serialize this model
951
+ */
952
+ // @ts-ignore
953
+ export function serializeFilesUploadUrlResponse_data(writer, filesUploadUrlResponse_data = {}, isSerializingDerivedType = false) {
954
+ if (!filesUploadUrlResponse_data || isSerializingDerivedType) {
955
+ return;
956
+ }
957
+ writer.writeNumberValue("expires_in", filesUploadUrlResponse_data.expiresIn);
958
+ writer.writeStringValue("submission_id", filesUploadUrlResponse_data.submissionId);
959
+ writer.writeEnumValue("upload_method", filesUploadUrlResponse_data.uploadMethod);
960
+ writer.writeStringValue("upload_url", filesUploadUrlResponse_data.uploadUrl);
961
+ writer.writeAdditionalData(filesUploadUrlResponse_data.additionalData);
962
+ }
963
+ /**
964
+ * Serializes information the current object
965
+ * @param Finding The instance to serialize from.
966
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
967
+ * @param writer Serialization writer to use to serialize this model
968
+ */
969
+ // @ts-ignore
970
+ export function serializeFinding(writer, finding = {}, isSerializingDerivedType = false) {
971
+ if (!finding || isSerializingDerivedType) {
972
+ return;
973
+ }
974
+ writer.writeObjectValue("callChain", finding.callChain, serializeCallChain);
975
+ writer.writeStringValue("callChainId", finding.callChainId);
976
+ writer.writeStringValue("codeSnippet", finding.codeSnippet);
977
+ writer.writeObjectValue("dataFlowChain", finding.dataFlowChain, serializeDataFlowChain);
978
+ writer.writeStringValue("dataFlowChainId", finding.dataFlowChainId);
979
+ writer.writeStringValue("description", finding.description);
980
+ writer.writeObjectValue("developerGuidance", finding.developerGuidance, serializeDeveloperGuidance);
981
+ writer.writeStringValue("id", finding.id);
982
+ writer.writeStringValue("location", finding.location);
983
+ writer.writeNumberValue("riskScore", finding.riskScore);
984
+ writer.writeStringValue("ruleId", finding.ruleId);
985
+ writer.writeEnumValue("severity", finding.severity);
986
+ writer.writeEnumValue("visibility", finding.visibility);
987
+ writer.writeAdditionalData(finding.additionalData);
988
+ }
989
+ /**
990
+ * Serializes information the current object
991
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
992
+ * @param PublicRelatedReport The instance to serialize from.
993
+ * @param writer Serialization writer to use to serialize this model
994
+ */
995
+ // @ts-ignore
996
+ export function serializePublicRelatedReport(writer, publicRelatedReport = {}, isSerializingDerivedType = false) {
997
+ if (!publicRelatedReport || isSerializingDerivedType) {
998
+ return;
999
+ }
1000
+ writer.writeEnumValue("classification", publicRelatedReport.classification);
1001
+ writer.writeStringValue("contentHash", publicRelatedReport.contentHash);
1002
+ writer.writeDateValue("createdAt", publicRelatedReport.createdAt);
1003
+ writer.writeBooleanValue("current", publicRelatedReport.current);
1004
+ writer.writeStringValue("fileName", publicRelatedReport.fileName);
1005
+ writer.writeNumberValue("findingCount", publicRelatedReport.findingCount);
1006
+ writer.writeStringValue("reportId", publicRelatedReport.reportId);
1007
+ writer.writeStringValue("schemaVersion", publicRelatedReport.schemaVersion);
1008
+ writer.writeEnumValue("status", publicRelatedReport.status);
1009
+ writer.writeStringValue("submissionId", publicRelatedReport.submissionId);
1010
+ writer.writeAdditionalData(publicRelatedReport.additionalData);
1011
+ }
1012
+ /**
1013
+ * Serializes information the current object
1014
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1015
+ * @param PublicReportFinding The instance to serialize from.
1016
+ * @param writer Serialization writer to use to serialize this model
1017
+ */
1018
+ // @ts-ignore
1019
+ export function serializePublicReportFinding(writer, publicReportFinding = {}, isSerializingDerivedType = false) {
1020
+ if (!publicReportFinding || isSerializingDerivedType) {
1021
+ return;
1022
+ }
1023
+ writer.writeStringValue("description", publicReportFinding.description);
1024
+ writer.writeStringValue("id", publicReportFinding.id);
1025
+ writer.writeStringValue("location", publicReportFinding.location);
1026
+ writer.writeStringValue("ruleId", publicReportFinding.ruleId);
1027
+ writer.writeStringValue("severity", publicReportFinding.severity);
1028
+ writer.writeEnumValue("visibility", publicReportFinding.visibility);
1029
+ writer.writeAdditionalData(publicReportFinding.additionalData);
1030
+ }
1031
+ /**
1032
+ * Serializes information the current object
1033
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1034
+ * @param PublicReportResponse The instance to serialize from.
1035
+ * @param writer Serialization writer to use to serialize this model
1036
+ */
1037
+ // @ts-ignore
1038
+ export function serializePublicReportResponse(writer, publicReportResponse = {}, isSerializingDerivedType = false) {
1039
+ if (!publicReportResponse || isSerializingDerivedType) {
1040
+ return;
1041
+ }
1042
+ writer.writeBooleanValue("blockingRecommended", publicReportResponse.blockingRecommended);
1043
+ writer.writeEnumValue("classification", publicReportResponse.classification);
1044
+ writer.writeStringValue("contentHash", publicReportResponse.contentHash);
1045
+ writer.writeStringValue("fileName", publicReportResponse.fileName);
1046
+ writer.writeNumberValue("findingCount", publicReportResponse.findingCount);
1047
+ writer.writeCollectionOfObjectValues("findings", publicReportResponse.findings, serializePublicReportFinding);
1048
+ writer.writeStringValue("headline", publicReportResponse.headline);
1049
+ writer.writeStringValue("primaryThreatFamilyId", publicReportResponse.primaryThreatFamilyId);
1050
+ writer.writeCollectionOfObjectValues("relatedReports", publicReportResponse.relatedReports, serializePublicRelatedReport);
1051
+ writer.writeStringValue("reportId", publicReportResponse.reportId);
1052
+ writer.writeDateValue("reviewedAt", publicReportResponse.reviewedAt);
1053
+ writer.writeStringValue("reviewedBy", publicReportResponse.reviewedBy);
1054
+ writer.writeObjectValue("reviewOverride", publicReportResponse.reviewOverride, serializePublicReportResponse_reviewOverride);
1055
+ writer.writeEnumValue("reviewStatus", publicReportResponse.reviewStatus);
1056
+ writer.writeDateValue("scannedAt", publicReportResponse.scannedAt);
1057
+ writer.writeStringValue("scannerVersion", publicReportResponse.scannerVersion);
1058
+ writer.writeStringValue("schemaVersion", publicReportResponse.schemaVersion);
1059
+ writer.writeNumberValue("sizeBytes", publicReportResponse.sizeBytes);
1060
+ writer.writeObjectValue("source", publicReportResponse.source, serializePublicReportSource);
1061
+ writer.writeEnumValue("status", publicReportResponse.status);
1062
+ writer.writeStringValue("submissionId", publicReportResponse.submissionId);
1063
+ writer.writeStringValue("summary", publicReportResponse.summary);
1064
+ writer.writeCollectionOfObjectValues("threatFamilies", publicReportResponse.threatFamilies, serializePublicReportThreatFamily);
1065
+ writer.writeCollectionOfPrimitiveValues("triggeredRules", publicReportResponse.triggeredRules);
1066
+ writer.writeAdditionalData(publicReportResponse.additionalData);
1067
+ }
1068
+ /**
1069
+ * Serializes information the current object
1070
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1071
+ * @param PublicReportResponse_reviewOverride The instance to serialize from.
1072
+ * @param writer Serialization writer to use to serialize this model
1073
+ */
1074
+ // @ts-ignore
1075
+ export function serializePublicReportResponse_reviewOverride(writer, publicReportResponse_reviewOverride = {}, isSerializingDerivedType = false) {
1076
+ if (!publicReportResponse_reviewOverride || isSerializingDerivedType) {
1077
+ return;
1078
+ }
1079
+ writer.writeBooleanValue("blockingRecommended", publicReportResponse_reviewOverride.blockingRecommended);
1080
+ writer.writeEnumValue("classification", publicReportResponse_reviewOverride.classification);
1081
+ writer.writeStringValue("headline", publicReportResponse_reviewOverride.headline);
1082
+ writer.writeStringValue("id", publicReportResponse_reviewOverride.id);
1083
+ writer.writeStringValue("reason", publicReportResponse_reviewOverride.reason);
1084
+ writer.writeDateValue("reviewedAt", publicReportResponse_reviewOverride.reviewedAt);
1085
+ writer.writeStringValue("reviewedBy", publicReportResponse_reviewOverride.reviewedBy);
1086
+ writer.writeStringValue("reviewedByDiscordUserId", publicReportResponse_reviewOverride.reviewedByDiscordUserId);
1087
+ writer.writeEnumValue("reviewStatus", publicReportResponse_reviewOverride.reviewStatus);
1088
+ writer.writeEnumValue("scopeKind", publicReportResponse_reviewOverride.scopeKind);
1089
+ writer.writeStringValue("summary", publicReportResponse_reviewOverride.summary);
1090
+ writer.writeAdditionalData(publicReportResponse_reviewOverride.additionalData);
1091
+ }
1092
+ /**
1093
+ * Serializes information the current object
1094
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1095
+ * @param PublicReportSource The instance to serialize from.
1096
+ * @param writer Serialization writer to use to serialize this model
1097
+ */
1098
+ // @ts-ignore
1099
+ export function serializePublicReportSource(writer, publicReportSource = {}, isSerializingDerivedType = false) {
1100
+ if (!publicReportSource || isSerializingDerivedType) {
1101
+ return;
1102
+ }
1103
+ writer.writeStringValue("author", publicReportSource.author);
1104
+ writer.writeStringValue("displayName", publicReportSource.displayName);
1105
+ writer.writeStringValue("fileName", publicReportSource.fileName);
1106
+ writer.writeStringValue("game", publicReportSource.game);
1107
+ writer.writeStringValue("packageFileName", publicReportSource.packageFileName);
1108
+ writer.writeStringValue("provider", publicReportSource.provider);
1109
+ writer.writeStringValue("sourceKey", publicReportSource.sourceKey);
1110
+ writer.writeStringValue("sourceUrl", publicReportSource.sourceUrl);
1111
+ writer.writeStringValue("version", publicReportSource.version);
1112
+ writer.writeAdditionalData(publicReportSource.additionalData);
1113
+ }
1114
+ /**
1115
+ * Serializes information the current object
1116
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1117
+ * @param PublicReportThreatFamily The instance to serialize from.
1118
+ * @param writer Serialization writer to use to serialize this model
1119
+ */
1120
+ // @ts-ignore
1121
+ export function serializePublicReportThreatFamily(writer, publicReportThreatFamily = {}, isSerializingDerivedType = false) {
1122
+ if (!publicReportThreatFamily || isSerializingDerivedType) {
1123
+ return;
1124
+ }
1125
+ writer.writeCollectionOfPrimitiveValues("advisorySlugs", publicReportThreatFamily.advisorySlugs);
1126
+ writer.writeNumberValue("confidence", publicReportThreatFamily.confidence);
1127
+ writer.writeStringValue("displayName", publicReportThreatFamily.displayName);
1128
+ writer.writeBooleanValue("exactHashMatch", publicReportThreatFamily.exactHashMatch);
1129
+ writer.writeStringValue("familyId", publicReportThreatFamily.familyId);
1130
+ writer.writeCollectionOfPrimitiveValues("matchedRules", publicReportThreatFamily.matchedRules);
1131
+ writer.writeStringValue("matchKind", publicReportThreatFamily.matchKind);
1132
+ writer.writeStringValue("summary", publicReportThreatFamily.summary);
1133
+ writer.writeStringValue("variantId", publicReportThreatFamily.variantId);
1134
+ writer.writeAdditionalData(publicReportThreatFamily.additionalData);
1135
+ }
1136
+ /**
1137
+ * Serializes information the current object
1138
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1139
+ * @param ReportResponse The instance to serialize from.
1140
+ * @param writer Serialization writer to use to serialize this model
1141
+ */
1142
+ // @ts-ignore
1143
+ export function serializeReportResponse(writer, reportResponse = {}, isSerializingDerivedType = false) {
1144
+ if (!reportResponse || isSerializingDerivedType) {
1145
+ return;
1146
+ }
1147
+ writer.writeDateValue("completedAt", reportResponse.completedAt);
1148
+ writer.writeDateValue("createdAt", reportResponse.createdAt);
1149
+ writer.writeStringValue("error", reportResponse.errorEscaped);
1150
+ writer.writeStringValue("reportId", reportResponse.reportId);
1151
+ writer.writeObjectValue("result", reportResponse.result, serializeReportResponse_result);
1152
+ writer.writeObjectValue("reviewOverride", reportResponse.reviewOverride, serializeReportResponse_reviewOverride);
1153
+ writer.writeEnumValue("status", reportResponse.status);
1154
+ writer.writeAdditionalData(reportResponse.additionalData);
1155
+ }
1156
+ /**
1157
+ * Serializes information the current object
1158
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1159
+ * @param ReportResponse_result The instance to serialize from.
1160
+ * @param writer Serialization writer to use to serialize this model
1161
+ */
1162
+ // @ts-ignore
1163
+ export function serializeReportResponse_result(writer, reportResponse_result = {}, isSerializingDerivedType = false) {
1164
+ if (!reportResponse_result || isSerializingDerivedType) {
1165
+ return;
1166
+ }
1167
+ writer.writeObjectValue("assembly", reportResponse_result.assembly, serializeAssemblyMetadata);
1168
+ writer.writeCollectionOfObjectValues("callChains", reportResponse_result.callChains, serializeCallChain);
1169
+ writer.writeCollectionOfObjectValues("dataFlows", reportResponse_result.dataFlows, serializeDataFlowChain);
1170
+ writer.writeCollectionOfObjectValues("developerGuidance", reportResponse_result.developerGuidance, serializeDeveloperGuidance);
1171
+ writer.writeObjectValue("disposition", reportResponse_result.disposition, serializeThreatDisposition);
1172
+ writer.writeCollectionOfObjectValues("findings", reportResponse_result.findings, serializeFinding);
1173
+ writer.writeObjectValue("input", reportResponse_result.input, serializeScanInput);
1174
+ writer.writeObjectValue("metadata", reportResponse_result.metadata, serializeScanMetadata);
1175
+ writer.writeEnumValue("schemaVersion", reportResponse_result.schemaVersion);
1176
+ writer.writeObjectValue("summary", reportResponse_result.summary, serializeScanSummary);
1177
+ writer.writeCollectionOfObjectValues("threatFamilies", reportResponse_result.threatFamilies, serializeThreatFamily);
1178
+ writer.writeAdditionalData(reportResponse_result.additionalData);
1179
+ }
1180
+ /**
1181
+ * Serializes information the current object
1182
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1183
+ * @param ReportResponse_reviewOverride The instance to serialize from.
1184
+ * @param writer Serialization writer to use to serialize this model
1185
+ */
1186
+ // @ts-ignore
1187
+ export function serializeReportResponse_reviewOverride(writer, reportResponse_reviewOverride = {}, isSerializingDerivedType = false) {
1188
+ if (!reportResponse_reviewOverride || isSerializingDerivedType) {
1189
+ return;
1190
+ }
1191
+ writer.writeBooleanValue("blockingRecommended", reportResponse_reviewOverride.blockingRecommended);
1192
+ writer.writeEnumValue("classification", reportResponse_reviewOverride.classification);
1193
+ writer.writeStringValue("headline", reportResponse_reviewOverride.headline);
1194
+ writer.writeStringValue("id", reportResponse_reviewOverride.id);
1195
+ writer.writeStringValue("reason", reportResponse_reviewOverride.reason);
1196
+ writer.writeDateValue("reviewedAt", reportResponse_reviewOverride.reviewedAt);
1197
+ writer.writeStringValue("reviewedBy", reportResponse_reviewOverride.reviewedBy);
1198
+ writer.writeStringValue("reviewedByDiscordUserId", reportResponse_reviewOverride.reviewedByDiscordUserId);
1199
+ writer.writeEnumValue("reviewStatus", reportResponse_reviewOverride.reviewStatus);
1200
+ writer.writeEnumValue("scopeKind", reportResponse_reviewOverride.scopeKind);
1201
+ writer.writeStringValue("summary", reportResponse_reviewOverride.summary);
1202
+ writer.writeAdditionalData(reportResponse_reviewOverride.additionalData);
1203
+ }
1204
+ /**
1205
+ * Serializes information the current object
1206
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1207
+ * @param ScanInput The instance to serialize from.
1208
+ * @param writer Serialization writer to use to serialize this model
1209
+ */
1210
+ // @ts-ignore
1211
+ export function serializeScanInput(writer, scanInput = {}, isSerializingDerivedType = false) {
1212
+ if (!scanInput || isSerializingDerivedType) {
1213
+ return;
1214
+ }
1215
+ writer.writeStringValue("fileName", scanInput.fileName);
1216
+ writer.writeStringValue("sha256Hash", scanInput.sha256Hash);
1217
+ writer.writeNumberValue("sizeBytes", scanInput.sizeBytes);
1218
+ writer.writeAdditionalData(scanInput.additionalData);
1219
+ }
1220
+ /**
1221
+ * Serializes information the current object
1222
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1223
+ * @param ScanMetadata The instance to serialize from.
1224
+ * @param writer Serialization writer to use to serialize this model
1225
+ */
1226
+ // @ts-ignore
1227
+ export function serializeScanMetadata(writer, scanMetadata = {}, isSerializingDerivedType = false) {
1228
+ if (!scanMetadata || isSerializingDerivedType) {
1229
+ return;
1230
+ }
1231
+ writer.writeStringValue("coreVersion", scanMetadata.coreVersion);
1232
+ writer.writeEnumValue("platform", scanMetadata.platform);
1233
+ writer.writeStringValue("platformVersion", scanMetadata.platformVersion);
1234
+ writer.writeEnumValue("scanMode", scanMetadata.scanMode);
1235
+ writer.writeStringValue("scannerVersion", scanMetadata.scannerVersion);
1236
+ writer.writeDateValue("timestamp", scanMetadata.timestamp);
1237
+ writer.writeAdditionalData(scanMetadata.additionalData);
1238
+ }
1239
+ /**
1240
+ * Serializes information the current object
1241
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1242
+ * @param ScanSummary The instance to serialize from.
1243
+ * @param writer Serialization writer to use to serialize this model
1244
+ */
1245
+ // @ts-ignore
1246
+ export function serializeScanSummary(writer, scanSummary = {}, isSerializingDerivedType = false) {
1247
+ if (!scanSummary || isSerializingDerivedType) {
1248
+ return;
1249
+ }
1250
+ writer.writeObjectValue("countBySeverity", scanSummary.countBySeverity, serializeScanSummary_countBySeverity);
1251
+ writer.writeNumberValue("totalFindings", scanSummary.totalFindings);
1252
+ writer.writeCollectionOfPrimitiveValues("triggeredRules", scanSummary.triggeredRules);
1253
+ writer.writeAdditionalData(scanSummary.additionalData);
1254
+ }
1255
+ /**
1256
+ * Serializes information the current object
1257
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1258
+ * @param ScanSummary_countBySeverity The instance to serialize from.
1259
+ * @param writer Serialization writer to use to serialize this model
1260
+ */
1261
+ // @ts-ignore
1262
+ export function serializeScanSummary_countBySeverity(writer, scanSummary_countBySeverity = {}, isSerializingDerivedType = false) {
1263
+ if (!scanSummary_countBySeverity || isSerializingDerivedType) {
1264
+ return;
1265
+ }
1266
+ writer.writeAdditionalData(scanSummary_countBySeverity.additionalData);
1267
+ }
1268
+ /**
1269
+ * Serializes information the current object
1270
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1271
+ * @param ThreatDisposition The instance to serialize from.
1272
+ * @param writer Serialization writer to use to serialize this model
1273
+ */
1274
+ // @ts-ignore
1275
+ export function serializeThreatDisposition(writer, threatDisposition = {}, isSerializingDerivedType = false) {
1276
+ if (!threatDisposition || isSerializingDerivedType) {
1277
+ return;
1278
+ }
1279
+ writer.writeBooleanValue("blockingRecommended", threatDisposition.blockingRecommended);
1280
+ writer.writeEnumValue("classification", threatDisposition.classification);
1281
+ writer.writeStringValue("headline", threatDisposition.headline);
1282
+ writer.writeStringValue("primaryThreatFamilyId", threatDisposition.primaryThreatFamilyId);
1283
+ writer.writeCollectionOfPrimitiveValues("relatedFindingIds", threatDisposition.relatedFindingIds);
1284
+ writer.writeStringValue("summary", threatDisposition.summary);
1285
+ writer.writeAdditionalData(threatDisposition.additionalData);
1286
+ }
1287
+ /**
1288
+ * Serializes information the current object
1289
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1290
+ * @param ThreatFamily The instance to serialize from.
1291
+ * @param writer Serialization writer to use to serialize this model
1292
+ */
1293
+ // @ts-ignore
1294
+ export function serializeThreatFamily(writer, threatFamily = {}, isSerializingDerivedType = false) {
1295
+ if (!threatFamily || isSerializingDerivedType) {
1296
+ return;
1297
+ }
1298
+ writer.writeCollectionOfPrimitiveValues("advisorySlugs", threatFamily.advisorySlugs);
1299
+ writer.writeNumberValue("confidence", threatFamily.confidence);
1300
+ writer.writeStringValue("displayName", threatFamily.displayName);
1301
+ writer.writeCollectionOfObjectValues("evidence", threatFamily.evidence, serializeThreatFamilyEvidence);
1302
+ writer.writeBooleanValue("exactHashMatch", threatFamily.exactHashMatch);
1303
+ writer.writeStringValue("familyId", threatFamily.familyId);
1304
+ writer.writeCollectionOfPrimitiveValues("matchedRules", threatFamily.matchedRules);
1305
+ writer.writeEnumValue("matchKind", threatFamily.matchKind);
1306
+ writer.writeStringValue("summary", threatFamily.summary);
1307
+ writer.writeStringValue("variantId", threatFamily.variantId);
1308
+ writer.writeAdditionalData(threatFamily.additionalData);
1309
+ }
1310
+ /**
1311
+ * Serializes information the current object
1312
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1313
+ * @param ThreatFamilyEvidence The instance to serialize from.
1314
+ * @param writer Serialization writer to use to serialize this model
1315
+ */
1316
+ // @ts-ignore
1317
+ export function serializeThreatFamilyEvidence(writer, threatFamilyEvidence = {}, isSerializingDerivedType = false) {
1318
+ if (!threatFamilyEvidence || isSerializingDerivedType) {
1319
+ return;
1320
+ }
1321
+ writer.writeStringValue("callChainId", threatFamilyEvidence.callChainId);
1322
+ writer.writeNumberValue("confidence", threatFamilyEvidence.confidence);
1323
+ writer.writeStringValue("dataFlowChainId", threatFamilyEvidence.dataFlowChainId);
1324
+ writer.writeStringValue("kind", threatFamilyEvidence.kind);
1325
+ writer.writeStringValue("location", threatFamilyEvidence.location);
1326
+ writer.writeStringValue("methodLocation", threatFamilyEvidence.methodLocation);
1327
+ writer.writeStringValue("pattern", threatFamilyEvidence.pattern);
1328
+ writer.writeStringValue("ruleId", threatFamilyEvidence.ruleId);
1329
+ writer.writeStringValue("value", threatFamilyEvidence.value);
1330
+ writer.writeAdditionalData(threatFamilyEvidence.additionalData);
1331
+ }
1332
+ export const CallChainNodeTypeObject = {
1333
+ EntryPoint: "EntryPoint",
1334
+ IntermediateCall: "IntermediateCall",
1335
+ SuspiciousDeclaration: "SuspiciousDeclaration",
1336
+ };
1337
+ export const DataFlowNodeTypeObject = {
1338
+ Source: "Source",
1339
+ Transform: "Transform",
1340
+ Sink: "Sink",
1341
+ Intermediate: "Intermediate",
1342
+ };
1343
+ export const DataFlowPatternObject = {
1344
+ Legitimate: "Legitimate",
1345
+ DownloadAndExecute: "DownloadAndExecute",
1346
+ DataExfiltration: "DataExfiltration",
1347
+ DynamicCodeLoading: "DynamicCodeLoading",
1348
+ CredentialTheft: "CredentialTheft",
1349
+ RemoteConfigLoad: "RemoteConfigLoad",
1350
+ ObfuscatedPersistence: "ObfuscatedPersistence",
1351
+ EmbeddedResourceDropAndExecute: "EmbeddedResourceDropAndExecute",
1352
+ Unknown: "Unknown",
1353
+ };
1354
+ /**
1355
+ * Resource type. Similar to an analysis handle in APIs such as VirusTotal: it identifies this upload/submission, not necessarily a unique file hash.
1356
+ */
1357
+ export const FilesUploadResponse_data_typeObject = {
1358
+ Analysis: "analysis",
1359
+ };
1360
+ /**
1361
+ * HTTP method for upload
1362
+ */
1363
+ export const FilesUploadUrlResponse_data_upload_methodObject = {
1364
+ PUT: "PUT",
1365
+ };
1366
+ export const FindingVisibilityObject = {
1367
+ DefaultEscaped: "Default",
1368
+ Advanced: "Advanced",
1369
+ };
1370
+ /**
1371
+ * Public normalized disposition for this related report.
1372
+ */
1373
+ export const PublicRelatedReport_classificationObject = {
1374
+ Clean: "Clean",
1375
+ Suspicious: "Suspicious",
1376
+ KnownThreat: "KnownThreat",
1377
+ };
1378
+ /**
1379
+ * Current lifecycle state for this related report.
1380
+ */
1381
+ export const PublicRelatedReport_statusObject = {
1382
+ Pending: "pending",
1383
+ Processing: "processing",
1384
+ Completed: "completed",
1385
+ Failed: "failed",
1386
+ };
1387
+ export const PublicReportFinding_visibilityObject = {
1388
+ DefaultEscaped: "Default",
1389
+ Advanced: "Advanced",
1390
+ };
1391
+ /**
1392
+ * Public normalized disposition derived from the underlying MLVScan Core result.
1393
+ */
1394
+ export const PublicReportResponse_classificationObject = {
1395
+ Clean: "Clean",
1396
+ Suspicious: "Suspicious",
1397
+ KnownThreat: "KnownThreat",
1398
+ };
1399
+ export const PublicReportResponse_reviewOverride_reviewStatusObject = {
1400
+ False_positive: "false_positive",
1401
+ Allowed: "allowed",
1402
+ Needs_admin_review: "needs_admin_review",
1403
+ };
1404
+ export const PublicReportResponse_reviewOverride_scopeKindObject = {
1405
+ Hash: "hash",
1406
+ Report: "report",
1407
+ Submission: "submission",
1408
+ Source_artifact: "source_artifact",
1409
+ };
1410
+ export const PublicReportResponse_reviewStatusObject = {
1411
+ False_positive: "false_positive",
1412
+ Allowed: "allowed",
1413
+ Needs_admin_review: "needs_admin_review",
1414
+ };
1415
+ /**
1416
+ * Current lifecycle state for the underlying canonical report.
1417
+ */
1418
+ export const PublicReportResponse_statusObject = {
1419
+ Pending: "pending",
1420
+ Processing: "processing",
1421
+ Completed: "completed",
1422
+ Failed: "failed",
1423
+ };
1424
+ export const ReportResponse_result_schemaVersionObject = {
1425
+ OneTwoZero: "1.2.0",
1426
+ };
1427
+ export const ReportResponse_reviewOverride_reviewStatusObject = {
1428
+ False_positive: "false_positive",
1429
+ Allowed: "allowed",
1430
+ Needs_admin_review: "needs_admin_review",
1431
+ };
1432
+ export const ReportResponse_reviewOverride_scopeKindObject = {
1433
+ Hash: "hash",
1434
+ Report: "report",
1435
+ Submission: "submission",
1436
+ Source_artifact: "source_artifact",
1437
+ };
1438
+ /**
1439
+ * Current lifecycle state for this submission-linked report. Poll until completed or failed.
1440
+ */
1441
+ export const ReportResponse_statusObject = {
1442
+ Pending: "pending",
1443
+ Processing: "processing",
1444
+ Completed: "completed",
1445
+ Failed: "failed",
1446
+ };
1447
+ /**
1448
+ * Scan output mode used for this result.
1449
+ */
1450
+ export const ScanModeObject = {
1451
+ Summary: "summary",
1452
+ Detailed: "detailed",
1453
+ Developer: "developer",
1454
+ };
1455
+ /**
1456
+ * Logical host/platform that produced this result.
1457
+ */
1458
+ export const ScanPlatformObject = {
1459
+ Core: "core",
1460
+ Wasm: "wasm",
1461
+ Cli: "cli",
1462
+ Server: "server",
1463
+ Desktop: "desktop",
1464
+ Mcp: "mcp",
1465
+ };
1466
+ export const SeverityObject = {
1467
+ Low: "Low",
1468
+ Medium: "Medium",
1469
+ High: "High",
1470
+ Critical: "Critical",
1471
+ };
1472
+ export const ThreatDispositionClassificationObject = {
1473
+ Clean: "Clean",
1474
+ Suspicious: "Suspicious",
1475
+ KnownThreat: "KnownThreat",
1476
+ };
1477
+ export const ThreatMatchKindObject = {
1478
+ ExactSampleHash: "ExactSampleHash",
1479
+ BehaviorVariant: "BehaviorVariant",
1480
+ };
1481
+ /* tslint:enable */
1482
+ /* eslint-enable */
1483
+ //# sourceMappingURL=index.js.map